// JavaScript Document
function detailsvol(id_vol,id_api,adulte,enfant,bebe)
{
	var volbyid,comptabyid,forme;
	
	volbyid=file('volsec/js/vol.php?id_vol='+id_vol+'&id_api='+id_api);
	comptabyid=file('volsec/js/comptavol.php?id_vol='+id_vol+'&id_api='+id_api);
	forme=file('volsec/js/formulaire.php?adulte='+adulte+'&enfant='+enfant+'&bebe='+bebe);
	
    document.getElementById('vol').innerHTML = volbyid+comptabyid+forme;
	
}

function file(fichier)
{
	if(window.XMLHttpRequest)
	xhr_object = new XMLHttpRequest();
	else if(ActiveXObject)
	xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else 
	return false;
	xhr_object.open("GET" , fichier , false);
	xhr_object.send(null);
	if(xhr_object.readyState) return(xhr_object.responseText);
	else
	return false;
}
function vider(f)
{
	f.value='';
}
function cach(){
	document.getElementById('dateretour').style.display = 'none';
}
function afficher(){
	document.getElementById('dateretour').style.display = 'block';
}
