	function CampiObbligatoriContatti(){
		Form = document.forms["formcontatti"];
		var Nome =Form.nome.value;
		var Cognome =Form.cognome.value;
		var Email=Form.email.value;
		var Phone=Form.phone.value;
		var Message=Form.message.value;
		
		if ((Nome == "") || (Nome == "undefined")) {
   			alert("Il campo Nome e' obbligatorio.");
   			return false;
		} 
		else if ((Cognome == "") || (Cognome == "undefined")) {
   			alert("Il campo Cognome e' obbligatorio.");
   			return false;
		}
		else if ((Email == "") || (Email == "undefined")) {
   			alert("Il campo Email e' obbligatorio.");
   			return false;
		} 
		else if ((Phone == "") || (Phone == "undefined")) {
   			alert("Il campo Telefono e' obbligatorio.");
   			return false;
		} 

		else {
			Form.submit();
		}
	}

	function CampiObbligatoriCollabora(){
		Form = document.forms["formcontatti"];
		var Nome =Form.nome.value;
		var Cognome =Form.cognome.value;
		var Email=Form.email.value;
		var Phone=Form.posizione.value;
		var Message=Form.message.value;
		
		if ((Nome == "") || (Nome == "undefined")) {
   			alert("Il campo Nome e' obbligatorio.");
   			return false;
		} 
		else if ((Cognome == "") || (Cognome == "undefined")) {
   			alert("Il campo Cognome e' obbligatorio.");
   			return false;
		}
		else if ((Email == "") || (Email == "undefined")) {
   			alert("Il campo Email e' obbligatorio.");
   			return false;
		} 
		else if ((Phone == "") || (Phone == "undefined")) {
   			alert("Il campo Posizione e' obbligatorio.");
   			return false;
		} 

		else {
	 		Form.action = "collabora.php";
			Form.submit();
		}
	}
	
	function CampiObbligatoriSuggerimenti(){
		Form = document.forms["formcontatti"];
		var Nome =Form.nome.value;
		var Cognome =Form.cognome.value;
		var Email=Form.email.value;
		var Message=Form.message.value;
		
		if ((Nome == "") || (Nome == "undefined")) {
   			alert("Il campo Nome e' obbligatorio.");
   			return false;
		} 
		else if ((Cognome == "") || (Cognome == "undefined")) {
   			alert("Il campo Cognome e' obbligatorio.");
   			return false;
		}
		else if ((Email == "") || (Email == "undefined")) {
   			alert("Il campo Email e' obbligatorio.");
   			return false;
		} 

		else {
	 		Form.action = "suggerimenti.php";
			Form.submit();
		}
	}

function CampiObbligatoriPrenota(){
		Form = document.forms["prenota"];
		var Nome =Form.nome.value;
		var Cognome =Form.cognome.value;
		var Email=Form.email.value;
		var Cellulare=Form.cellulare.value;
		var Telefono=Form.telefono.value;
		var Motivo=Form.motivo.value;
		var Dal=Form.dal.value;
		var Al=Form.al.value;
		var Message=Form.messaggio.value;
		
		if ((Nome == "") || (Nome == "undefined")) {
   			alert("Il campo Nome e' obbligatorio.");
   			return false;
		} 
		else if ((Cognome == "") || (Cognome == "undefined")) {
   			alert("Il campo Cognome e' obbligatorio.");
   			return false;
		}
		else if ((Email == "") || (Email == "undefined")) {
   			alert("Il campo Email e' obbligatorio.");
   			return false;
		} 
		else if ((Cellulare == "") || (Cellulare == "undefined")) {
   			alert("Il campo Cellulare e' obbligatorio.");
   			return false;
		} 
		else if ((Telefono == "") || (Telefono == "undefined")) {
   			alert("Il campo Telefono e' obbligatorio.");
   			return false;
		}
		else if ((Motivo == "") || (Motivo == "undefined")) {
   			alert("Il campo Motivo e' obbligatorio.");
   			return false;
		}
		else if ((Dal == "") || (Dal == "undefined")) {
   			alert("Il campo Dal e' obbligatorio.");
   			return false;
		}
		else if ((Al == "") || (Al == "undefined")) {
   			alert("Il campo Al e' obbligatorio.");
   			return false;
		}
		else {
	 		Form.action = "prenota.php";
			Form.submit();
		}
	}
	
		function CampiObbligatoriNews1(){
		Form = document.forms["formnews"];
		var Nome =Form.nome.value;
		var Cognome =Form.cognome.value;
		var Email=Form.email.value;
		
		if ((Nome == "") || (Nome == "undefined")) {
   			alert("Il campo Nome e' obbligatorio.");
   			return false;
		} 
		else if ((Cognome == "") || (Cognome == "undefined")) {
   			alert("Il campo Cognome e' obbligatorio.");
   			return false;
		}
		else if ((Email == "") || (Email == "undefined")) {
   			alert("Il campo Email e' obbligatorio.");
   			return false;
		} 

		else {
	 		Form.action = "newsletter.php";
			Form.submit();
		}
	}
	
	function AlmenoTitolo(){
		Form = document.forms["form"];
		var Titolo =Form.field4.value;	
		if ((Titolo == "") || (Titolo == "undefined")) {
   			alert("Devi inserire almeno il Titolo per completare l'inserimento.");
   			return false;
		} 
		else {
			Form.submit();
		}
	}
