function FrontPage_Form1_Validator(theForm)
{

  if (theForm.realname.value == "")
  {
    alert("Please enter a value for the \"What is your first name?\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.realname.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"What is your first name?\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.realname.value.length > 24)
  {
    alert("Please enter at most 24 characters in the \"What is your first name?\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.Last_Name.value == "")
  {
    alert("Please enter a value for the \"What is your last name?\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"What is your last name?\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value.length > 24)
  {
    alert("Please enter at most 24 characters in the \"What is your last name?\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"What is your email address?\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 24)
  {
    alert("Please enter at most 24 characters in the \"What is your email address?\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"What is you phone number?\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length > 24)
  {
    alert("Please enter at most 24 characters in the \"What is you phone number?\" field.");
    theForm.Phone.focus();
    return (false);
  }
  return (true);
}

