//email Validation

function checkEmail(form) {
	if ( (form.EMAIL.value.indexOf("@") <=0) || (form.EMAIL.value.indexOf(".") <= 0) || (form.EMAIL.value.indexOf(" ") > 0)) {
		alert("Please enter a valid email address.");
		return false;
	}
	temp = theForm.email.value + " ";
	found = temp.search(/[\w\.-]+@([\w-]+\.){1,3}[a-zA-Z]{2,}\s{1}/);
	if (found != 0) {
		alert("Please enter a valid email address.");
		return false;
	}
	else
		return true;
}