/web/htdocs/www.sensicontemporanei.it/home/function validazione(){
formTable='zzrichieste';
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){
// 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
'
}
else {msgErr2="Prego fornire conseso per il trattamento dei dati
"}
if(msgErr2!=""){ erroreMessage(msgErr+msgErr2)}
// se vuoto faccio il subnmit
if (msgErr2==""){
document.modulo.submit();
return true
}
else {return false}
}