function validazione(){
formTable='richieste';
var msgErr="Prego Compilare i seguenti campi:
"
var msgErr2="";
curform=document.forms["modulo"];
// verifico che il ceck della privacy sia cliccato
if(document.modulo.elements["privacy"].checked==true){
//Nome
isVuoto(formTable+'.Firstname')
if(fill=='')msgErr2+='Nome
'
// Cognome
//isVuoto(formTable+'.Surname')
//if(fill=='')msgErr2+='Cognome
'
// Company
isVuoto(formTable+'.Company')
if(fill=='')msgErr2+='Azienda
'
// Telefono
//isVuoto(formTable+'.Phone')
//if(fill=='')msgErr2+='Telefono
'
//Email
checkEmail(formTable+'.Email')
if(fill=='')msgErr2+='Email
'
//Note
isVuoto(formTable+'.Note')
if(fill=='')msgErr2+='Note
'
}
else {msgErr2="Prego fornire conseso per il trattamento dei dati\n"}
if(msgErr2!=""){erroreMessage(msgErr+msgErr2)}
// se vuoto faccio il subnmit
if (msgErr2==""){
//ma_ajax_updater('modulo','formrichieste','contenutoForm')
ma_ajax_helper('modulo','formrichieste','formBox')
//document.modulo.submit();
return true
}
else {return false}
}