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.To.value == "")
  {
    alert("Please enter a value for the 'Email' field.");
    theForm.To.focus();
    return (false);
  }

  if (theForm.To.value.length < 5)
  {
    alert("Please enter at least 5 characters in the 'Email' field.");
    theForm.To.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄSÎ*sÏ*ÙËçåÌ€®‚éƒæèíêëìÜ„ñîïÍ…¯ôòó† Þ§ˆ‡‰‹ŠŒ¾Ž‘“’”•Ý–˜—™›š¿œžŸàß0123456789-_@.";
  var checkStr = theForm.To.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);1
    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, digit and '@' characters in the 'Email' field.");
    theForm.To.focus();
    return (false);
  }
  return (true);
}
