function calendrier(month,year,loc){
xmlHttpCal=GetXmlHttpObject();
if (xmlHttpCal==null){
  alert ("Votre navigateur ne supporte pas la technologie AJAX!");
  return;}
var urlCal="cal_sql.asp";
//urlCal=urlCal+"?date="+date;
urlCal=urlCal+"?month="+month;
urlCal=urlCal+"&year="+year;
urlCal=urlCal+"&loc="+loc;
urlCal=urlCal+"&sid="+Math.random();
xmlHttpCal.onreadystatechange=stateChangedCal;
xmlHttpCal.open("GET",urlCal,true);
xmlHttpCal.send(null);
}

function stateChangedCal(){ 
if (xmlHttpCal.readyState==4){ 
	document.getElementById("calendrier_ajax").innerHTML=xmlHttpCal.responseText;
	}
}

function showDate(leJour, leMois, leAn,loc){
xmlHttpShow=GetXmlHttpObject();
if (xmlHttpShow==null){
  alert ("Votre navigateur ne supporte pas la technologie AJAX!");
  return;}
var urlShow="showDate.asp";
urlShow=urlShow+"?day="+leJour;
urlShow=urlShow+"&month="+leMois;
urlShow=urlShow+"&year="+leAn;
urlShow=urlShow+"&loc="+loc;
urlShow=urlShow+"&sid="+Math.random();
xmlHttpShow.onreadystatechange=stateChangedShow;
xmlHttpShow.open("GET",urlShow,true);
xmlHttpShow.send(null);
}

function stateChangedShow(){ 
if (xmlHttpShow.readyState==4){ 
	document.getElementById("conteneur_cal").innerHTML=xmlHttpShow.responseText;
	}
}


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;
}