usa questa, ti ho anche modificato la regExpr in modo che validi sia .it sia .com
codice:
function checkEmail(form){
var obbligatorio = form.DESTINATARIO_1.value;
var reg_test = new RegExp("^([a-zA-Z]+[\._-])?['a-zA-Z]+(-)?([a-zA-Z\d]+)?@miosito\.(it|com)$", "");
if(!obbligatorio || !reg_test.test(obbligatorio)){
alert("È necessario che almeno il primo campo Destinatario sia un indirizzo Email valido.");
return false;
}
var other = form.DESTINATARIO_2.value;
if(other){
if(!reg_test.test(other)){
alert("Il campo Destinatario 2 deve essere un indirizzo Email valido o vuoto.");
return false;
}
}
other = form.DESTINATARIO_3.value;
if(other){
if(!reg_test.test(other)){
alert("Il campo Destinatario 3 deve essere un indirizzo Email valido o vuoto.");
return false;
}
}
other = form.DESTINATARIO_4.value;
if(other){
if(!reg_test.test(other)){
alert("Il campo Destinatario 4 deve essere un indirizzo Email valido o vuoto.");
return false;
}
}
other = form.DESTINATARIO_5.value;
if(other){
if(!reg_test.test(other)){
alert("Il campo Destinatario 5 deve essere un indirizzo Email valido o vuoto.");
return false;
}
}
other = form.DESTINATARIO_6.value;
if(other){
if(!reg_test.test(other)){
alert("Il campo Destinatario 6 deve essere un indirizzo Email valido o vuoto.");
return false;
}
}
return true;
}