// JavaScript Document
function GetXmlHttpObject()
	{
		var xmlHttp=null;
		try
		 {
			 // Firefox, Opera 8.0+, Safari
			 xmlHttp=new XMLHttpRequest();
		 }
		  catch (e)
			 {
			 // Internet Explorer
			 try
			  {
			    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			  }
			 catch (e)
			  {
			    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
		    }
		return xmlHttp;
	}
	
	
	
/***************************** getAjax ****************************************/	
	
	function moteur(id)
	   {
		 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('moteurRecherche').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/moteurRecherche.php?id="+id,true);
    MyxmlHttp.send(null);
		}

/*****************************  ****************************************/	
 function villeVoitureDepart(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('villeDepartChange').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/villeVoitureDepart.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 /*****************************  ****************************************/	
 function villeDepartChangePromo(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('villeDepartChangePromo').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/villeDepartChangePromo.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 
  function villeVoitureRetour(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('villeRetourChange').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/villeVoitureRetour.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 
   function villeRetourChangePromo(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('villeRetourChangePromo').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/villeRetourChangePromo.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 
   function nationalite(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('nationaliteChange').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/nationalite.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 
    function nationaliteChangePromo(value)
 {
			 var MyxmlHttp=GetXmlHttpObject();
	  
	  MyxmlHttp.onreadystatechange=function()
      {
		  if(MyxmlHttp.readyState==4)
			{
				document.getElementById('nationaliteChangePromo').innerHTML=MyxmlHttp.responseText;
				
			}
      }
    
    MyxmlHttp.open("GET","PHP_SCRIPT/nationaliteChangePromo.php?value="+value,true);
    MyxmlHttp.send(null); 
 }
 
 
 
/***************************** FAVORIS ****************************************/	
	
function favoris() 
{ 
if ( navigator.appName != 'Microsoft Internet Explorer' ) 
	 window.sidebar.addPanel("Artsenou, votre partenaire voyage","http://www.artsenou.com",""); 
else 
	window.external.AddFavorite("http://www.artsenou.com","Artsenou, votre partenaire voyage"); 
} 

