<!--

// Start hiding JavaScript code from old browsers.


// Pulldown menu validator:
var submitted = false;

function FormValidator(theForm) {
	if (theForm.SchoolName.value == "") {
		alert("Please enter your school name.");
		theForm.SchoolName.focus();
		return (false);
	}
	
	if (theForm.Address1.value == "") {
	    alert("Please enter the school's address.");
	    theForm.Address1.focus();
	    return (false);
	}
	  
	if (theForm.City.value == "") {
	    alert("Please enter the school's city.");
	    theForm.City.focus();
	    return (false);
	}
	if (theForm.State.value == "") {
	    alert("Please enter the school's state abbreviation.");
	    theForm.State.focus();
	    return (false);
	}
	  
	if (theForm.ZipCode.value == "") {
	    alert("Please enter the school's zip code.");
	    theForm.ZipCode.focus();
	    return (false);
	}
	
	
	if (theForm.EnrollmentNumber.value == "") {
		alert("Please enter the school's enrollment number.");
		theForm.EnrollmentNumber.focus();
		return (false);
	}

	var checkOK = "0123456789";
	var checkStr = theForm.EnrollmentNumber.value;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	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 + 1) == checkOK.length) {
      			allValid = false;
				break;
			}
			allNum += ch;
		}
	}
	if (allValid == false) {
		alert("Please enter only a valid integer in the Enrollment field.");
		theForm.EnrollmentNumber.focus();
		return (false);
	}
	
	if (theForm.RepresentativeName.value == "")  {
	    alert("Please enter the school representative's name.");
	    theForm.RepresentativeName.focus();
		return (false);
	}
	if (theForm.Phone.value == "")	{
	    alert("Please enter a contact phone number.");
	    theForm.Phone.focus();
	    return (false);
	}
	
	return window.confirm('Have you checked for errors?\nOnce you click this button, your information will be sent.\nYou only need to click the send button a single time.\n\nContinue?');
}
//-->