<!--
function _Form1_Validator(theForm)
{



  
  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 > 128)
  {
    alert("Please enter at most 128 characters in the \"Last name\" field.");
    theForm.last_name.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 > 128)
  {
    alert("Please enter at most 128 characters in the \"First name\" field.");
    theForm.first_name.focus();
    return (false);
  }

  if (theForm.middle_name.value == "")
  {
    alert("Please enter a value for the \"Middle Name\" field.");
    theForm.middle_name.focus();
    return (false);
  }

  if (theForm.middle_name.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Middle Name\" field.");
    theForm.middle_name.focus();
    return (false);
  }

  if (theForm.address.value == "")
  {
    alert("Please enter a value for the \"address\" field.");
    theForm.address.focus();
    return (false);
  }

  if (theForm.address.value.length > 128)
  {
    alert("Please enter at most 128 characters in the \"address\" field.");
    theForm.address.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 > 128)
  {
    alert("Please enter at most 128 characters in the \"city\" field.");
    theForm.city.focus();
    return (false);
  }

  /*
  if (theForm.state_province.value == "")
  {
    alert("Please enter a value for the \"contact\" field.");
    theForm.state_province.focus();
    return (false);
  }
  */


  if (theForm.zip_code.value == "")
  {
    alert("Please enter a value for the \"contact\" field.");
    theForm.zip_code.focus();
    return (false);
  }

  if (theForm.zip_code.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"Zip Code\" field.");
    theForm.zip_code.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Please enter a value for the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length > 18)
  {
    alert("Please enter at most 18 characters in the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.Best_Contact_Time_PM.selectedIndex == 0)
  {
    alert("The first \"Best time to contact\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Best_Contact_Time_PM.focus();
    return (false);
  }

  if (theForm.Best_Contact_Time_AM.selectedIndex == 0)
  {
    alert("The first \"Best time contact AM\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Best_Contact_Time_AM.focus();
    return (false);
  }
  
    if(theForm.date_filed_application_with_us.value != ""){
	   if (! isDate(theForm.date_filed_application_with_us.value))
	  {
	    alert("Please enter dates in mm/dd/yyyy format.");
	    theForm.date_filed_application_with_us.focus();
	    return (false);
	  }
  }
  
    if(theForm.date_employed_with_us.value != ""){
	   if ( theForm.date_employed_with_us.value =="")
	  {
	    alert("Please enter dates in mm/dd/yyyy format.");
	    theForm.date_employed_with_us.focus();
	    return (false);
	  }
  }

  if (theForm.desired_salary_range.value == "")
  {
    alert("Please enter a value for the \"desired_salary_range\" field.");
    theForm.desired_salary_range.focus();
    return (false);
  }

  if (theForm.desired_salary_range.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"desired_salary_range\" field.");
    theForm.desired_salary_range.focus();
    return (false);
  }
  
/*
  if (theForm.available_to_work[0].checked && theForm.Available_Work_Shift.selectedIndex == 0)
  {
    alert("The first \"Work Shift\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Available_Work_Shift.focus();
    return (false);
  }

  if (theForm.available_to_work[1].checked &&  theForm.Part_Time_Work.selectedIndex == 0)
  {
    alert("The first \"Part Time Work\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Part_Time_Work.focus();
    return (false);
  }

*/

  
  if(theForm.list_special_skills_machinery.value.length > 1200){
  	alert("Please enter at most 1200 characters in the \"Special skills machinery list\" field.");
	theForm.list_special_skills_machinery.focus();
	return (false);
  }
  
  
   if(theForm.specialized_training_job_related.value.length > 1200){
  	alert("Please enter at most 1200 characters in the \"Specialized job related training\" field.");
	theForm.specialized_training_job_related.focus();
	return (false);
  }
  
  return (true);
}
//-->
