function verifica(){
   var varAppoEmail;
   var varAppoEmailB;

 	if(document.consulenze.oggetto.value == "0"){
      alert("Selezionare un oggetto per la domanda. (Select the object of your request)");
      document.consulenze.oggetto.focus();
      return (0);
    }
	
	if(document.consulenze.domanda.value.length < 1){
      alert("Inserire il testo della domanda. (Insert the text of the question)");
      document.consulenze.domanda.focus();
      return (0);
    }
	
 	if(document.consulenze.nome.value.length < 1){
      alert("Compilare il campo Nome. (Fill in the Name field)");
      document.consulenze.nome.focus();
      return (0);
    }
    
    if(document.consulenze.cognome.value.length < 1){
      alert("Compilare il campo Cognome. (Fill in the Surname field)");
      document.consulenze.cognome.focus();
      return (0);
    }
	
	if(document.consulenze.comune.value.length < 1){
      alert("Compilare il campo Comune. (Fill in the Town field)");
      document.consulenze.comune.focus();
      return (0);
    }
	
	if(document.consulenze.provincia.value.length < 1){
      alert("Compilare il campo Provincia. (Fill in the Province field)");
      document.consulenze.provincia.focus();
      return (0);
    }
	
	varAppoEmail=document.consulenze.Email.value.split("@");
    varAppoEmailB=document.consulenze.Email.value.split(".");
    if(varAppoEmail.length <= 1 || varAppoEmailB.length <= 1){
        alert("Compilare il campo Email nel formato \"nome@dominio.est\".");
        document.consulenze.Email.focus();
        return (0);
    }
	
	if(document.consulenze.privacy.checked != true){
      alert("Selezionare il campo Consenso.  (I authorize the treatment of my personal data)");
      document.consulenze.privacy.focus();
      return (0);
    }
	
    document.consulenze.action="consulenze_registra.asp?L=1"
    document.consulenze.submit();
    return (0);
}

function annulla(){
    document.consulenze.action="../index.asp"
    document.consulenze.submit();
    return (0);
}