<!--
// E-mail Form - Validator
function emailCheck() {
var txt = document.EmailForm.Email.value;
var correct = true, req = true;
if (txt.indexOf("@")<3){
	correct = false;
	req = false;
	alert("I'm sorry. This email address seems wrong. Please"
	+" check the prefix and '@' sign.");
	document.EmailForm.Email.focus();
}
if (req) {
	if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
	&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
	&&(txt.indexOf(".mil")<5)&&(txt.indexOf(".ru")<4)
	&&(txt.indexOf(".co.uk")<7)&&(txt.indexOf(".co.il")<7)
	&&(txt.indexOf(".co.nz")<7)&&(txt.indexOf(".lt")<4)
	&&(txt.indexOf(".ly")<4)&&(txt.indexOf(".org.uk")<8)
	&&(txt.indexOf(".org.il")<8)&&(txt.indexOf(".tf")<4)
	&&(txt.indexOf(".kz")<4)&&(txt.indexOf(".ac")<4)
	&&(txt.indexOf(".tc")<4)&&(txt.indexOf(".co.za")<7)
	&&(txt.indexOf(".com.ro")<8)&&(txt.indexOf(".gs")<4)
	&&(txt.indexOf(".net.nz")<8)&&(txt.indexOf(".sh")<4)
	&&(txt.indexOf(".fm")<4)&&(txt.indexOf(".dk")<4)
	&&(txt.indexOf(".md")<8)&&(txt.indexOf(".ky")<4)
	&&(txt.indexOf(".ms")<4)&&(txt.indexOf(".vg")<4)
	&&(txt.indexOf(".edu")<5)) {
		correct = false;
		alert("I'm sorry. This email address seems wrong. Please"
		+" check the suffix for accuracy. (It should include a "
		+".com,.net,.org,.edu,.gov or .mil.)"
		+"\n\nOther Domain Name Extensions supported:\n\n"
		+"\t.co.uk, .co.il, .co.nz, .to, .lt, .ly, .ru,\n"
		+"\t.org.uk, .org.il, .org.nz, .tf, .kz, .ac,\n" 
		+"\t.ro, .sh, .net.nz, .as, .tc, .co.za,\n"
		+"\t.com.ro, .gs, .fm, .dk, .md, .ky,\n" 
		+"\t.ms, and .vg!\n");
		document.EmailForm.Email.focus();
	}
}
return correct
}

function checkData() {
var correct = true, req = true;
if (document.EmailForm.Name.value == "") {correct = false; req = false; alert("Please enter your name!"); document.EmailForm.Name.focus(); }
if (req) {
if (document.EmailForm.Email.value == "") {correct = false; alert("Please enter your e-mail address."); document.EmailForm.Email.focus(); }
else { 
if (!emailCheck()) { correct = false; } 
}
}
//if (correct) { alert("Thank you for taking your time to fill out this form.") }
return correct
}
//-->