﻿function validateForm(theForm)
{
	valid = true;
	if (theForm.firstname.value == "") {
		alert ("Please fill in the 'First Name' box.");
		theForm.firstname.focus();
		valid = false;
	} else if (theForm.lastname.value == "") {
		alert ("Please fill in the 'Last Name' box.");
		theForm.lastname.focus();
		valid = false;
	} else if (theForm.address.value == "") {
		alert ("Please fill in the 'Address' box.");
		theForm.address.focus();
		valid = false;
	} else if (theForm.city.value == "") {
		alert ("Please fill in the 'City' box.");
		theForm.city.focus();
		valid = false;
	} else if (theForm.state.value == "") {
		alert ("Please fill in the 'State' box.");
		theForm.state.focus();
		valid = false;
	} else if (theForm.zip.value == "") {
		alert ("Please fill in the 'Zip Code' box.");
		theForm.zip.focus();
		valid = false;
	} else if (theForm.phone.value == "") {
		alert ("Please fill in the 'Phone' box.");
		theForm.phone.focus();
		valid = false;
	} else if (theForm.email.value == "") {
		alert ("Please fill in the 'Email' box.");
		theForm.email.focus();
		valid = false;
	} else if (theForm.child_fname.value == "") {
		alert ("Please fill in the 'Child's First Name' box.");
		theForm.child_fname.focus();
		valid = false;
	} else if (theForm.child_lname.value == "") {
		alert ("Please fill in the 'Child's Last Name' box.");
		theForm.child_lname.focus();
		valid = false;
	} else if (theForm.grade.value == "") {
		alert ("Please fill in the 'Grade In School' box.");
		theForm.grade.focus();
		valid = false;
	} else if (theForm.school.value == "") {
		alert ("Please fill in the 'School Name' box.");
		theForm.school.focus();
		valid = false;
	}
	return valid;
}


