<!--
function checkForm() {
missinginfo = "";

if (document.form.FirstName.value == "" || document.form.FirstName.value == "First Name") {
missinginfo += "\n     -  First Name";
}
if (document.form.LastName.value == "" || document.form.LastName.value == "Last Name") {
missinginfo += "\n     -  Last Name";
}
/*if (document.form.txtPhoneAreaCode.value == "" || document.form.txtPhoneAreaCode.value == "Area") {
missinginfo += "\n     -  Phone Area Code";
}
if (document.form.txtPhonePrefix.value == "" || document.form.txtPhonePrefix.value == "Prefix") {
missinginfo += "\n     -  Phone Prefix";
}
if (document.form.txtPhoneNumber.value == "" || document.form.txtPhoneNumber.value == "Number") {
missinginfo += "\n     -  Phone Number";
}*/
var Phone = document.form.txtPhoneAreaCode.value + document.form.txtPhonePrefix.value + document.form.txtPhoneNumber.value
if ( Phone == "AreaPrefixNumber" || Phone == "") {
missinginfo += "\n     -  Phone";
}
if ( Phone != "AreaPrefixNumber" && Phone != "") {
	if (Phone.length == 10) {
		var strValidChars = "0123456789";
		var strChar;
		for (i = 0; i < Phone.length; i++) {
			strChar = Phone.charAt(i);
			if (strValidChars.indexOf(strChar) == -1) {
				missinginfo += "\n     -  Phone Contents";
			}
		}
	} else {
		missinginfo += "\n     -  Phone Contents";
	}
}
if ( document.form.EMail.value == "" || document.form.EMail.value == "Email" ) {
missinginfo += "\n     -  EMail";
}
else {
	var email = document.form.EMail.value;
	var AtPos = email.indexOf('@');
	var StopPos = email.lastIndexOf('.');
	if ( email != "" ) {
		if (AtPos == -1 || StopPos == -1) {
			missinginfo += "\n     -  Bad EMail Address";
		}
		else if (StopPos < AtPos) {
			missinginfo += "\n     -  Bad EMail Address";
		}
		else if (StopPos - AtPos == 1) {
			missinginfo += "\n     -  Bad EMail Address";
		}
		else if ( ( email.indexOf( ' ' ) != -1 ) ||
			( email.indexOf( '@' ) <= 0 ) || ( email.indexOf( '.' ) <= 0 ) ||
			( AtPos == (email.length)-1 ) || ( StopPos == (email.length)-1 ) ||
			( StopPos >= (email.length)-2 ) ) {
			missinginfo += "\n     -  Bad EMail Address";
	    }
	    else {
	    	// no errors
	    }
	}
}
if (document.form.txtCity.value == "" || document.form.txtCity.value == "City") {
missinginfo += "\n     -  City";
}
/*if (document.form.txtState.value == "" || document.form.txtState.value == "St") {
missinginfo += "\n     -  State";
}*/
if (document.form.txtZip.value != "" || document.form.txtZip.value != "Zip") {
	//alert(document.form.txtZip.value.length);
	if (document.form.txtZip.value.length == 5) {
		var strValidChars = "0123456789";
		var strChar;
		for (i = 0; i < document.form.txtZip.value.length; i++) {
			strChar = document.form.txtZip.value.charAt(i);
			if (strValidChars.indexOf(strChar) == -1) {
				missinginfo += "\n     -  Zip Contents";
			}
		}
	} else {
		missinginfo += "\n     -  Zip";
	}
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}

//-->

