function submitit(theform) {
	if (AllTrim(theform.name.value) == "") {       
      	alert("Si prega di inserire il nome")            
      	theform.name.value= ""
		theform.name.focus()
		return false	
	    }   
	if (AllTrim(theform.lastname.value) == "") {       
      	alert("Si prega di inserire il cognome")            
      	theform.lastname.value= ""
		theform.lastname.focus()
		return false	
	    }
	if (AllTrim(theform.comune.value) == "") {       
      	alert("Si prega di inserire il comune")            
      	theform.comune.value= ""
		theform.comune.focus()
		return false	
	    }
	if (AllTrim(theform.email_address.value) == "") {       
      	alert("Si prega di inserire l'indirizzo email")            
      	theform.email_address.value= ""
		theform.email_address.focus()
		return false	
	}else{
	    if (!indirizzoEmailValido(theform.email_address.value)){
           alert("Si prega di inserire un indirizzo email valido")         
      	   theform.email_address.value= ""
		   theform.email_address.focus()
		   return false
		   }	
		}
	if (theform.letto.checked != true) {
      	alert("spunta il check leggi l'informativa sulla privacy")            
		theform.letto.focus()
		return false	
	    }
	if (theform.accetto.checked != true) {       
      	alert("spunta il check acconsento al trattamento dei dati")            
		theform.accetto.focus()
		return false	
	    }
}