<!--
function formValidator(theForm)
{

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

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

  if (theForm.Name1.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"First name\" field.");
    theForm.Name1.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.', \t\r\n\f";
  var checkStr = theForm.Name1.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, whitespace and \".',\" characters in the \"First name\" field.");
    theForm.Name1.focus();
    return (false);
  }

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

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

  if (theForm.Name2.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Last name\" field.");
    theForm.Name2.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.', \t\r\n\f";
  var checkStr = theForm.Name2.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, whitespace and \".',\" characters in the \"Last name\" field.");
    theForm.Name2.focus();
    return (false);
  }

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

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

  if (theForm.Title.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Your Title\" field.");
    theForm.Title.focus();
    return (false);
  }

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

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

  if (theForm.Company.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Your Company\" field.");
    theForm.Company.focus();
    return (false);
  }

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

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

  if (theForm.Address1.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Mailing Address\" field.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.State.value == "")
  {
    alert("Please enter a value for the \"Your state or province\" field.");
    theForm.State.focus();
    return (false);
  }

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

  if (theForm.State.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Your state or province\" field.");
    theForm.State.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.' \t\r\n\f";
  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, whitespace and \".'\" characters in the \"Your state or province\" field.");
    theForm.State.focus();
    return (false);
  }

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

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

  if (theForm.PostalCode.value.length > 12)
  {
    alert("Please enter at most 12 characters in the \"Your postal code\" field.");
    theForm.PostalCode.focus();
    return (false);
  }

  if (theForm.Country.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Your Country\" field.");
    theForm.Country.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.' \t\r\n\f";
  var checkStr = theForm.Country.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, whitespace and \".'\" characters in the \"Your Country\" field.");
    theForm.Country.focus();
    return (false);
  }

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

  if (theForm.PhoneNumber.value.length < 6)
  {
    alert("Please enter at least 6 characters in the \"Your telephone number\" field.");
    theForm.PhoneNumber.focus();
    return (false);
  }

  if (theForm.PhoneNumber.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Your telephone number\" field.");
    theForm.PhoneNumber.focus();
    return (false);
  }

  var checkOK = "0123456789- ";
  var checkStr = theForm.PhoneNumber.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  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)
    {
      allValid = false;
      break;
    }
    if (ch != " ")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Your telephone number\" field.");
    theForm.PhoneNumber.focus();
    return (false);
  }

  var checkOK = "0123456789- ";
  var checkStr = theForm.FaxNumber.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  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)
    {
      allValid = false;
      break;
    }
    if (ch != " ")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Your Fax number\" field.");
    theForm.FaxNumber.focus();
    return (false);
  }

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

  if (theForm.Company_Function.selectedIndex == 0)
  {
    alert("The first \"Company_Function\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Company_Function.focus();
    return (false);
  }

  if (theForm.Comments.value.length > 400)
  {
    alert("Please enter at most 400 characters in the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
  return (true);
}
//-->