/* italiano */
function form_classici_it(theForm) {
	
if (theForm.cognome.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Cognome";
    theForm.cognome.focus();
    return (false);
  }

if (theForm.nome.value == "") {
   document.getElementById('errore').innerHTML="Compilare il campo Nome";
    theForm.nome.focus();
    return (false);
  }

if (theForm.nome_az.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Nome azienda";
    theForm.nome_az.focus();
    return (false);
  }
    
if (theForm.indirizzo.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Indirizzo";
    theForm.indirizzo.focus();
    return (false);
  }
  
if (theForm.citta.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Cittā";
    theForm.citta.focus();
    return (false);
  }

if (theForm.cap.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Cap";
    theForm.cap.focus();
    return (false);
  }
  
if (document.getElementById('cap').value.length < 5 ) {
    document.getElementById('errore').innerHTML="Il campo Cap č composto di 5 cifre";
    theForm.cap.focus();
    return (false);
  }

if (isNaN(document.getElementById('cap').value)) {
    document.getElementById('errore').innerHTML="il campo CAP richiede SOLO numeri";
    theForm.cap.focus();
    return (false);
  } 
/*
if (theForm.tel.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Telefono";
    theForm.tel.focus();
    return (false);
  }
  
if (isNaN(document.getElementById('tel').value)) {
    document.getElementById('errore').innerHTML="il campo Telefonorichiede SOLO numeri";
    theForm.tel.focus();
    return (false);
  }*/
  
if (theForm.email.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo E-mail";
    theForm.email.focus();
    return (false);
  }
  
if (theForm.email.value.length < 7) {
    document.getElementById('errore').innerHTML="L'indirizzo e-mail deve contenere almeno 6 caratteri ";
    theForm.email.focus();
    return (false);
  }
 
if (theForm.email.value.indexOf("@") == -1) {
    document.getElementById('errore').innerHTML="l'indirizzo e-mail non contiene il carattere @";
    theForm.email.focus();
    return (false);
  }
 
if (theForm.email.value.indexOf(".") == -1) {
    document.getElementById('errore').innerHTML="l'indirizzo e-mail non contiene estensioni";
    theForm.email.focus();
    return (false);
  }
  
if (theForm.note.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo note";
    theForm.note.focus();
    return (false);
  }  


    return (true);
}








