// JavaScript Document
function FrontPage_Form1_Validator(theForm)
{
 
  if (theForm.Email_Address__.value == "")
  {
    alert("Please enter a value for the \"Email_Address__\" field.");
    theForm.Email_Address__.focus();
    return (false);
  }
 
  if (theForm.Email_Address__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Email_Address__\" field.");
    theForm.Email_Address__.focus();
    return (false);
  }
 
  if (theForm.Email_Address__.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Email_Address__\" field.");
    theForm.Email_Address__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@. \t\r\n\f";
  var checkStr = theForm.Email_Address__.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, whitespace and \"@.\" characters in the \"Email_Address__\" field.");
    theForm.Email_Address__.focus();
    return (false);
  }
 
  if (theForm.First_Name__.value == "")
  {
    alert("Please enter a value for the \"First_Name__\" field.");
    theForm.First_Name__.focus();
    return (false);
  }
 
  if (theForm.First_Name__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"First_Name__\" field.");
    theForm.First_Name__.focus();
    return (false);
  }
 
  if (theForm.First_Name__.value.length > 26)
  {
    alert("Please enter at most 26 characters in the \"First_Name__\" field.");
    theForm.First_Name__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.First_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 characters in the \"First_Name__\" field.");
    theForm.First_Name__.focus();
    return (false);
  }
 
  if (theForm.Last_Name__.value == "")
  {
    alert("Please enter a value for the \"Last_Name__\" field.");
    theForm.Last_Name__.focus();
    return (false);
  }
 
  if (theForm.Last_Name__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Last_Name__\" field.");
    theForm.Last_Name__.focus();
    return (false);
  }
 
  if (theForm.Last_Name__.value.length > 26)
  {
    alert("Please enter at most 26 characters in the \"Last_Name__\" field.");
    theForm.Last_Name__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.Last_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 characters in the \"Last_Name__\" field.");
    theForm.Last_Name__.focus();
    return (false);
  }
 
  if (theForm.Address_1__.value == "")
  {
    alert("Please enter a value for the \"Address_1__\" field.");
    theForm.Address_1__.focus();
    return (false);
  }
 
  if (theForm.Address_1__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Address_1__\" field.");
    theForm.Address_1__.focus();
    return (false);
  }
 
  if (theForm.Address_1__.value.length > 26)
  {
    alert("Please enter at most 26 characters in the \"Address_1__\" field.");
    theForm.Address_1__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-. \t\r\n\f";
  var checkStr = theForm.Address_1__.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, whitespace and \".\" characters in the \"Address_1__\" field.");
    theForm.Address_1__.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 < 2)
  {
    alert("Please enter at least 2 characters in the \"City__\" field.");
    theForm.City__.focus();
    return (false);
  }
 
  if (theForm.City__.value.length > 26)
  {
    alert("Please enter at most 26 characters in the \"City__\" field.");
    theForm.City__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ \t\r\n\f";
  var checkStr = theForm.City__.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 \"City__\" field.");
    theForm.City__.focus();
    return (false);
  }
 
  if (theForm.State__.value == "")
  {
    alert("Please enter a value for the \"State__\" field.");
    theForm.State__.focus();
    return (false);
  }
 
  if (theForm.State__.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"State__\" field.");
    theForm.State__.focus();
    return (false);
  }
 
  if (theForm.State__.value.length > 26)
  {
    alert("Please enter at most 26 characters in the \"State__\" field.");
    theForm.State__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.State__.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 characters in the \"State__\" field.");
    theForm.State__.focus();
    return (false);
  }
 
  if (theForm.Zip_Code__.value == "")
  {
    alert("Please enter a value for the \"Zip_Code__\" field.");
    theForm.Zip_Code__.focus();
    return (false);
  }
 
  if (theForm.Zip_Code__.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip_Code__\" field.");
    theForm.Zip_Code__.focus();
    return (false);
  }
 
  if (theForm.Zip_Code__.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Zip_Code__\" field.");
    theForm.Zip_Code__.focus();
    return (false);
  }
 
  var checkOK = "0123456789-";
  var checkStr = theForm.Zip_Code__.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 characters in the \"Zip_Code__\" field.");
    theForm.Zip_Code__.focus();
    return (false);
  }
 
  if (theForm.Phone_No__.value == "")
  {
    alert("Please enter a value for the \"Phone_No__\" field.");
    theForm.Phone_No__.focus();
    return (false);
  }
 
  if (theForm.Phone_No__.value.length < 9)
  {
    alert("Please enter at least 9 characters in the \"Phone_No__\" field.");
    theForm.Phone_No__.focus();
    return (false);
  }
 
  if (theForm.Phone_No__.value.length > 15)
  {
    alert("Please enter at most 15 characters in the \"Phone_No__\" field.");
    theForm.Phone_No__.focus();
    return (false);
  }
 
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-() -";
  var checkStr = theForm.Phone_No__.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 \"Phone_No__\" field.");
    theForm.Phone_No__.focus();
    return (false);
  }
  return (true);
}

