function ver(myForm) {
var passed=true;
if(myForm.modello.value=='Non specificato'){
	passed=false;
	alert("Il modello è obbligatorio!");
	myForm.modello.focus();
	return passed;
}
if(myForm.cognome.value==''){
	passed=false;
	alert("Il cognome è obbligatorio!");
	myForm.cognome.focus();
	return passed;
}

if(myForm.nome.value==''){
	passed=false;
	alert("Il nome è obbligatorio!");
	myForm.nome.focus();
	return passed;
}

if(myForm.cap.value==''){
	passed=false;
	alert("Il cap è obbligatorio!");
	myForm.cap.focus();
	return passed;
}

      var checkOK = "0123456789";
	  var checkStr = myForm.cap.value;
	  
	  for (i = 0;  i < checkStr.length;  i++)
	  {
	    ch = checkStr.charAt(i);
	    for (j = 0;  j < checkOK.length;  j++)
	      if (ch == checkOK.charAt(j))
	        break;
	    if (j == checkOK.length) {
	      passed = false;
	      break;
	    }
	  }
	  if (passed==false) {
	    alert("Inserire solo numeri nel campo C.A.P.");
	    myForm.cap.focus();
	    return passed;
	  }

	if(myForm.mail.value!='')
	{
		if ((myForm.mail.value.indexOf("@") != -1) &&
			(myForm.mail.value.length > 7)) {
			array_mail=myForm.mail.value.split("@");
			if(array_mail.length==2 && array_mail[1].split(".").length==2){
				passed=true;
				}
			else
			{
			passed=false;
			alert("Non è una e-mail");
			myForm.mail.focus();
			return passed;
			}
		}
		else
		{
		passed=false;
		alert("Non è una e-mail");
		myForm.mail.focus();
		return passed;
		}
	}
	else
	{
	passed=false;
	alert("L'email è obbligatoria!");
	myForm.mail.focus();
	return passed;
	}
	
if(myForm.telefono.value==''){
	passed=false;
	alert("Il telefono è obbligatorio!");
	myForm.telefono.focus();
	return passed;
}

      var checkOK = "0123456789";
	  var checkStr = myForm.telefono.value;
	
	  for (i = 0;  i < checkStr.length;  i++)
	  {
	    ch = checkStr.charAt(i);
	    for (j = 0;  j < checkOK.length;  j++)
	      if (ch == checkOK.charAt(j))
	        break;
	    if (j == checkOK.length) {
	      passed = false;
	      break;
	    }
	  }
	  if (passed==false) {
	    alert("Inserire solo numeri nel campo telefono.");
	    myForm.telefono.focus();
	    return passed;
	  }


for (i=0;i<myForm.acconsento.length;i++) {
	if(myForm.acconsento[i].checked==true && myForm.acconsento[i].value=='N'){
	passed=false;
	alert("Per inviare il form bisogna dare il consenso al trattamento dei dati");
	return passed;
	}
}

return passed;	
}
