function Validator(theForm)
{

  if (theForm.ContactName.value == "")
  {
    alert("Please enter a value for the \"Contact Name\" field.");
    theForm.ContactName.focus();
    return (false);
  }

  if (theForm.ContactName.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Contact Name\" field.");
    theForm.ContactName.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }

  if (theForm.Comments.value.length < 25)
  {
    alert("Please enter at least 25 characters in the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
  return (true);
}
