<!--
function Form_Validator(theForm)
{
  if (theForm.name.value == "")
  {
    alert("Please enter your name");
    theForm.name.focus();
    return (false);
  }

  var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.-, ";
  var checkStr = theForm.name.value;
  var allnameValid  = 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)
    {
      allnameValid = false;
      break;
    }
  }
  if (!allnameValid)
  {
    alert("Name field contains non-alphabetic characters");
    theForm.name.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Please enter your telephone number");
    theForm.phone.focus();
    return (false);
  }
  if (theForm.phone.value.length < 10)
  {
    alert("telephone number too short (10 numerics)");
    theForm.phone.focus();
    return (false);
  }

  var checkOK = "0123456789 -()x";
  var checkStr = theForm.phone.value;
  var allphoneValid = true;
  var allNum = "";
  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)
    {
      allphoneValid = false;
      break;
    }
  }
  if (!allphoneValid)
  {
    alert("Telephone Number field contains non-numeric characters ()-x also allowed");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter your email address");
    theForm.email.focus();
    return (false);
  }

  var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@";
  var checkStr = theForm.email.value;
  var allemailValid  = true;
  var allemailatFormat = false;
  var allemaildotFormat = false;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    if (ch == "@")
    {
     allemailatFormat = true;
    }
    if (ch == ".")
    {
     allemaildotFormat = true;
    }
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allemailValid = false;
      break;
    }
  }
  if (!allemailValid)
  {
    alert("Email field contains non-numeric characters");
    theForm.email.focus();
    return (false);
  }
  if (!allemailatFormat)
  {
    alert("Email field format is invalid '@ missing': yourname@yourdomain.yourdomainextention");
    theForm.email.focus();
    return (false);
  }
  if (!allemaildotFormat)
  {
    alert("Email field format is invalid '. missing': yourname@yourdomain.yourdomainextention");
    theForm.email.focus();
    return (false);
  }

  if (theForm.find.value == "")
  {
    alert("Please tell us how you found Leland");
    theForm.find.focus();
    return (false);
  }

  if (theForm.msgquery.value == "")
  {
    alert("Please enter your query or message");
    theForm.msgquery.focus();
    return (false);
  }

}
//-->