// Jump menu function
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// Validation for login module on homepage
function checkLogin(){
  if(document.frmHomeLog.email.value == ""){
  alert('Please enter your EMAIL ADDRESS.');
  document.frmHomeLog.email.focus();
  return false;
  }
  if(document.frmHomeLog.password.value == ""){
  alert('Please enter your PASSWORD.');
  document.frmHomeLog.password.focus();
  return false;
  }
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frmHomeLog.email.value)){
  return true;
  }
  alert("There was a problem with the EMAIL ADDRESS you've entered.\nPlease re-check and try again.")
  document.frmHomeLog.email.select();
  return false;
}
// Validation for account creation page
function checkAcct(){
  if(document.frmAcct.fname.value == ""){
  alert('Please enter your FIRST NAME.');
  document.frmAcct.fname.focus();
  return false;
  }
  if(document.frmAcct.lname.value == ""){
  alert('Please enter your LAST NAME.');
  document.frmAcct.lname.focus();
  return false;
  }
  if(document.frmAcct.email.value == ""){
  alert('You must enter an EMAIL ADDRESS.');
  document.frmAcct.email.focus();
  return false;
  }
  if(document.frmAcct.password.value != document.frmAcct.password2.value){
  alert('The passwords in the PASSWORD field and the CONFIRM PASSWORD field do not match.\nPlease recheck and try again.');
  document.frmAcct.password.select();
  return false;
  }
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frmAcct.email.value)){
  return true;
  }
  alert("There was a problem with the EMAIL ADDRESS you've entered.\nPlease re-check and try again.")
  document.frmAcct.email.select();
  return false;
}