
  function cambiaclasse(div,classe,pagina) {
        document.getElementById(id).className=classe;
    }
    
    
  function vediprezzo(variabile) {

        
        
        var z = document.getElementById('tornaprezzo');
        z.innerHTML = "<li class=bianco><a href=javascript:void(0) onclick=tornaprezzi("+variabile+")>Torna indietro</a></div>";
        
        Richiesta (variabile,'destinazione_prezzi.asp','destinazione')

    }   
    
    
      function tornaprezzi(variabile) {

        
        
        var z = document.getElementById('tornaprezzo');
        z.innerHTML = "&nbsp;";
        
        Richiesta (variabile,'tariffe_ajax.asp','destinazione')

    }  

 
   
  function descrizione(variabile) {
  
        document.getElementById('descrizione').className='sposi';
        document.getElementById('listino').className='bianco';
        document.getElementById('offerta').className='bianco';
        document.getElementById('quotazione').className='bianco';
        
        
        //var z = document.getElementById('descrizione');
        //z.innerHTML = "<a href=javascript:void(0) onclick=tornaprezzi("+variabile+")>Torna</a>";
        
        Richiesta (variabile,'destinazione_ajax.asp','destinazione')

    }

 
    
  function listino(variabile) {
  
        document.getElementById('descrizione').className='bianco';
        document.getElementById('listino').className='sposi';
        document.getElementById('offerta').className='bianco';
        document.getElementById('quotazione').className='bianco';
        
       // var z = document.getElementById('listino');
        //z.innerHTML = "<a href=javascript:void(0) onclick=tornaprezzi("+variabile+")>Torna</a>";
        
        Richiesta (variabile,'destinazione_prezzi.asp','destinazione')

    }
    
    
   function offerte(variabile) {
  
        document.getElementById('descrizione').className='bianco';
        document.getElementById('listino').className='bianco';
        document.getElementById('offerta').className='sposi';
        document.getElementById('quotazione').className='bianco';
        
       // var z = document.getElementById('offerta');
        //z.innerHTML = "<a href=javascript:void(0) onclick=tornaofferte("+variabile+")>Torna</a>";
        
        Richiesta (variabile,'destinazione_offerte.asp','destinazione')

    }   
    
   
    
    
       function quotazione(variabile) {
  
       	document.getElementById('descrizione').className='bianco';
        document.getElementById('listino').className='bianco';
        document.getElementById('offerta').className='bianco';
        document.getElementById('quotazione').className='sposi';
        //var z = document.getElementById('quotazione');
        //z.innerHTML = "<a href=javascript:void(0) onclick=tornaquotazione('"+variabile+"')>Torna</a>";
        
        Richiesta (variabile,'destinazione_richiedi.asp','destinazione')

    }   
    

        
    
function afficheVignette(cheminVignette,cheminMaxi)
	{
	document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\')"><IMG SRC="'+cheminVignette+'" BORDER=0 ></A>');
	}
	function afficheMaxi(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML>\n<HEAD><title>Skorpion Travel</title>\n</HEAD>\n<BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>\n<CENTER><IMG SRC="'+chemin+'" class=fotosmall BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER>\n</BODY>\n</HTML>';
	popupImage = window.open('','_blank','width=200,height=200,toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	}
            
            
            

function form_newsletter(theForm) {




  
  
  		if ( theForm.nome.value == "")
  {
    alert("Inserire il nome");
    theForm.nome.focus();
    return (false);
  }
  
  
    		if ( theForm.cognome.value == "")
  {
    alert("Inserire il cognome");
    theForm.cognome.focus();
    return (false);
  }
 
     		if ( theForm.email.value == "")
  {
    alert("Inserire l'indirizzo e-mail");
    theForm.email.focus();
    return (false);
  }
 
 
 
      return (true);

	
}









function sendmodulo(theForm) {

//alert (theForm)


  		if ( theForm.idperiodo.value == "0")
  {
    alert("Indicare il periodo");
    theForm.idperiodo.focus();
    return (false);
  }
  
  
    
  		if ( theForm.idtariffa.value == "0")
  {
    alert("Scegliere la sistemazione");
    theForm.idtariffa.focus();
    return (false);
  }
  
  
    		if ( theForm.adulti.value == "")
  {
    alert("indicare il numero degli adulti");
    theForm.adulti.focus();
    return (false);
  }
  
   
  	if ( theForm.data_partenza.value == "")
 {
    alert("indicare la data di partenza");
    theForm.data_partenza.focus();
    return (false);
  }
  
  
  
     		if ( theForm.durata.value == "")
  {
    alert("indicare la durata della vacanza");
    theForm.durata.focus();
    return (false);
 }
  
  
  
  
   //       		if ( theForm.bambini.value == "")
  //{
    //alert("indicare il numero dei bambini");
    //theForm.bambini.focus();
    //return (false);
 // }
  
  
  
  
  		if ( theForm.nome.value == "")
  {
    alert("Inserire il nome");
    theForm.nome.focus();
    return (false);
  }
  
  
    		if ( theForm.cognome.value == "")
  {
    alert("Inserire il cognome");
    theForm.cognome.focus();
    return (false);
  }
 
     		if ( theForm.email.value == "")
  {
    alert("Inserire l'indirizzo e-mail");
    theForm.email.focus();
    return (false);
  }
 
 
 
  
Richiesta(theForm.idtariffa.value+'|'+theForm.nome.value+'|'+theForm.cognome.value+'|'+theForm.indirizzo.value+'|'+theForm.cap.value+'|'+theForm.citta.value+'|'+theForm.provincia.value+'|'+theForm.telefono.value+'|'+theForm.email.value+'|'+theForm.note.value+'|'+theForm.iddestinazione.value+'|'+theForm.adulti.value+'|'+theForm.data_partenza.value+'|'+theForm.durata.value+'|'+theForm.idperiodo.value,'send_preventivo.asp','richiesta_preventivo');

	
}















