// JavaScript Document

function checkForm(form){
<!--                        var email_test = /[a-z0-9]+(\.[a-z0-9]+)*@[a-z0-9]+(\.[a-z0-9]+)+/i -->

var email_test = /[a-zA-Z0-9]+(\.[a-zA-Z0-9\._-]+)*@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9\._-]+)+/i 
with(form){

if(name.value == ""){
alert("Please fill your Full Name!");
return false;
}

if(email.value == ""){
alert("Please fill your Email address!");
return false;
} else {
	var res = email.value.match(email_test);
if(!res || res[0] != email.value){
alert("Invalid Email address!");
return false;
}
}

/*
if(terms.value == ""){
	alert("You must agree to the Terms of Use.");
return false;
}
return true;
}
*/
if(terms.checked != true){
	alert("Please indicate if you have read, understood and agree to be bound by the Terms and Use.");
return false;
}
return true;
}


}
