//<!--

function validate_mail (inp_str) {
return (inp_str.search (/\w+@\w+(.\w+)+/) != -1);
}


function Form1_Validator(theForm)
{



if (theForm.EMail.value == "" || theForm.EMail.value.indexOf('@', 0) == -1) {

alert("Email non valida!");
theForm.EMail.focus();
return (false);

}


if (!validate_mail (theForm.EMail.value)) {
alert("Email non valida!");
theForm.EMail.focus();
return (false);
}



return (true);
}


//-->

