
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"E-Mail\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"E-Mail\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 60)
  {
    alert("Please enter at most 60 characters in the \"E-Mail\" field.");
    theForm.Email.focus();
    return (false);
  }
  return (true);
}
