// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



  function Modulo2() {

        if ((document.modulo2.email.value == "")) {
           alert("Il campo Email è obbligatorio");
           document.modulo2.email.focus();
           return false;
        }
else if ((document.modulo2.privacy.value == "")) {
           alert("Il campo Privacy è obbligatorio");
           document.modulo2.privacy.focus();
           return false;
        }
         
        else {
           document.modulo2.action = "invia-newsletter.php";
           document.modulo2.submit();
        }
  }
 function Modulo4() {

        if ((document.modulo4.email.value == "")) {
           alert("The field Email is obligatory");
           document.modulo4.email.focus();
           return false;
        }
else if ((document.modulo4.privacy.value == "")) {
           alert("The field Privacy is obligatory");
           document.modulo4.privacy.focus();
           return false;
        }
         
        else {
           document.modulo4.action = "submit-newsletter.php";
           document.modulo4.submit();
        }
  }

function Modulo() {

        if ((document.modulo.nome.value == "")) {
           alert("Inserisci il campo Nome");
           document.modulo.nome.focus();
           return false;
        }
         else if ((document.modulo.cognome.value == "")) {
           alert("Inserisci il Cognome");
           document.modulo.cognome.focus();
           return false;
     	 }

          else if ((document.modulo.telefono.value == "")) {
           alert("Inserisci il campo Telefono");
           document.modulo.telefono.focus();
           return false;
     	 }
		 else if ((document.modulo.email.value == "")) {
          alert("Inserisci il campo Email");
          document.modulo.email.focus();
          return false;
        }
		else if ((document.modulo.periodo_dal.value == "")) {
          alert("Inserisci il campo Periodo dal");
          document.modulo.periodo_dal.focus();
          return false;
        }
		else if ((document.modulo.periodo_al.value == "")) {
          alert("Inserisci il campo Periodo al");
          document.modulo.periodo_al.focus();
          return false;
        }
		else if ((document.modulo.num_adulti.value == "")) {
          alert("Inserisci il campo Numero adulti");
          document.modulo.num_adulti.focus();
          return false;
        }
else if ((document.modulo.camera_appartamento.value == "")) {
          alert("Inserisci il campo Tipologia di camera o appartamento");
          document.modulo.camera_appartamento.focus();
          return false;
        }
		
		else if ((document.modulo.privacy.value == "")) {
           alert("Autorizza il trattamento dati");
           document.modulo.privacy.focus();
           return false;
        }
        else {
           document.modulo.action = "invia-prenotazioni.php";
           document.modulo.submit();
        }
  }

function Modulo3() {

        if ((document.modulo3.nome.value == "")) {
           alert("The field Name is obligatory");
           document.modulo3.nome.focus();
           return false;
        }
         else if ((document.modulo3.cognome.value == "")) {
           alert("The field Surname is obligatory");
           document.modulo3.cognome.focus();
           return false;
     	 }

          else if ((document.modulo3.telefono.value == "")) {
           alert("The field Phone is obligatory");
           document.modulo3.telefono.focus();
           return false;
     	 }
		 else if ((document.modulo3.email.value == "")) {
          alert("The field Email is obligatory");
          document.modulo3.email.focus();
          return false;
        }
		else if ((document.modulo3.periodo_dal.value == "")) {
          alert("The field Arrival date is obligatory");
          document.modulo3.periodo_dal.focus();
          return false;
        }
		else if ((document.modulo3.periodo_al.value == "")) {
          alert("The field Departure date is obligatory");
          document.modulo3.periodo_al.focus();
          return false;
        }
		else if ((document.modulo3.num_adulti.value == "")) {
          alert("The field N. Adults is obligatory");
          document.modulo3.num_adulti.focus();
          return false;
        }
else if ((document.modulo3.camera_appartamento.value == "")) {
          alert("The field Typology of room or cottage is obligatory");
          document.modulo3.camera_appartamento.focus();
          return false;
        }
		
		else if ((document.modulo3.privacy.value == "")) {
           alert("The field Privacy is obligatory");
           document.modulo3.privacy.focus();
           return false;
        }
        else {
           document.modulo3.action = "submit-booking.php";
           document.modulo3.submit();
        }
  }

