

function CheckRequiredFields() {
  var error = 0;
  var error_message = "Errors have occured during the process of your form!\nPlease make the following corrections:\n\n";
// Put field checks below this point.
  if(WithoutContent(document.adm_info_requests.parent_names.value))
	{ error_message += "* Please enter a value in the \"Parent Names\" field.\n"; error = 1; }
  if(WithoutContent(document.adm_info_requests.address.value))
	{ error_message += "* Please enter a value in the \"Mailing Address\" field.\n"; error = 1; }
  if(WithoutContent(document.adm_info_requests.phone.value))
	{ error_message += "* Please enter a value in the \"Phone Number\" field.\n"; error = 1; }
  if(WithoutContent(document.adm_info_requests.email.value))
	{ error_message += "* Please enter a value in the \"E-mail\" field.\n"; error = 1; }
  if(WithoutContent(document.adm_info_requests.student1_name.value))
	{ error_message += "* Please enter a value in the \"Name\" field for Student 1.\n"; error = 1; }
  if(WithoutContent(document.adm_info_requests.student1_birthdate.value))
	{ error_message += "* Please enter a value in the \"Date of Birth\" field for Student 1.\n"; error = 1; }

  if(!WithoutContent(document.adm_info_requests.student2_name.value) || !WithoutContent(document.adm_info_requests.student2_birthdate.value) || !WithoutContent(document.adm_info_requests.student2_current_school.value))
  {
    if(WithoutContent(document.adm_info_requests.student2_name.value))
	  { error_message += "* Please enter a value in the \"Name\" field for Student 2.\n"; error = 1; }
    if(WithoutContent(document.adm_info_requests.student2_birthdate.value))
	  { error_message += "* Please enter a value in the \"Date of Birth\" field for Student 2.\n"; error = 1; }
  }
// Put field checks above this point.

  if (error == 1) {
    alert(error_message);
    return false;
  } else {
    return true;
  }
} // end of function CheckRequiredFields()

function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}
