<!--
function Form_Validator(theForm)
{

  if (theForm.first_name.value == "")    { alert("Please enter your First Name");           theForm.first_name.focus(); return (false); }
  if (theForm.last_name.value == "")     { alert("Please enter your Last Name");            theForm.last_name.focus();  return (false); }
  if (theForm.company.value == "")       { alert("Please enter Company Name");              theForm.company.focus();    return (false); }
  if (theForm.country.value == "")       { alert("Please select a Country Name");           theForm.country.focus();    return (false); }
  if (theForm.phone.value == "")         { alert("Please enter 10 digit Telephone Number"); theForm.phone.focus();      return (false); }
  if (theForm.phone.value.length < 10)   { alert("Telephone number is too short - min 10"); theForm.phone.focus();      return (false); }
  if (theForm.email.value == "")         { alert("Please enter Email address");             theForm.email.focus();      return (false); }

  var checkOK  = "0123456789.-() extEXT";
  var checkStr = theForm.phone.value;
  var allValid = 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("Phone Number is not numeric"); theForm.phone.focus(); return (false); }

  var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@";
  var checkStr = theForm.email.value;
  var allValid  = 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)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Email field contains invalid 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.EcoSphere.value == "N" ) {
    if (theForm.EcoStix.value == "N" ) {
      if (theForm.EcoMer.value == "N" ) {
        alert("Please select at least one product"); return (false);
      }
    }
  }

  if (theForm.Industry_Paper.value == "N" ) {
    if (theForm.Industry_Adhesives.value == "N" ) {
      if (theForm.Industry_Paints.value == "N" ) {
        if (theForm.Industry_Carpet.value == "N" ) {
          if (theForm.Industry_Other.value == "N" ) {
            alert("Please select at least one industry"); return (false);
          }
        }
      }
    }
  }

}
//-->