function resa_foot(typeFoot)
{
    var xhr=null;
    
    if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    xhr.onreadystatechange = function() { 
	 if(xhr.readyState == 4)
      {
         if(xhr.status == 200)
         {
            //alert(xhr.responseText);
			document.getElementById('ZoneReservation').innerHTML = xhr.responseText;
         }	
         else	
         {
            document.ajax.dyn.value="Error: returned status code " + xhr.status + " " + xhr.statusText;
         }	
      } 
   }; 
	
    
    //on appelle le fichier reponse.txt
    xhr.open("GET", "includes/ajax/foot_get_etape2.php?typeFoot="+typeFoot, true);
    xhr.send(null);
}

function resa_foot_session(mode, start_hour, end_hour)
{
    var xhr=null;
    
    if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    //on définit l'appel de la fonction au retour serveur
    xhr.onreadystatechange = function() { 
	 if(xhr.readyState == 4)
      {
         if(xhr.status == 200)
         {
            //alert(xhr.responseText);
			document.getElementById('ZoneReservation').innerHTML = xhr.responseText;
         }	
         else	
         {
            document.ajax.dyn.value="Error: returned status code " + xhr.status + " " + xhr.statusText;
         }	
      } 
   }; 
	
   
   
    //on appelle le fichier reponse.txt
    xhr.open("GET", "includes/ajax/foot_get_etape3.php?mode="+mode+"&start="+start_hour+"&end="+end_hour, true);
    xhr.send(null);
}

