function validate_email() {
  var email = document.getElementById("email");
  with (email) {
	atPosition = value.indexOf("@");
	dotPosition = value.lastIndexOf(".");
	if(atPosition < 1 || dotPosition - atPosition < 2)
		{ alert("The email address you provided did not pass verification.\n Please check it and try it again"); return false; }
	else { return true; }
	}
}
