﻿function validateForm() {
with (document.registration) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (studentname.value == "") alertMsg += "\nStudent Name";
if (clasess.value == "") alertMsg += "\nClasess of interes";
if (name.value == "") alertMsg += "\nParent or Guardian";
if (mail.value == "") alertMsg += "\nEmail";
if (Home_Phone.value == "") alertMsg += "\nHome Phone";
radioOption = -1;
for (counter=0; counter<Agree_to_all_terms_and_conditions.length; counter++) {
if (Agree_to_all_terms_and_conditions[counter].checked) radioOption = counter;
}
if (radioOption == -1) alertMsg += "\nAgree to Terms";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

