function PaymentValidator(theForm) {
  if (theForm.email.value == "") {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }
  if (!isEmailAddr(theForm.email.value)) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
    return (false);
  }   
  if (theForm.email.value.length < 3) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
	return (false);
  }  
  if (theForm.memnumber.value == "") {
    alert("Membership number is required for 'Verify Payment'.");
    theForm.memnumber.focus();
    return (false);
  }
  if (!/\d{10,10}/.test(theForm.memnumber.value)) {
    alert("Membership number should have 10 characters.");
    theForm.memnumber.focus();
    return false;
  }          
  if (theForm.password.value !== "") {
    alert("Password is not required for 'Verify Payment'.");
    theForm.password.focus();
    return (false);
  }
  return(true);
}
function EntriesValidator(theForm) {
  if (theForm.email.value == "") {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }
  if (!isEmailAddr(theForm.email.value)) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
    return (false);
  }   
  if (theForm.email.value.length < 3) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
	return (false);
  }
  if (theForm.memnumber.value !== "") {
    alert("Member Number is not required for 'Verify Entries'.");
    theForm.memnumber.focus();
    return (false);
  }
  if (theForm.password.value == "") {
    alert("Password is required for 'Verify Entries'.");
    theForm.password.focus();
    return (false);
  }
  return(true);
}
function RegisterValidator(theForm) {
  if (theForm.email.value == "") {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }
  if (!isEmailAddr(theForm.email.value)) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
    return (false);
  }   
  if (theForm.email.value.length < 3) {
    alert("Please enter a correctly formatted email address.");
    theForm.email.focus();
	return (false);
  }
  if (theForm.memnumber.value !== "") {
    alert("Member Number is not required for 'Register'.");
    theForm.memnumber.focus();
    return (false);
  }
  if (theForm.password.value !== "") {
    alert("Password will be generated - please leave blank.");
    theForm.password.focus();
    return (false);
  }
  return(true);
}