function 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 < 2)
  {
    alert("Please enter at least 2 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \t\r\n\f";
  var checkStr = theForm.Name.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter and whitespace characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.AboutYou.selectedIndex < 0)
  {
    alert("Please select one of the \"About you\" options.");
    theForm.AboutYou.focus();
    return (false);
  }

  if (theForm.County.selectedIndex < 0)
  {
    alert("Please select one of the \"County\" options.");
    theForm.County.focus();
    return (false);
  }

  if (theForm.HowDidYouFindUs.selectedIndex < 0)
  {
    alert("Please select one of the \"How did you find us?\" options.");
    theForm.HowDidYouFindUs.focus();
    return (false);
  }

  if (theForm.EmailAddress.value == "")
  {
    alert("Please enter a value for the \"Email address\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }
  return (true);
}
