// controllo campi form preventivo
	function CheckForm(){
	if (document.preventivo.nome.value==""){
	alert("Inserimento NOME obbligatorio...");
	document.preventivo.nome.style.background="red";
	preventivo.nome.focus();
	return false;
	}
	if (document.preventivo.cognome.value==""){
	alert("Inserimento COGNOME obbligatorio...");
	document.preventivo.cognome.style.background="red";
	preventivo.cognome.focus();
	return false;
	}
	if (document.preventivo.email.value==""){
	alert("Inserimento EMAIL obbligatorio...");
	document.preventivo.email.style.background="red";
	preventivo.email.focus();
	return false;
	}
	if (document.preventivo.telefono.value==""){
	alert("Inserimento TELEFONO obbligatorio...");
	document.preventivo.telefono.style.background="red";
	preventivo.telefono.focus();
	return false;
	}
	if (document.preventivo.indirizzo.value==""){
	alert("Inserimento INDIRIZZO obbligatorio...");
	document.preventivo.indirizzo.style.background="red";
	preventivo.indirizzo.focus();
	return false;
	}
	if (document.preventivo.ncivico.value==""){
	alert("Inserimento NUMERO CIVICO obbligatorio...");
	document.preventivo.ncivico.style.background="red";
	preventivo.ncivico.focus();
	return false;
	}
	if (document.preventivo.cap.value==""){
	alert("Inserimento CAP obbligatorio...");
	document.preventivo.cap.style.background="red";
	preventivo.cap.focus();
	return false;
	}
	if (document.preventivo.localita.value==""){
	alert("Inserimento LOCALITA' obbligatorio...");
	document.preventivo.localita.style.background="red";
	preventivo.localita.focus();
	return false;
	}
    if (document.preventivo.provincia.value==""){
	alert("Inserimento PPROVINCIA obbligatorio...");
	document.preventivo.provincia.style.background="red";
	preventivo.provincia.focus();
	return false;
	}
	if (document.preventivo.codicefiscale.value==""){
	alert("Inserimento CODICE FISCALE obbligatorio...");
	document.preventivo.codicefiscale.style.background="red";
	preventivo.codicefiscale.focus();
	return false;
	}
	if (document.preventivo.destinazione.value==""){
	alert("Inserimento DESTINAZIONE obbligatoria...");
	document.preventivo.destinazione.style.background="red";
	preventivo.destinazione.focus();
	return false;
	}
	if (document.preventivo.tipologia.value=="scegli tipologia"){
	alert("Inserimento TIPOLOGIA obbligatoria...");
	document.preventivo.tipologia.style.background="red";
	preventivo.tipologia.focus();
	return false;
	}
	if (document.preventivo.adulti.value=="0"){
	alert("Inserimento NUMERO ADULTI obbligatorio...");
	document.preventivo.adulti.style.background="red";
	preventivo.adulti.select();
	return false;
	}
	if (document.preventivo.date2.value==""){
	alert("Inserimento DATA DI PARTENZA obbligatoria...");
	document.preventivo.date2.style.background="red";
	preventivo.date2.focus();
	return false;
	}
	if (document.preventivo.date3.value==""){
	alert("Inserimento DATA DI RITORNO obbligatoria...");
	document.preventivo.date3.style.background="red";
	preventivo.date3.focus();
	return false;
	}
	if (document.preventivo.partenzada.value==""){
	alert("Inserimento LUOGO DI PARTENZA obbligatoria...");
	document.preventivo.partenzada.style.background="red";
	preventivo.partenzada.focus();
	return false;
	}
	if (document.preventivo.trasporti.value=="scegli trasporto"){
	alert("Inserimento TRASPORTO obbligatoria...");
	document.preventivo.trasporti.style.background="red";
	preventivo.trasporti.focus();
	return false;
	}
	if (document.preventivo.struttura.value=="scegli struttura"){
	alert("Inserimento STRUTTURA obbligatoria...");
	document.preventivo.struttura.style.background="red";
	preventivo.struttura.focus();
	return false;
	}
	if (document.preventivo.sistemazionehotel.value=="scegli sistemazione"){
	alert("Inserimento SISTEMAZIONE HOTEL obbligatoria...");
	document.preventivo.sistemazionehotel.style.background="red";
	preventivo.sistemazionehotel.focus();
	return false;
	}
	if (document.preventivo.trattamento.value=="scegli trattamento"){
	alert("Inserimento TRATTAMENTO obbligatoria...");
	document.preventivo.trattamento.style.background="red";
	preventivo.trattamento.focus();
	return false;
	}
	if (document.preventivo.accetta.checked==false){
       alert("Devi autorizzare il trattamento dei tuoi dati personali...");
	   document.preventivo.accetta.style.background="red";
	   preventivo.accetta.focus();
	    return false;	    
	}
	return true;
	}
