// check the contact form
function checkform(form) {

	var requiredstring = new String(document.getElementById('required').value);
	var fields = requiredstring.split(",");
	var i = 0;
	while (i < fields.length) {
		eval("tempstring = escape(document.getElementById('"+fields[i]+"').value);");
		if ((tempstring == "") || (tempstring == "dummy")) {
			alert("You have not filled in all the required fields.");
			eval("form."+fields[i]+".focus();");
			return false;
		}
		i += 1;
	}

	if ((document.getElementById('Certified_Applicant_One_Yes').checked == false) && (document.getElementById('Certified_Applicant_One_No').checked == false)) {
		alert("Please let us know if the first applicant is certified.");
		document.getElementById('Certified_Applicant_One_Yes').focus();
		return false;
	}

	var address = document.getElementById('email').value;

	if ((address.indexOf("@") == -1) || (address.indexOf(".") == -1) || (address.length < 7)) {
		alert("You must specify a valid e-mail address.");
		form.email.focus();
		form.email.select();
		return false;
	}

	if (document.getElementById('disclaimer').checked == false) {
			alert('You must agree to the Disclaimer before continuing.');
			return false;
	}
}