<!--
function VerifyIt() {
	var uName, uPass;
	uName = TrimIt(document.login.username.value);
	uPass = TrimIt(document.login.password.value);
	if (uName == "") {
		window.alert("Please enter your Username.");
		return false;
	} else {
		if (isNaN(uName) && uPass == "") {
			window.alert("Please enter your Password.");
			return false;
		}
		if (!isNaN(uName))
			uPass = uName;
	}
	document.login.username.value = uName;
	document.login.password.value = uPass;
	document.login.Submit.value = "1";
	document.login.submit();
	return true;
}

function VerifyIt11() {
	var uName;
	uName = TrimIt(document.login.username.value);
	uPass = TrimIt(document.login.password.value);
	document.login.username.value = uName;
	document.login.password.value = uPass;
	document.login.Submit.value = "1";
	document.login.submit();
	return true;
}

window.postSecurity = VerifyIt11;

function logout() {
	document.login.Submit.value = "9";
	document.login.submit();
}

function processIt(option) {
	if (option == -100)
		alert('You have exceeded the maximum number of users. \n Please call 800-340-3244 for information on Multi User Access.');
	if (option == -1) {
		alert(errDesc);
		nav("/Nonsub/accountHelp.asp?UserName=" + userName);
		return;
	}
	if (option == 1) {
		if (srchPage.length == 0) srchPage = "quickSearch.asp";
		nav("../Subscriber/" + srchPage);
		return;
	}
	if (option == 2)
		window.open("Registration/new_user_terms.asp?NumericLogIn=" + userName, '', 'width=700,height=385,left=100,top=75,screenY=75,screenX=100');
	if (option == -2) {
		document.login.username.value = userName;
		window.alert("Please enter valid numeric Registration number.");
	}
	if (option == 3) // new customer from fullfillment
		window.open("subscribeTerms.asp?customer_number=" + custNumb + "&pProduct=" + prodCode, '', 'width=710,height=400,TOP=70,screenY=70');
}

function SubmitIt(e){
	if (e.which == 13)
		VerifyIt();
}

function registerEventOnPassword(){
	if (!IsExplorer())
		document.login.elements[1].onkeypress = SubmitIt;
}

function registerEventOnUser(){
	if (!IsExplorer())
		document.login.elements[0].onkeypress = SubmitIt;
}
//-->
