function Controlla(){
  
 // var dimen=document.f.prodotto.length
  //var j=0;
  
/*
  for(i=0;i<dimen;i++){
   if(document.f.prodotto[i].checked) j=j+1;
  }
  
  if((j==0) && (document.f.altro.checked==false && document.f.other.value=="")){
   alert("Seleziona una tipologia di prodotti!!!");
   return false;
  }
  
  if((j==0) && (document.f.altro.checked==true && document.f.other.value=="")){
   alert("Seleziona una tipologia di prodotti!!!");
   return false
  }
  
*/
  if(document.f.documentazione.checked==false && document.f.offerta.checked==false && document.f.demo.checked==false && document.f.assistenza.checked==false){
   alert("Selezionare la tipologia di spedizione/organizzazione!!!");
   document.f.documentazione.focus();
   return false;
  }
  
  if(document.f.nome.value==""){
   alert("Il campo NOME è obbligatorio");
   document.f.nome.focus();
   return false;
  }
  
  if(document.f.professione.value==""){
   alert("Il campo ATTIVITA\' PROFESSIONALE è obbligatorio");
   document.f.professione.focus();
   return false;
  }
  
  if(document.f.societa.value==""){
   alert("Il campo SOCIETA\' è obbligatorio");
   document.f.societa.focus();
   return false;
  }
  
  if(document.f.telefono.value==""){
   alert("Il campo TELEFONO è obbligatorio");
   document.f.telefono.focus();
   return false;
  }
  
  if(CheckNum(document.f.telefono.value)==false){
   alert(" Attenzione!!! Formato TELEFONO errato ");
   document.f.telefono.focus()
   return false;
  }
  
  if(document.f.mail.value==""){
   alert("L\'indirizzo mail è un campo obbligatorio!!!");
   document.f.mail.focus()
   return false
  }
  
  if(document.f.mail.value.search("@")==-1){
   alert("L\'indirizzo mail non è corretto!!!");
   document.f.mail.focus()
   return false
  }
  
  
  alert(" ATTENDERE: L'operazione di INVIO RICHIESTA e` in corso ");
  document.f.submit();
    
  function CheckNum(num){
   string = new String(num);
   lungh_string = string.length;
   for(i=0;i<lungh_string;i++){
    if(isNaN(parseInt(string.charAt(i)))){
    return false;
    }
   }
   return true;
  }
 
 }
