<!--
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.email.value == "")
  {
   alert("Please enter a value for the email field.");
   theForm.email.focus();
   return (false);
  }

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

 if (theForm.email.value.indexOf('@', 0) == -1)
  {
    alert("Your email address does not appear to be valid. Valid email addresses must contain the @ character.");
    theForm.email.focus();
    return (false);
  }

 if (theForm.email.value.indexOf('.', 0) == -1)
  {
    alert("Your email address does not appear to be valid.  Valid email addresses must contain a TLD like .com, .net, or .org.");
    theForm.email.focus();
    return (false);
  }


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

  if (theForm.city.value.length > 35)
  {
    alert("Please enter at most 35 characters in the city field.");
    theForm.city.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.zip.value.length > 12)
  {
    alert("Please enter at most 12 characters in the zip field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.year.selectedIndex == 0) {
  	alert("Choose One is not a valid year.  Please use the pull down to select your year.");
    	theForm.year.focus();
    return (false);
  }

  if (theForm.make.options[theForm.make.selectedIndex].value == "Choose One") {
  	alert("Choose One is not a valid make.  Please use the pull down to select your make.");
    	theForm.make.focus();
    return (false);
  }

  if (theForm.model.options[theForm.model.selectedIndex].value == "Choose One") {
    alert("Choose One is not a valid model.  Please use the pull down to select your model.");
    theForm.model.focus();
    return (false);
  }

  if (theForm.PartsNeeded.selectedIndex == 0) {
    		alert("Please enter a value for the part field, or complete the 'other' field if your part is not listed.");
    		theForm.PartsNeeded.focus();
    		return (false);
  }
  if (theForm.PartsNeeded.selectedIndex == 1) {
        if (theForm.OtherPartsNeeded.value == "") {
                alert("You selected OTHER as your part!\n Please fill in the 'other' field.");
                theForm.OtherPartsNeeded.focus();
                return (false);
        }
  }

  return (true);
}
//-->