function Modulo5() {

        if ((document.modulo5.nome.value == "")) {
           alert("The field Name is obligatory");
           document.modulo5.nome.focus();
           return false;
        }
         else if ((document.modulo5.cognome.value == "")) {
           alert("The field Surname is obligatory");
           document.modulo5.cognome.focus();
           return false;
     	 }

          else if ((document.modulo5.telefono.value == "")) {
           alert("The field Phone is obligatory");
           document.modulo5.telefono.focus();
           return false;
     	 }
		 else if ((document.modulo5.email.value == "")) {
          alert("The field Email is obligatory");
          document.modulo5.email.focus();
          return false;
        }
		else if ((document.modulo5.periodo_dal.value == "")) {
          alert("The field Arrival date is obligatory");
          document.modulo5.periodo_dal.focus();
          return false;
        }
		else if ((document.modulo5.periodo_al.value == "")) {
          alert("The field Departure date is obligatory");
          document.modulo5.periodo_al.focus();
          return false;
        }
		else if ((document.modulo5.num_adulti.value == "")) {
          alert("The field N. Adults is obligatory");
          document.modulo5.num_adulti.focus();
          return false;
        }
else if ((document.modulo5.camera_appartamento.value == "")) {
          alert("The field Typology of room or cottage is obligatory");
          document.modulo5.camera_appartamento.focus();
          return false;
        }
		
		else if ((document.modulo5.privacy.value == "")) {
           alert("The field Privacy is obligatory");
           document.modulo5.privacy.focus();
           return false;
        }
        else {
           document.modulo5.action = "submit-de.php";
           document.modulo5.submit();
        }
  }

function Modulo6() {

        if ((document.modulo6.nome.value == "")) {
           alert("The field Name is obligatory");
           document.modulo6.nome.focus();
           return false;
        }
         else if ((document.modulo6.cognome.value == "")) {
           alert("The field Surname is obligatory");
           document.modulo6.cognome.focus();
           return false;
     	 }

          else if ((document.modulo6.telefono.value == "")) {
           alert("The field Phone is obligatory");
           document.modulo6.telefono.focus();
           return false;
     	 }
		 else if ((document.modulo6.email.value == "")) {
          alert("The field Email is obligatory");
          document.modulo6.email.focus();
          return false;
        }
		else if ((document.modulo6.periodo_dal.value == "")) {
          alert("The field Arrival date is obligatory");
          document.modulo6.periodo_dal.focus();
          return false;
        }
		else if ((document.modulo6.periodo_al.value == "")) {
          alert("The field Departure date is obligatory");
          document.modulo6.periodo_al.focus();
          return false;
        }
		else if ((document.modulo6.num_adulti.value == "")) {
          alert("The field N. Adults is obligatory");
          document.modulo6.num_adulti.focus();
          return false;
        }
else if ((document.modulo6.camera_appartamento.value == "")) {
          alert("The field Typology of room or cottage is obligatory");
          document.modulo6.camera_appartamento.focus();
          return false;
        }
		
		else if ((document.modulo6.privacy.value == "")) {
           alert("The field Privacy is obligatory");
           document.modulo65.privacy.focus();
           return false;
        }
        else {
           document.modulo6.action = "submit-nl.php";
           document.modulo6.submit();
        }
  }

function addPage() {
if ((navigator.appName=="Microsoft Internet Explorer")&&
(parseInt(navigator.appVersion)>=4)) {
window.external.addFavorite
(document.location.href, document.title);
} else {
var msg = "Info: Il tuo browser non supporta lo script '" +
document.location.href + "' ai preferiti!";
if (navigator.appName=="Netscape") msg += " (CTRL-D)";
alert(msg);
}
}