  function Validator(theForm){  
   if (theForm.firstName.value == "")
	   {
		alert("Please enter your first name.");
		theForm.firstName.focus();
		return (false);
	   }
	if (theForm.firstName.value.indexOf("@") > -1){
               alert("Please do not enter an email address in this field.");
               theForm.firstName.focus();
               return (false);
		}
   var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ- ";
   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 letters and \"-\" characters in the \" First Name\" field.");
		theForm.firstName.focus();
		return (false);
	   }
    
   if (theForm.lastName.value == "")
	   {
		alert("Please enter your last name.");
		theForm.lastName.focus();
		return (false);
	   }
	if (theForm.lastName.value.indexOf("@") > -1)
		{
				   alert("Please do not enter an email address in this field.");
				   theForm.lastName.focus();
				   return (false);
		}
   if (theForm.lastName.value.length < 2)
	   {
		alert ("Please enter your entire last name.");
		theForm.lastName.focus();
		return (false);
	   }
   var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ- ";
   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 letters and \"-\" characters in the \" Last Name\" field.");
		theForm.lastName.focus();
		return (false);
	   }

   if (theForm.email.value == "") 
	   {
		alert ("Please enter your e-mail address.");
		theForm.email.focus();
		  return (false);
	   }
var emapat = /^[a-z][a-z_0-9\.]+@[a-z_0-9\.]+\.[a-z]{2,3}$/i;
var txtemail = theForm.email.value;
   if (!emapat.test(txtemail))
	  {
		alert('You have entered an invalid e-mail address. Please check and re-enter.');
		theForm.email.focus();
	   return (false);
	  }

  if (theForm.address.value == "")
	  {
		alert("Please enter your address.");
		theForm.address.focus();
		return (false);
	  }
   if (theForm.address.value.length < 2)
	   {
		alert ("Please enter your entire address.");
		theForm.address.focus();
		return (false);
	   }
	if (theForm.address.value.indexOf("@") > -1)
		{
		 alert("Please do not enter an email address in this field.");
		 theForm.address.focus();
		 return (false);
		}

  if (theForm.city.value == "")
	  {
		alert("Please enter your city.");
		theForm.city.focus();
		return (false);
	  }
	if (theForm.city.value.indexOf("@") > -1)
		{
				   alert("Please do not enter an email address in this field.");
				   theForm.city.focus();
				   return (false);
		}

  if (theForm.st.value == "")
	  {
		alert("Please enter your state.");
		theForm.st.focus();
		return (false);
	  }
  if (theForm.st.value.indexOf("@") > -1)
	  {
			   alert("Please do not enter an email address in this field.");
			   theForm.st.focus();
			   return (false);
	  }

  if (theForm.zip.value == "")
	  {
		alert("Please enter your zip code.");
		theForm.zip.focus();
		return (false);
	  }
  if (theForm.zip.value.indexOf("@") > -1)
	  {
	   alert("Please do not enter an email address in this field.");
	   theForm.zip.focus();
	   return (false);
	  }
  if (theForm.phone.value == "")
      {
	  alert("Please enter your phone number.");
	  theForm.phone.focus();
	  return (false);
	  }
  if (theForm.phone.value.indexOf("@") > -1)
	{
     alert("Please do not enter an email address in this field.");
     theForm.phone.focus();
     return (false);
    }
  if (theForm.DOB.value == "")
   {
	alert("Please enter your date of birth.");
	theForm.DOB.focus();
	return (false);
   }
	
