if (typeof PBG_ACADEMIC == "undefined") {
	var PBG_ACADEMIC = {};
}

PBG_ACADEMIC.enableSubmitButton = function() {
	$("buttonSubmit").disabled = false;
}

PBG_ACADEMIC.disableSubmitButton = function() {
	$("buttonSubmit").disabled = true;
}

PBG_ACADEMIC.checkEmailValidity = function(email) {
	var pattern = "^[0-9a-z~!#$%&_-]([.]?[0-9a-z~!#$%&_-])*";
	pattern += "@[0-9a-z~!#$%&_-]([.]?[0-9a-z~!#$%&_-])*";
	pattern += "\.[a-z]+$";
	var regexpr = new RegExp(pattern, "i");
	if (regexpr.match(email)) {
		return true;
	} else {
		return false;	
	}
}

PBG_ACADEMIC.checkEmail = function(sourceFieldNumber) {
	// clear any old error messages
	var errorText1 = $("errUserName").innerHTML;
	var errorText2 = $("errUserNameConfirm").innerHTML;
	if (errorText1 != "") {
		$("errUserName").update();
	}
	if (errorText2 != "") {
		$("errUserNameConfirm").update();
	}
	
	// get current content of fields
	var email1 = $F("UserName").strip();
	var email2 = $F("UserNameConfirm").strip();
	
	// whether coming from field 1 or field 2, field 1 must not be empty
	if (email1 == "") {
		$("errUserName").update("You must enter an email address.");
		return;
	} else {
		var isValidEmail = PBG_ACADEMIC.checkEmailValidity(email1);
		if (!isValidEmail) {
			$("errUserName").update("Please enter a valid email address.");
			return;
		}
	}
	
	// if field 1 has content, field 2 cannot be empty
	if (sourceFieldNumber == 2) {
		if (email2 == "" && email1 != "") {
			$("errUserNameConfirm").update("To confirm, please re-enter your email.");
		}
	}
	
	// if both fields have content, the content must match
	if (email1 != "" && email2 != "" && email1 != email2) {
		$("errUserName").update("The email addresses you entered do not match.");
		$("errUserNameConfirm").update("The email addresses you entered do not match.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkPassword = function(sourceFieldNumber) {
	// clear any old error messages
	var errorText1 = $("errPassword").innerHTML;
	var errorText2 = $("errPasswordConfirm").innerHTML;
	if (errorText1 != "") {
		$("errPassword").update();
	}
	if (errorText2 != "") {
		$("errPasswordConfirm").update();
	}
	
	// get current content of fields
	var pw1 = $F("Password").strip();
	var pw2 = $F("PasswordConfirm").strip();
	
	// whether coming from field 1 or field 2, we expect field 1 to have a password filled in
	if (pw1 == "") {
		$("errPassword").update("You must create a password.");
		return;
	}
	
	// if not blank, password must meet criteria
	if (pw1 != "") {
		if (pw1.length < 8) {
			$("errPassword").update("Too short: Your password must be at least eight (8) characters long.");
			$("PasswordConfirm").value = "";
			return;
		}
	}
	
	// if field 1 has content, field 2 cannot be empty
	if (sourceFieldNumber == 2) {
		if (pw2 == "" && pw1 != "") {
			$("errPasswordConfirm").update("To confirm, please re-enter your password.");
		}
	}
	
	// if both fields have content, the content must match
	if (pw1.length != "" && pw2.length != "" && pw1 != pw2) {
		$("errPassword").innerHTML = "The passwords you entered do not match.";
		$("errPasswordConfirm").innerHTML = "The passwords you entered do not match.";
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkFirstName = function() {
	// clear any old error messages
	var errorText = $("errFirstName").innerHTML;
	if (errorText != "") {
		$("errFirstName").update();
	}
	
	// get current content of field
	var content = $F("FirstName").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errFirstName").update("Please enter your first name.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkLastName = function() {
	// clear any old error messages
	var errorText = $("errLastName").innerHTML;
	if (errorText != "") {
		$("errLastName").update();
	}
	
	// get current content of field
	var content = $F("LastName").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errLastName").update("Please enter your last name (surname or family name).");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkJobTitle = function() {
	// clear any old error messages
	var errorText = $("errTitle").innerHTML;
	if (errorText != "") {
		$("errTitle").update();
	}
	
	// get current content of field
	var content = $F("Title").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errTitle").update("Please enter your job title/position.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkDepartment = function() {
	// clear any old error messages
	var errorText = $("errDepartment").innerHTML;
	if (errorText != "") {
		$("errDepartment").update();
	}
	
	// get current content of field
	var content = $F("Department").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errDepartment").update("Please enter the name of your department, school, or division.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkInstitution = function() {
	// clear any old error messages
	var errorText = $("errInstitution").innerHTML;
	if (errorText != "") {
		$("errInstitution").update();
	}
	
	// get current content of field
	var content = $F("Institution").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errInstitution").update("To use this site, you must be affiliated with an educational institution.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkStoreName = function() {
	// clear any old error messages
	var errorText = $("errStoreName").innerHTML;
	if (errorText != "") {
		$("errStoreName").update();
	}
	
	// get current content of field
	var content = $F("StoreName").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errStoreName").update("Please enter the name of the university or college bookstore that stocks your course texts.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkSelexFall = function() {
	// clear any old error messages
	var errorText = $("errFallChoice").innerHTML;
	if (errorText != "") {
		$("errFallChoice").update();
	}
	
	// get current content of field
	var selex = $("FallChoice").selectedIndex;
	selex = parseInt(selex);
	
	// field cannot be empty
	if (selex < 1) {
		$("errFallChoice").update("Please select a month above.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkSelexSpring = function() {
	// clear any old error messages
	var errorText = $("errSpringChoice").innerHTML;
	if (errorText != "") {
		$("errSpringChoice").update();
	}
	
	// get current content of field
	var selex = $("SpringChoice").selectedIndex;
	selex = parseInt(selex);
	
	// field cannot be empty
	if (selex < 1) {
		$("errSpringChoice").update("Please select a month above.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.checkLoginEmail = function() {
	if ($("errUserName").innerHTML != "") {
		$("errUserName").update();
	}
	var userName = $F("UserName");
	var hasUserName = (userName == "") ? false : true;
	var isValidEmail = PBG_ACADEMIC.checkEmailValidity(userName);
	if (!hasUserName) {
		$("errUserName").update("Please enter your email.");
	} else if (!isValidEmail) {
		$("errUserName").update("Please enter a valid email address.");
	}
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkLoginPw = function() {
	if ($("errPassword").innerHTML != "") {
		$("errPassword").update();
	}
	var password = $F("Password");
	var hasPassword = (password == "") ? false : true;
	if (!hasPassword) {
		$("errPassword").update("Please enter your password.");
		return;
	} else if (password.length < 8) {
		$("errPassword").update("Too short: Your password must be at least eight (8) characters long.");
		return;
	}
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkCourseName = function() {
	// clear any old error messages
	var errorText = $("errCourseName").innerHTML;
	if (errorText != "") {
		$("errCourseName").update();
	}
	
	// get current content of field
	var content = $F("CourseName").strip();
	
	// field cannot be empty
	if (content == "") {
		if ($('request_examPage')) {
			$("errCourseName").update("Please enter the name of the course for which you&rsquo;re considering this book.");
		} else {
			$("errCourseName").update("Please enter the name of the course in which you&rsquo;re using this book.");
		}
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkCourseEnrollment = function() {
	// clear any old error messages
	var errorText = $("errCourseEnrollment").innerHTML;
	if (errorText != "") {
		$("errCourseEnrollment").update();
	}
	
	// get current content of field
	var content = $F("CourseEnrollment").strip();
	
	// field cannot be empty
	if (content == "") {
		$("errCourseEnrollment").update("Please enter the course enrollment number.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkPO = function() {
	// clear any old error messages
	var errorText = $("errPO_Number").innerHTML;
	if (errorText != "") {
		$("errPO_Number").update();
	}
	
	// get current content of field
	var content = $F("PO_Number").strip();
	var testContent = content.toLowerCase();
	
	// field cannot be empty
	if (content == "") {
		$("errPO_Number").update("Please enter the bookstore purchase order number.");
	} else if (content.length < 3) {
		$("errPO_Number").update("That does not appear to be a valid PO number.");
	} else if (content == "none" || content == "unknown") {
		$("errPO_Number").update("That does not appear to be a valid PO number.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkBlank = function(field, errorContainer) {
	// clear any old error messages
	var errorText = $(errorContainer).innerHTML;
	if (errorText != "") {
		$(errorContainer).update();
	}
	
	// get current content of field
	var content = $F(field).strip();
	
	// field cannot be empty
	if (content == "") {
		$(errorContainer).update("This field cannot be blank.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
}


PBG_ACADEMIC.checkEmailAddress = function(field, errorContainer) {
	if ($(errorContainer).innerHTML != "") {
		$(errorContainer).update();
	}
	var userName = $F(field);
	var hasUserName = (userName == "") ? false : true;
	var isValidEmail = PBG_ACADEMIC.checkEmailValidity(userName);
	if (!hasUserName) {
		$(errorContainer).update("Please enter an email address.");
	} else if (!isValidEmail) {
		$(errorContainer).update("Please enter a valid email address.");
	}
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkState = function(selectId) {
	// clear any old error messages
	var errorId = "err" + selectId;
	var errorText = $(errorId).innerHTML;
	if (errorText != "") {
		$(errorId).update();
	}
	
	// get current content of field
	var selex = $(selectId).selectedIndex;
	selex = parseInt(selex);
	
	// field cannot be empty
	if (selex < 1) {
		$(errorId).update("Please select your state, province, or territory.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.setCountry = function(selectId) {
	// which form is this coming from -- shipping or billing info?
	switch ($(selectId).id) {
		case "ShipState":
			var field = "ShipCountry";
			var stateField = "ShipState";
			var changeBilling = false;
			break;
		case "BillState":
			var field = "BillCountry";
			var stateField = "BillState";
			var changeBilling = true;
			break;
	}
	// set country only if a state has been selected
	if ($(selectId).selectedIndex > 0) {
		var country = getCountry($F(selectId));
		var radioButtonToCheck = field + "_" + country;
		$(radioButtonToCheck).checked = true;
	}
	// check that a state has been selected (to clear error messages if it has)
	PBG_ACADEMIC.checkState(stateField);
	// update billing info to match shipping
	if (changeBilling == true) {
		PBG_ACADEMIC.changeBillingInfo();
	}
}

PBG_ACADEMIC.changeBillingInfo = function() {
	if ($("useShippingInfo")) {
		if ($("useShippingInfo").checked == true) {
			$("BillName").value = $F("ShipName");
			$("BillAddress1").value = $F("ShipAddress1");
			$("BillAddress2").value = $F("ShipAddress2");
			$("BillAddress3").value = $F("ShipAddress3");
			$("BillCity").value = $F("ShipCity");
			$("BillState").value = $F("ShipState");
			$("BillZip").value = $F("ShipZip");
			if ($F("ShipCountry") == "USA") {
				$("BillCountry_USA").checked = true;
			} else if ($F("ShipCountry") == "CAN") {
				$("BillCountry_CAN").checked = true;
			}
			$("BillPhone").value = $F("ShipPhone");
			$("BillEmail").value = $F("ShipEmail");
		}
	}
}

PBG_ACADEMIC.toggleShippingInfo = function() {
	if ($("useShippingInfo")) {
		if ($("useShippingInfo").checked == true) {
			$("BillName").value = $F("ShipName");
			$("BillAddress1").value = $F("ShipAddress1");
			$("BillAddress2").value = $F("ShipAddress2");
			$("BillAddress3").value = $F("ShipAddress3");
			$("BillCity").value = $F("ShipCity");
			$("BillState").value = $F("ShipState");
			$("BillZip").value = $F("ShipZip");
			if ($F("ShipCountry") == "USA") {
				$("BillCountry_USA").checked = true;
			} else if ($F("ShipCountry") == "CAN") {
				$("BillCountry_CAN").checked = true;
			}
			$("BillPhone").value = $F("ShipPhone");
			$("BillEmail").value = $F("ShipEmail");
			$("BillName").disabled = true;
			$("BillAddress1").disabled = true;
			$("BillAddress2").disabled = true;
			$("BillAddress3").disabled = true;
			$("BillCity").disabled = true;
			$("BillState").disabled = true;
			$("BillZip").disabled = true;
			$("BillCountry_USA").disabled = true;
			$("BillCountry_CAN").disabled = true;
			$("BillPhone").disabled = true;
			$("BillEmail").disabled = true;
			// clear any error messages by checking all fields
			PBG_ACADEMIC.checkOrderInfo();
		} else {
			$("BillName").value = "";
			$("BillAddress1").value = "";
			$("BillAddress2").value = "";
			$("BillAddress3").value = "";
			$("BillCity").value = "";
			$("BillState").value = "";
			$("BillZip").value = "";
			//$("BillCountry_USA").checked = false;
			//$("BillCountry_CAN").checked = false;
			$("BillPhone").value = "";
			$("BillEmail").value = "";
			$("BillName").disabled = false;
			$("BillAddress1").disabled = false;
			$("BillAddress2").disabled = false;
			$("BillAddress3").disabled = false;
			$("BillCity").disabled = false;
			$("BillState").disabled = false;
			$("BillZip").disabled = false;
			$("BillCountry_USA").disabled = false;
			$("BillCountry_CAN").disabled = false;
			$("BillPhone").disabled = false;
			$("BillEmail").disabled = false;
		}
	}
}

PBG_ACADEMIC.checkTerms = function() {
	// clear any old error messages
	var errorText = $("errTerms").innerHTML;
	if (errorText != "") {
		$("errTerms").update();
	}
	
	// get current value of field
	var isChecked = $("Terms").checked == true ? true : false;
	
	if (!isChecked) {
		$("errTerms").update("You must agree to these terms and conditions by checking the box above.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkFormInfo = function() {
	
	// loop through all error message containers and check for text
	var errorMessages = $$('div.error');
	var errors = 0;
	
	// increment error count for each message
	errorMessages.each(function(i){
		if ($(i).innerHTML != "") {
			errors++;
		}					   
	});
	
	// if no errors, turn button on; else turn off
	if (errors == 0) {
		PBG_ACADEMIC.enableSubmitButton();
	} else {
		PBG_ACADEMIC.disableSubmitButton();
	}
	
}

PBG_ACADEMIC.checkNewClientAccountInfo = function(checkId) {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkEmail(1);
	PBG_ACADEMIC.checkEmail(2);
	PBG_ACADEMIC.checkPassword(1);
	PBG_ACADEMIC.checkPassword(2);
	PBG_ACADEMIC.checkFirstName();
	PBG_ACADEMIC.checkLastName();
	PBG_ACADEMIC.checkPhone();
	if (checkId == true) {
		PBG_ACADEMIC.checkClientId();
	}
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkNewAccountInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkEmail(1);
	PBG_ACADEMIC.checkEmail(2);
	PBG_ACADEMIC.checkPassword(1);
	PBG_ACADEMIC.checkPassword(2);
	PBG_ACADEMIC.checkFirstName();
	PBG_ACADEMIC.checkLastName();
	PBG_ACADEMIC.checkJobTitle();
	PBG_ACADEMIC.checkDepartment();
	PBG_ACADEMIC.checkInstitution();
	PBG_ACADEMIC.checkSelexFall();
	PBG_ACADEMIC.checkSelexSpring();
	PBG_ACADEMIC.checkStoreName();
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkLoginInfo = function() {
	/*if ($F("UserName") || $F("Password")) {
		PBG_ACADEMIC.disableSubmitButton();
		PBG_ACADEMIC.checkLoginEmail();
		PBG_ACADEMIC.checkLoginPw();
		PBG_ACADEMIC.checkFormInfo();
	}*/
}

PBG_ACADEMIC.checkReminderInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkLoginEmail();
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkExamInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkCourseName();
	PBG_ACADEMIC.checkCourseEnrollment();
	PBG_ACADEMIC.checkStoreName();
	PBG_ACADEMIC.checkTerms();
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkDeskInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkCourseName();
	PBG_ACADEMIC.checkCourseEnrollment();
	//PBG_ACADEMIC.checkPO();
	PBG_ACADEMIC.checkStoreName();
	PBG_ACADEMIC.checkTerms();
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkOrderInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	PBG_ACADEMIC.checkCardType();
	PBG_ACADEMIC.checkCardNo();
	PBG_ACADEMIC.checkBlankExpiration();
	var noBlanks = [];
	noBlanks.push("BillName");
	noBlanks.push("BillAddress1");
	noBlanks.push("BillCity");
	noBlanks.push("BillZip");
	noBlanks.push("BillPhone");
	noBlanks.each(function(i){
		var field = i;
		var errorContainer = "err" + i;
		PBG_ACADEMIC.checkBlank(field, errorContainer);
	});
	PBG_ACADEMIC.setCountry($("BillState"));
	PBG_ACADEMIC.checkEmailAddress("BillEmail", "errBillEmail");
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkShipInfo = function() {
	PBG_ACADEMIC.disableSubmitButton();
	var noBlanks = [];
	noBlanks.push("ShipName");
	noBlanks.push("ShipAddress1");
	noBlanks.push("ShipCity");
	noBlanks.push("ShipZip");
	noBlanks.push("ShipPhone");
	noBlanks.each(function(i){
		var field = i;
		var errorContainer = "err" + i;
		PBG_ACADEMIC.checkBlank(field, errorContainer);
	});
	PBG_ACADEMIC.setCountry($("ShipState"));
	PBG_ACADEMIC.checkEmailAddress("ShipEmail", "errShipEmail");
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkCardType = function() {
	// clear any old error messages
	var errorText = $("errCCType").innerHTML;
	if (errorText != "") {
		$("errCCType").update();
	}
	
	// get current content of field
	var selex = $("CCType").selectedIndex;
	selex = parseInt(selex);
	
	// field cannot be empty
	if (selex < 1) {
		$("errCCType").update("This field cannot be left blank.");
	}
	
	PBG_ACADEMIC.checkFormInfo();
	
}

PBG_ACADEMIC.cleanCardNo = function() {
	var ccNo = $F("CCNo");
	var pattern1 = " ";
	var regexp1 = new RegExp(pattern1, "gi");
	ccNo = ccNo.replace(regexp1, "");
	var pattern2 = "-";
	var regexp2 = new RegExp(pattern2, "gi");
	ccNo = ccNo.replace(regexp2, "");
	$("CCNo").value = ccNo;
	//PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkCardNo = function() {
	// clear any old error messages
	var errorText = $("errCCNo").innerHTML;
	if (errorText != "") {
		$("errCCNo").update();
	}
	
	PBG_ACADEMIC.cleanCardNo();
	
	// get current content of field
	var content = $F("CCNo").strip();
	var len = content.length;
	
	// default error message
	var msg = "";
	
	// field cannot be empty and must be between 13 and 16 digits
	if (len == 0) {
		msg = "This field cannot be blank.";
	} else if (len < 13) {
		msg = "That does not appear to be a valid credit card number.";
	} else if (len > 16) {
		msg = "That does not appear to be a valid credit card number.";
	}
	
	// field must be all digits
	if (!content.match(/^[0-9]*$/)) {
		msg = "Card number must contain only digits.";
	}
	
	var check = 0;	
	// add up every 2nd digit, beginning at the right end
	for (var x=len-1; x>=0; x-=2) {
		check += parseInt(content.substr(x, 1));
	}
	// add up every 2nd digit doubled, beginning at the right end - 1
	// subtract 9 where doubled value is > 10
	for (var x=len-2; x>=0; x-=2) {
		var double = parseInt(content.substr(x, 1)) * 2;
		if (double >= 10) {
			check += double - 9;
		} else {
			check += double;
		}
	}
	// is check not a multiple of 10?
	if (check % 10 != 0) {
		msg = "That does not appear to be a valid credit card number.";
	}
	
	$("errCCNo").update(msg);
	
	PBG_ACADEMIC.checkFormInfo();
}

PBG_ACADEMIC.checkBlankExpiration = function() {
	dateSet = true;
	PBG_ACADEMIC.checkExpiration();
}

PBG_ACADEMIC.checkExpiration = function() {
	var monthVal = $F("CCExpMonth");
	var yearVal = $F("CCExpYear");
	var pattern = new RegExp("^0", "i");
	monthVal = monthVal.replace(pattern, "");
	yearVal = yearVal.replace(pattern, "");
	monthVal = parseInt(monthVal);
	yearVal = parseInt(yearVal);
	if (monthVal > 0 && yearVal > 0) {
		if (yearVal == curYear && monthVal < curMonth) {
			var monthIsOK = false;
		} else if (yearVal == curYear && monthVal >= curMonth) {
			var monthIsOK = true;
		} else if (yearVal > curYear || yearVal < curYear) {
			var monthIsOK = true;
		}
		if (yearVal >= curYear) {
			var yearIsOK = true;
		} else {
			var yearIsOK = false;
		}
		if (yearIsOK && monthIsOK) {
			$("errCCExp").update();
		} else {
			$("errCCExp").update("That credit card has expired. Please use another.");
		}
	} else {
		/* if user has previously posted the form, check that they have not unset
		 * the expiration date since (don't check this the first time they fill out
		 * the form because doing so would produce the error message as soon as they select
		 * the first dropdown (whether month or year) -- before they'd even had a chance to 
		 * make a valid selection on the the second dropdown
		 */
		if (dateSet == true) {
			$("errCCExp").update("Please select a valid expiration date.");
		}
	}
	PBG_ACADEMIC.checkFormInfo();
}
