
<!-- Hidding from the older browsers

// this is for all the required fields
function postjobRequired(form) {
		
	var passed = true; /* This variable is set to "false" if the form is not ready. */
	fieldtofocus = ""; /* Data field to receive the focus after the alert is closed. */

		/*  Set up the initial string of the alert message. The "\n" 
		creates a new line for the text string.  */

	message ="Please enter all the required fields: \n"

		/* Checks the first required input field for an empty string. */
	if (form.FName.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - First Name \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.FName;
   	 }
	 
	 
	 
	 	/* Checks the first required input field for an empty string. */
	if (form.LName.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Last Name \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;

		/*  Here we use an "if...then" statement to see if this was the first
		field with a null, and if  it is, we set this as the field to receive
		the focus. */

		if (fieldtofocus == "")  {fieldtofocus = form.LName;}
   	 }
	 	 
		/* This is repeated for each required field. */
   	 if (form.Add.value == "") {
    		message += "- - Address \n";
		passed = false;

		/*  Here we use an "if...then" statement to see if this was the first
		field with a null, and if  it is, we set this as the field to receive
		the focus. */

		if (fieldtofocus == "")  {fieldtofocus = form.Add;}
 	  }
		/* Continue this process for each of the data fields. */

   	 if (form.city.value == "") {
    		message += "- - City \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.city;}
 	   }
	   
	 if (form.State.value == "") {
    		message += "- - State \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.State;}
 	   }
	   
	if (form.Zip.value == "") {
    		message += "- - Zip \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.Zip;}
 	   }

   	 if (form.Phone.value == "") {
    		message += "- - Phone \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.Phone;}
 	   }
	 if (form.Email.value == "") {
    		message += "- - Email \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.Email;}
 	   }
	 if (form.School.value == "") {
    		message += "- - School Name \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.School;}
 	   }
	 if (form.TeachWhat.value == "") {
    		message += "- - Which Grade do you teach \n";
		passed = false;
		if (fieldtofocus == "")  {fieldtofocus = form.TeachWhat;}
 	   }
	 
	   
		/*   If there are missing data fields, send out the message
		using a call to the fixFieldInfo function. */    

	if (passed == false)  {
		fixFieldInfo(message, fieldtofocus); 
	}
		/*  We need to return a "true" to the form's submit so that it will send
		the form. If a "false" is returned, nothing happens with the form 
		submittal.  */

	return passed;
	
}

	/*  And finally, we send out the message with the 
concatenated message strings and the field to receive 
the cursor (focus) after the alert message is closed.*/

function fixFieldInfo(message, fieldtofocus) {
	alert(message);
	fieldtofocus.focus();
}


// end comments to hid scripts

