function validazione(theForm){

if (theForm.nome.value == "")
  {
    alert("enter a value for the First Name");
    theForm.nome.focus();
    return (false);
  }
if (theForm.cognome.value == "")
  {
   
    alert("enter a value for the Last Name");
    
    theForm.cognome.focus();
    return (false);
  }

 if (theForm.PIVA.value == "")
  {
   
    alert("enter a value for the Vat Number");
    
    theForm.PIVA.focus();
    return (false);
  }
   if (theForm.citta.value == "")
  {
   
    alert("enter a value for the City");
    
    theForm.citta.focus();
    return (false);
  }
  if (theForm.cap.value == "")
  {
   
    alert("enter a value for the Post Code");
    
    theForm.cap.focus();
    return (false);
  }
    if (theForm.stato.value == "")
  {
   
    alert("enter a value for the State");
    
    theForm.stato.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("enter a value for the Email Address");
    theForm.email.focus();
    return (false);
  }
  if (!(validate(theForm.email.value)))
  {
    theForm.email.focus();
    return (false);
  }
    
if (theForm.tel.value == "")
  {
  
    alert("enter a value for the Telephone Number");
   
    theForm.tel.focus();
    return (false);
  }
if (theForm.fax.value == "")
  {
  
    alert("enter a value for the Fax Number");
   
    theForm.fax.focus();
    return (false);
  }
if (theForm.longuao.value == "")
  {
  
    alert("enter a value for the Source Language");
   
    theForm.longuao.focus();
    return (false);
  }

if (theForm.longuad.value == "")
  {
  
    alert("enter a value for the Target Language");
   
    theForm.longuad.focus();
    return (false);
  }
  
if (theForm.tipologia.value == "")
  {
  
    alert("enter a value for the Type of Text");
   
    theForm.tipologia.focus();
    return (false);
  }
if (theForm.descrizione.value == "")
  {
  
    alert("enter a value for the Description");
   
    theForm.descrizione.focus();
    return (false);
  }
if (theForm.lunghezza.value == "")
  {
  
    alert("enter a value for the Length of the Text");
   
    theForm.lunghezza.focus();
    return (false);
  }
if (theForm.tempistiche.value == "")
  {
  
    alert("enter a value for the Timing");
   
    theForm.tempistiche.focus();
    return (false);
  }
if (theForm.consegna.value == "")
  {
  
    alert("enter a value for the Method of Consignment");
   
    theForm.consegna.focus();
    return (false);
  }

}


function validate(value) 
  {
  pattern=/[^@_\.\w\d]|@@|\.\.|__|^@|^\.|^_|@$|\.$|_$|@\.|\.@|@_|_@|\._|_\.|(@)[^@]*\1/g; 

  if((((value.match(/@/)) && (value.match(/\./))) == null) || (value.match(pattern) != null))
   {alert("The email address isn\'t correct")
   return false;
   }
  else 
   {return true;}
}