function check_form(theForm) {
	
 if(theForm.nome.value == "") {
   alert("compilare il campo Nome");
   theForm.nome.focus();
   return (false);
 }
 else if(theForm.email.value == "") {
   alert("compilare il campo E-mail");
   theForm.email.focus();
   return (false);
 }
 else if(theForm.email.value.length < 7) {
   alert("l'indirizzo e-mail deve contenere almeno 6 caratteri");
   theForm.email.focus();
   return (false);
 }
 else if(theForm.email.value.indexOf("@") == -1) {
   alert("l'indirizzo e-mail non contiene il carattere @");
   theForm.email.focus();
   return (false);
 }
 else if(theForm.email.value.indexOf(".") == -1) {
   alert("l'indirizzo e-mail non contiene estensioni");
   theForm.email.focus();
   return (false);
 }
 else if(theForm.azienda.value == "") {
   alert("Compilare il campo Azienda");
   theForm.azienda.focus();
   return (false);
 }
 else if(theForm.telefono.value == "") {
   alert("Compilare il campo Telefono");
   theForm.telefono.focus();
   return (false);
 }
 else if(isNaN(document.getElementById('telefono').value)) {
   alert("il campo Telefono richiede SOLO numeri");
   theForm.telefono.focus();
   return (false);
 }
 else if(theForm.richiesta.value == "") {
   alert("Compilare il campo Richiesta");
   theForm.richiesta.focus();
   return (false);
 }
 else return (true);
}
