<!--
function popIt(eventId) {
	MM_openBrWindow('popEvent.asp?eventId='+ eventId,'popWindow','scrollbars=yes,width=500,height=500');
}
function cellOver(menuId) {
	document.getElementById("menu"+menuId).style.backgroundColor = '#764F23';
}
function cellOut(menuId) {
	document.getElementById("menu"+menuId).style.backgroundColor = '#CA572D';
}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function FrmValidLogIn(theForm) {
 if (theForm.userEmail.value =="")  {
    alert("Please enter a User Email.");
    theForm.userEmail.focus();
    return (false);
 }
 if (theForm.userPassword.value =="") {
    alert("Please enter a Password.");
    theForm.userPassword.focus();
    return (false);
  }
 if (validatePW(theForm.userPassword.value) || (theForm.userPassword.value.length<5 || theForm.userPassword.value.length>15)){
		alert("Passwords must be between 5 and 15 characters long, and can only contain letters, numbers, and underscores");
    theForm.userPassword.focus();
    return (false);
	}
	if(isNaN(theForm.userPassword.value))	{
	} else {
    alert("For security reasons Passwords cannot be all numbers.");
    theForm.userPassword.focus();
    return (false);
	}
}
function validatePW(newPW) {
	var pw = newPW;
	tomatch = /^[a-zA-Z0-9_]+$/;  //regular expression shortcut would be /^\w+$/
	if (!tomatch.test(pw)) {		
		return true;
	} 
	return false;
}
function validateUN(newUN) {
	var un = newUN;
	tomatch = /[a-zA-Z0-9_]+$/;  //regular expression shortcut would be /^\w+$/
	if (!tomatch.test(un)) {		
		return true;
	} 
	return false;
}
function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}
function submitForm() {
	document.Form1.submit();
}
-->