function sendData(param, page, id){
	if(document.all){
		//Internet Explorer
		var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
	}else{
		//Mozilla
		var XhrObj = new XMLHttpRequest();
	}//fin else
	var content = document.getElementById(id);
		var XhrTimeout = window.setTimeout(function() {
			content.innerHTML="<center><em>Traitement en cours ...</em></center>";
		}, 500);
	XhrObj.open("POST", page);
	XhrObj.onreadystatechange = function(){
		if (XhrObj.readyState == 4 && XhrObj.status == 200){
			content.innerHTML = XhrObj.responseText;
			clearTimeout(XhrTimeout);
		}
	}
	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	XhrObj.send(param);
}//fin fonction SendData

function start(page_redirection, chbre, lng) {
	sendData('page_redirection=' + page_redirection + '&chbre='+chbre + '&lng='+lng, '/require/ajax_disponibilite_chambre.php', 'ajax_disponibilite_chambre');
}

function addevent(page_redirection, chbre, kan) {
	location.href = '/chantilly-resa-3b/' + page_redirection + '/' + chbre + '/' + kan + '/' + document.getElementById('nb_nuit').value + '/' + document.getElementById('nb_personne').value + '.html';
	return false;
}
