function controllo(){
with(document.modulo) {
var email = mail.value;
if((nome.value=="")||(nome.value=="Nome e Cognome")){
alert("Errore: compilare il campo NOME e COGNOME");
nome.focus();
return false;
}
var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
   alert("Inserire un indirizzo email corretto.");
   mail.focus();
   return false;
}
if(messaggio.value=="") {
alert("Errore: compilare il campo Messaggio");
messaggio.focus();
return false;
}
}
alert("Messaggio inviato!");
return true;
}
