<!--

// FUNZIONI PER E-COMMERCE HOTEL.

function goLink(pagina)
   {
   document.location.href=pagina;
   }

function elimina_camera(i,id)
{

	if (confirm("Sei sicuro di voler eliminare questa riga di camere")) {
		document.form_camere.azione_camere.value="elimina";
		document.form_camere.identif.value=i;
		document.form_camere.idarticolo.value=id;
		document.form_camere.submit();
	}
}

function elimina_cliente(i,id)
{
	if (confirm("Sei sicuro di voler eliminare questa riga di partecipanti?")) {
		document.form_persone.azione_clienti.value="elimina";
		document.form_persone.identif.value=i;
		document.form_persone.idarticolo.value=id;
		document.form_persone.submit();
	}
}


if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('#commissioni {display: none;}\n')
document.write('</style>\n')
}

function check_field()
	{
		document.form_submit.giorno.value = document.arrival_date.giorno.value;
		document.form_submit.mese.value = document.arrival_date.mese.value;
		document.form_submit.anno.value = document.arrival_date.anno.value;
		document.form_submit.notti.value = document.arrival_date.notti.value;
		document.form_submit.submit();
	}
function check_field_submit_persone()
	{
		document.form_persone.giorno.value = document.arrival_date.giorno.value;
		document.form_persone.mese.value = document.arrival_date.mese.value;
		document.form_persone.anno.value = document.arrival_date.anno.value;
		document.form_persone.notti.value = document.arrival_date.notti.value;
		document.form_persone.submit();
	}
		
function check_field_submit_camere()
	{
		document.form_camere.giorno.value = document.arrival_date.giorno.value;
		document.form_camere.mese.value = document.arrival_date.mese.value;
		document.form_camere.anno.value = document.arrival_date.anno.value;
		document.form_camere.notti.value = document.arrival_date.notti.value;
		document.form_camere.submit();
	}
	

function check_c_vendita()
	{
		if (document.form_pagamento.Condizioni_di_vendita.checked == true)
			{
				if (confirm("Sei sicuro di voler proseguire con l'ordine?")) {document.form_pagamento.submit()}
				else {return false;}
			}
		else
			{
				alert("E' necessario accettare le condizioni di vendita.");
				return false;
			}
	}

	

function hide_show_commissioni()
	{
		if(document.getElementById)
		{
			var el = document.getElementById("commissioni");
			if(el.style.display != "block")	document.getElementById("commissioni").style.display = "block";
			else document.getElementById("commissioni").style.display = "none";

		}
	}
		
	
	
	
	
	
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('#tabella_partenze {display: none;}\n')
document.write('</style>\n')
}

function show_hide_tabella_partenze(){
        if(document.getElementById){
		if(document.getElementById("tabella_partenze").style.display != "block"){ 
			document.getElementById("tabella_partenze").style.display = "block"; 
		}else{ 
			document.getElementById("tabella_partenze").style.display = "none";
		}
	}

}

// FINE FUNZIONI PER E-COMMERCE HOTEL.

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Menu(links) 
{
	location.href = links[links.selectedIndex].value;
}

function apriMaxi(immagine)
{
	i1 = new Image;
	i1.src = immagine;
	html = '<html>\n<head>\n<title>Felicity Viaggi</title>\n<script language="JavaScript" type="text/javascript" src="/script.js"></script>\n</head>\n<body LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 style=padding:0px onClick="window.close()">\n<div align=center><IMG SRC="'+immagine+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></div>\n</body>\n</html>';

	var wdt = screen.width;
	var hgt = screen.height;
	var x = Math.round( (wdt / 2) - 380 );
    var y = Math.round( (hgt / 2) - 160 );

	popupImage = window.open('','_blank','toolbar=0,top=' + y + ',left=' + x + ',location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
};
  
 
  number_of_sponsors=2;
  
  var sctr=0;
  
  var halt=0;
  
  var isn=new Array();
  
  for (i=0;i<number_of_sponsors;i++){
  
  isn[i]=new Image();
  
  }
  
  isn[0].src="/banner/golf_180x150.jpg";
  
  isn[1].src="/banner/ehr_180x150.gif";
  
  
  var durl=new Array();
  
  durl[0]="/travel_golf.php";
  
  durl[1]="http://www.easyhotelsreservation.it";
  
  
  function rotateIt(){
  
  if (halt!=1){
  
  sctr++;
  
  if (sctr>number_of_sponsors-1){
  
  sctr=0;
  
  }
  
  document.sponsor.src=isn[sctr].src;
  
  setTimeout("rotateIt()",5900);
  
  }
  
  }
  
  function doIt(){
  
  halt=1;
  
  location.href=durl[sctr];
  
  }
  
  function dispIt(){
  
  parent.window.status="";
  
  }
   
   // Lo script che segue visualizza un message-box quando viene premuto il tasto DX del mouse //
/*   var clntdate = new Date();
   function click() 
   {
   if (event.button==2) 
   {
   alert('..:: Copyright '+clntdate.getFullYear()+' Felicity Viaggi & Vacanze ::..')
   }
   }
 document.onmousedown=click
 
   
 if (document.layers) 
    { 
    window.captureEvents(Event.MOUSEMOVE) 
    window.onmousemove=barfix; 
    } 
    else 
    document.onmousemove=barfix; 
 
 function barfix() 
   { 
    window.status="W W W . F E L I C I T Y V I A G G I . C O M - WELCOME" 
    } 

 */
  
  
  
  
  
  
  
  





  function autorizzo_promozionale() {
  
     // Variabili associate ai campi del modulo
     var Autorizzo_trattamento_required = document.modulo.Autorizzo_trattamento_required.value;
     var autorizzo_materiale_promozionale = document.modulo.autorizzo_materiale_promozionale.value;
     
        //Attiva anche la spunta privacy
           document.modulo.Autorizzo_trattamento_required.checked = 1;
           
  }




 
  
  
  
  
  
 //-->
