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

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

  if (theForm.company.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"company\" field.");
    theForm.company.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 < 1)
  {
    alert("Please enter at least 1 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

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

  if (theForm.phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }

  var checkOK = "0123456789--";
  var checkStr = theForm.phone.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 digit and \"-\" characters in the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }

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

  if (theForm.fax.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"fax\" field.");
    theForm.fax.focus();
    return (false);
  }

  var checkOK = "0123456789--";
  var checkStr = theForm.fax.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 digit and \"-\" characters in the \"fax\" field.");
    theForm.fax.focus();
    return (false);
  }

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

  if (theForm.address.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"address\" field.");
    theForm.address.focus();
    return (false);
  }

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

  if (theForm.city.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"city\" field.");
    theForm.city.focus();
    return (false);
  }

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

  if (theForm.state_province.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"state_province\" field.");
    theForm.state_province.focus();
    return (false);
  }

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

  if (theForm.Zip.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }

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

  if (theForm.country.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"country\" field.");
    theForm.country.focus();
    return (false);
  }

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

  if (theForm.Users.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Users\" field.");
    theForm.Users.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789--";
  var checkStr = theForm.Users.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, digit and \"-\" characters in the \"Users\" field.");
    theForm.Users.focus();
    return (false);
  }
  return (true);
}
