function validazione(){ formTable='richieste'; var msgErr="Prego Compilare i seguenti campi:
" var msgErr2=""; curform=document.forms["modulorichiesta"]; // verifico che il ceck della privacy sia cliccato if(document.modulorichiesta.elements["privacy"].checked==true){ // Company //isVuoto(formTable+'.Company') //if(fill=='')msgErr2+='Azienda
' //Nome isVuoto(formTable+'.Firstname') if(fill=='')msgErr2+='Nome
' // Cognome isVuoto(formTable+'.Surname') if(fill=='')msgErr2+='Cognome
' // 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('modulorichiesta','formrichieste','formBox') //document.modulo.submit(); return true } else {return false} }