<!--
<!--  if (theForm.socSecurity.value == "")
<!--  {
<!--    alert("Please enter your Social Security Number.");
<!--    theForm.socSecurity.focus();
<!--    return (false);
<!--  }
<!--	if (theForm.socSecurity.value.indexOf("@") > -1){
<!--               alert("Please do not enter an email address in this field.");
<!--               theForm.socSecurity.focus();
<!--               return (false);
<!--	}
<!--   if (theForm.socSecurity.value.length < 9){
<!--    alert ("Please enter your entire Social Security Number.");
<!--    theForm.socSecurity.focus();
<!--    return (false);
<!--  }
<!--   var checkOK = "1234567890- ";
<!--   var checkStr = theForm.socSecurity.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 numbers and \"-\" characters in the \" Social Security\" field.");
<!--    theForm.socSecurity.focus();
<!--    return (false);
<!--   }
   
  if (theForm.eduCompleted.value == "")
  {
    alert("Please indicate your education.");
    theForm.eduCompleted.focus();
    return (false);
  }
	if (theForm.eduCompleted.value.indexOf("@") > -1){
               alert("Please do not enter an email address in this field.");
               theForm.eduCompleted.focus();
               return (false);
	}

  if (theForm.yrsExp.value == "")
  {
    alert("Please indicate your years of experience.");
    theForm.yrsExp.focus();
    return (false);
  }
    if (theForm.eduCompleted.value == "")
  {
    alert("Please indicate your education.");
    theForm.eduCompleted.focus();
    return (false);
  }  
  //check that at least one checkbox or texbox is checked for days available
	var daysAvail = false;
	for (var i=14; i<=20; i++) {
		if (theForm.elements[i].checked) {
			daysAvail = true;
		}
	} 
	if (!daysAvail) {
			alert("You need to check at least one day of the week you are available.");
			return false;	
	}		
	// specialty
    var spec = false;
	for (var i=23; i<=28; i++) {
		if (theForm.elements[i].checked) {
			spec = true;
		}
	} 	
	if (!spec) {
			alert("You need to check at least one specialty.");
			return false;	
	}	
	// What positions held
	var pos = false;
	for (var i=29; i<=37; i++) {
		if (theForm.elements[i].checked) {
			pos = true;
		}
	} 
	if (!pos) {
			alert("You need to check at least one position.");
			return false;	
	}
	// State or Nat'l Cert
	 if (theForm.stateCert.value == "")
	   {
		alert("Please provide information on your certification status.");
		theForm.stateCert.focus();
		return (false);
	   }
	 // X-Ray License
	 if (theForm.xRayLicense.value == "")
	   {
		alert("Please provide information (if any) on your X-Ray License status.");
		theForm.xRayLicense.focus();
		return (false);
	   }
	 // Hourly rate
     if (theForm.hourlyRate.value == "")
	   {
		alert("Please provide your hourly rate.");
		theForm.hourlyRate.focus();
		return (false);
	   }
	 // Indicate skill set(s)
	 var doYou = false;
	 for (var i=42; i<=61; i++) {
	 	if (theForm.elements[i].checked) {
			doYou = true;
		}
	  } 
	  if (!doYou) {
		alert("You need to check at least one skill set.");
		return false;	
	   }
	 // Referred by
	 if(theForm.referredDental.value == "")
	 {
		 alert("Please let us know how you found us.");
		 theForm.referredDental.focus();
		 return (false);
	 }
	 // Reference 1
	 if (theForm.employName.value == "")
	   {
		alert("Please provide the name of a former employer as a reference that can be checked by Dental Staffers.");
		theForm.employName.focus();
		return (false);
	   }
		      
     if (theForm.employAdd.value == "")
	   {
		alert("Please provide the address of a former employer as a reference that can be checked by Dental Staffers.");
		theForm.employAdd.focus();
		return (false);
	   }
	  
	   if (theForm.employPhone.value == ""){
		alert("Please provide the phone of a former employer as a reference that can be checked by Dental Staffers.");
		theForm.employPhone.focus();
		return (false);
	   }

	 // Former Employer Name(2)
     if (theForm.employName2.value == "")
	   {
		alert("Please provide the name of a 2ND former employer as a reference that can be checked by Dental Staffers.");
		theForm.employName2.focus();
		return (false);
	   }
	  
	 if (theForm.employAdd2.value == "")
	   {
		alert("Please provide the address of a 2ND former employer as a reference that can be checked by Dental Staffers.");
		theForm.employAdd2.focus();
		return (false);
	   }
	  
	 if (theForm.employPhone2.value == "")
	   {
		alert("Please provide the phone number of a 2ND former employer that can be checked by Dental Staffers.");
		theForm.employPhone2.focus();
		return (false);
	   }
	// Verify at least one employer
	 if (theForm.fromDate.value == "")
	   {
		alert("Please indicate the starting date of your last position.");
		theForm.fromDate.focus();
		return (false);
	   }
	  
	  if (theForm.toDate.value == "")
	   {
		alert("Please indicate the ending date of your last position.");
		theForm.toDate.focus();
		return (false);
  	   }
	  if (theForm.recentEmployer.value == "")
	   {
		alert("Please provide the name of your last employer.");
		theForm.recentEmployer.focus();
		return (false);
	    }
  
	  if (theForm.recentEmployerAdd.value == "")
	   {
		alert("Please provide the address of your last employer.");
		theForm.recentEmployerAdd.focus();
		return (false);
	   }
  
	  if (theForm.recentEmployerPos.value == "")
	   {
		alert("Please indicate the last position you held.");
		theForm.recentEmployerPos.focus();
		return (false);
	   }
    
	  if (theForm.recentEmployReason.value == "")
	   {
		alert("Please indicate the reason you left your last position.");
		theForm.recentEmployReason.focus();
		return (false);
	   }

	  if (theForm.recentEmployResp.value == "")
	   {
		alert("Please indicate your responsibilities.");
		theForm.recentEmployResp.focus();
		return (false);
	   }
	   
	  var tested = false;
	  for (var i=86; i<=89; i++) 
	   {
	 		if (theForm.elements[i].checked) {
			tested = true;
			}
	    } 
	  if (!tested) {
		alert("You need to verify testing status.");
		return false;	
	   }

  return (true);
 }
