function openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}


function checkSubmitAcct() {
	if (trimString(document.memberLogin.email.value)==""){
		alert("Please enter your email address.")
		document.memberLogin.email.focus();
	return false;
	}
	if (trimString(document.memberLogin.password.value)==""){
		alert("Please enter your password.")
		document.memberLogin.password.focus();
	return false;
	}
	return true;
}

function checkLogin() {
	if ((trimString(document.globalLogin.email.value)=="")||(document.globalLogin.email.value=="E-mail address")){
		alert("Please enter your email address.")
		document.globalLogin.email.focus();
	return false;
	}
	if ((trimString(document.globalLogin.password.value)=="")||(document.globalLogin.password.value=="password")){
		alert("Please enter your password.")
		document.globalLogin.password.focus();
	return false;
	}
	return true;
}

function checkSubmitPass() {
	if (trimString(document.accountLost.email.value)==""){
		alert("Please enter your email address.")
		document.accountLost.email.focus();
		return false;
	}
	if (trimString(document.accountLost.firstName.value)==""){
		alert("Please enter your first name.")
		document.accountLost.firstName.focus();
		return false;
	}
	if (trimString(document.accountLost.motherMaidenName.value)==""){
		alert("To ensure security on password, please enter your mother's maiden name.")
		document.accountLost.motherMaidenName.focus();
		return false;
	}
	if (trimString(document.accountLost.dob.value)==""){
		alert("Please enter your date of birth.")
		document.accountLost.dob.focus();
		return false;
	}
	return true;
}
function trimString (str) {
//	str = this != window? this : str;
//	return str.replace(/^\s+/g, '').replace(/\s+$/g, '');
}


