// JavaScript Document
<script Language="JavaScript">
<!--
function validate(theForm)
{

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"FirstName\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#1662;ƒ&#1657;Œ&#1670;&#1688;&#1672;&#1711;&#1705;&#1681;œ&#1722;&#1726;&#1729;&#1569;&#1570;&#1571;&#1572;&#1573;&#1574;&#1575;&#1576;&#1577;&#1578;&#1579;&#1580;&#1581;&#1582;&#1583;&#1584;&#1585;&#1586;&#1587;&#1588;&#1589;&#1590;&#1591;&#1592;&#1593;&#1594;&#1601;&#1602;&#1603;à&#1604;â&#1605;&#1606;&#1607;&#1608;çèéêë&#1609;&#1610;îïôùûü&#1746; \t\r\n\f";
  var checkStr = theForm.FirstName.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("Please enter only letter and whitespace characters in the \"FirstName\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"LastName\" field.");
    theForm.LastName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#1662;ƒ&#1657;Œ&#1670;&#1688;&#1672;&#1711;&#1705;&#1681;œ&#1722;&#1726;&#1729;&#1569;&#1570;&#1571;&#1572;&#1573;&#1574;&#1575;&#1576;&#1577;&#1578;&#1579;&#1580;&#1581;&#1582;&#1583;&#1584;&#1585;&#1586;&#1587;&#1588;&#1589;&#1590;&#1591;&#1592;&#1593;&#1594;&#1601;&#1602;&#1603;à&#1604;â&#1605;&#1606;&#1607;&#1608;çèéêë&#1609;&#1610;îïôùûü&#1746; \t\r\n\f";
  var checkStr = theForm.LastName.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("Please enter only letter and whitespace characters in the \"LastName\" field.");
    theForm.LastName.focus();
    return (false);
  }

 if (theForm.PhoneNo.value == "")
  {
    alert("Please enter a value for the \"PhoneNo\" field.");
    theForm.PhoneNo.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.PhoneNo.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  if (checkStr < 10)
  {
    alert("Please enter a valid number in the \"PhoneNo\" field.");
    theForm.PhoneNo.focus();
    return (false);
  }

  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 += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"PhoneNo\" field.");
    theForm.PhoneNo.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"PhoneNo\" field.");
    theForm.PhoneNo.focus();
    return (false);
  }

  if (theForm.eMail.value == "")
  {
    alert("Please enter a value for the \"eMail\" field.");
    theForm.eMail.focus();

    return (false);
  }
 if (theForm.eMail.len < 9)
  {
    alert("Please enter a valid number in the \"eMail Address\" field.");
    theForm.eMail.focus();
    return (false);
  }

  if (theForm.Color.selectedIndex == 0)
  {
    alert("The first \"Color\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Color.focus();
    return (false);
  }

  if (theForm.Make.selectedIndex < 0)
  {
    alert("Please select one of the \"Make\" options.");
    theForm.Make.focus();
    return (false);
  }

  if (theForm.Make.selectedIndex == 0)
  {
    alert("The first \"Make\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Make.focus();
    return (false);
  }

  if (theForm.Body_Style.selectedIndex < 0)
  {
    alert("Please select one of the \"Body_Style\" options.");
    theForm.Body_Style.focus();
    return (false);
  }

  if (theForm.Body_Style.selectedIndex == 0)
  {
    alert("The first \"Body_Style\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Body_Style.focus();
    return (false);
  }

  if (theForm.Myear == "")
  {
    alert("Please select one of the \"Myear\" options.");
    theForm.Myear.focus();
    return (false);
  }

  if (theForm.Myear == "")
  {
    alert("The first \"Myear\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Myear.focus();
    return (false);
  }
  return (true);
}
//-->
</script>
<html>
<head>
<title>Validation Page [redirect]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

</html>