function validate_form(theForm) {
	
/*if (theForm.nome.value == "") {
   document.getElementById('errore').innerHTML="Compilare il campo Nome";
    theForm.nome.focus();
	document.getElementById('nome').style.backgroundColor='#ffff4e';
    return (false);
  }

if (theForm.cognome.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo Cognome";
    theForm.cognome.focus();
	document.getElementById('cognome').style.backgroundColor='#ffff4e';
    return (false);
  }

if (theForm.email.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo E-mail";
    theForm.email.focus();
	document.getElementById('email').style.backgroundColor='#ffff4e';
    return (false);
  }
  
if (theForm.email.value.length < 7) {
    document.getElementById('errore').innerHTML="L'indirizzo e-mail deve contenere almeno 6 caratteri ";
    theForm.email.focus();
	document.getElementById('email').style.backgroundColor='#ffff4e';
    return (false);
  }
 
if (theForm.email.value.indexOf("@") == -1) {
    document.getElementById('errore').innerHTML="l'indirizzo e-mail non contiene il carattere @";
    theForm.email.focus();
	document.getElementById('email').style.backgroundColor='#ffff4e';
    return (false);
  }
 
if (theForm.email.value.indexOf(".") == -1) {
    document.getElementById('errore').innerHTML="l'indirizzo e-mail non contiene estensioni";
    theForm.email.focus();
	document.getElementById('email').style.backgroundColor='#ffff4e';
    return (false);
  }*/

 if (theForm.euro.value == "") {
    document.getElementById('errore').innerHTML="Compilare il campo importo";
    theForm.euro.focus();
	document.getElementById('euro').style.backgroundColor='#ffff4e';
    return (false);
  }
  
 if (isNaN(theForm.euro.value)) {
    document.getElementById('errore').innerHTML="Il campo importo dev'essere un numero senza virgole o punti";
    theForm.euro.focus();
	document.getElementById('euro').style.backgroundColor='#ffff4e';
    return (false);
  }
 
 if (theForm.code.value == "") {
    document.getElementById('errore').innerHTML="Compilare il controllo numerico";
    theForm.code.focus();
	document.getElementById('code').style.backgroundColor='#ffff4e';
    return (false);
  }


    return (true);
}
