function Form1_Validator(theForm)
{

  if (theForm.t_email_address.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.t_email_address.focus();
    return (false);
  }

  if (theForm.t_email_address.value.length > 255)
  {
    alert("Please enter at most 255 characters in the \"Email Address\" field.");
    theForm.t_email_address.focus();
    return (false);
  }

  if (emailCheck(theForm.t_email_address.value) == false)
  {
    theForm.t_email_address.focus();
    return (false);
  }

  if (theForm.t_password.value == "")
  {
    alert("Please enter a value for the \"Password\" field.");
    theForm.t_password.focus();
    return (false);
  }

  if (theForm.t_confirm_password.value == "")
  {
    alert("Please enter a value for the \"Confirm Password\" field.");
    theForm.t_confirm_password.focus();
    return (false);
  }

  if (theForm.t_password.value != theForm.t_confirm_password.value)
  {
    alert("The password you entered was not the same as the password you entered for confirmation.  Please re-enter your passwords so that they match correctly.");
    theForm.t_password.focus();
    return (false);
  }

  if (theForm.t_email_address.value != theForm.t_confirm_email_address.value)
  {
    alert("The email address you entered was not the same as the email address you entered for confirmation.  Please re-enter your email addresses so that they match correctly.");
    theForm.t_email_address.focus();
    return (false);
  }

  if (theForm.t_email_address.value == theForm.t_referral_email.value)
  {
    alert("You cannot refer the same email address that is registering.  Please clear out the referral email address and click register.");
    theForm.t_referral_email.focus();
    return (false);
  }

  if (theForm.c_terms.checked == false)
  {
    alert("You must agree to the Terms and Conditions of this site by checking the appropriate checkbox.");
    theForm.c_terms.focus();
    return (false);
  }

  return (true);
}


