<!--

function checkForm() {
var invaliddata = "";
var zipCheck = /^\d{5}(-\d{4})?$/;

// check for first name
if (document.form1.FirstName.value == "") {
	invaliddata += "\n - First Name is missing.";
}

// check for first name
if (document.form1.FamilyName.value == "") {
	invaliddata += "\n - Last Name is missing.";
}

// check for address
if (document.form1.EMail.value == "") {
	invaliddata += "\n - Email address is missing.";
}

// check for authorization
if ((document.form1.ccode.value != document.form1.authcode.value) || (document.form1.ccode.value == "")) {
	invaliddata += "\n - The authorization code you entered doesn't match the image.";
}

if (document.form1.verify.checked == 0) {
	invaliddata += "\n - You must agree to the terms and conditions to enter.";
}

// show errors
if (invaliddata != "") {
	invaliddata ="Errors have been detected in your submission:\n" + invaliddata;
	alert(invaliddata);
	return false;
}

}
//->
