
function checkrequired_commenti(which){
// Variabili associate ai campi del modulo

var nome = document.frm_commenti.nome_commenti.value; 
var testo = document.frm_commenti.testo_commenti.value; 
var email = document.frm_commenti.email_commenti.value; 
var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/; 




if ((nome == "") || (nome == "undefined")) {
alert("Indicare il campo Nome.");
document.frm_commenti.nome_commenti.focus();
return false;
}



else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
alert("Indicare il campo Email.");
document.frm_commenti.email_commenti.select();
return false;
}

else if ((testo == "") || (testo == "undefined")) {
alert("Indicare il campo Commento.");
document.frm_commenti.testo_commenti.focus();
return false;
}
	

}




//-->









		
		
