	var footer_state = 0;

	function searchSubmit() {
		if (document.getElementById("searchQuery").value.length) return true;
		document.getElementById("searchQuery").focus();
		return false;
	}

function bpass() {
	if (validateComplete(document.loginForm.UserName)) {
		if (emptyField(document.loginForm.Password)) {
			showError("Please fill in password.\nSpaces are not a valid password.");
			document.loginForm.Password.focus();
			return false;
		} else
			//loginSubmit();
			return true;
	} else document.loginForm.UserName.focus();
	return false;
}

// login form validation
function validateComplete(UserName, ErrorMsg) {
	if (ParseResult = badEmailField(UserName)) {
		switch (ParseResult) {
			case 101: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\nEmail addresses do not typically contain www\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case 102: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\n Email addresses must end in one of the following:  .com, .net, .org, .mil, .edu or a country code\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case 103: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\nAOL appears to be misspelled.\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case 104: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\nYAHOO appears to be misspelled.\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case 105: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\nEXCITE appears to be misspelled\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case 106: {
				AnswerResult = confirm(EmailConfirmMsgTop + '  ' + UserName.value + '\n\nWEBTV appears to be misspelled\n' + EmailConfirmMsgBottom);
				if (AnswerResult == false) return false;
				break;
			}

			case true: {
				showError(ErrorMsg);
				return false;
			}
		}
	}

	return true;
}

function loginNewSubmit() {
	return validateComplete(document.loginNewForm.newUserName, "Please Fill In Correct Email as User Name.");
}
function pwdReminderSubmit() {
	return validateComplete(document.pwdReminderForm.UserEmail, "Please Fill In Correct Email as User Name.");
}

	Cufon.set('fontFamily', 'URWClassico').replace('h1', {
				textShadow: '#CCCCCC -2px 2px'
			});
	Cufon.set('fontFamily', 'Swis721').replace('h2')('h3');
	Cufon.set('fontFamily', 'Swis721').replace('h6', {
				textShadow: '#5e0000 -2px 1px'
			});

