function fAjaxWait(sElemIdToMask, sElemIdToDisplay){
	if(sElemIdToMask!='none'){
		var tomask = document.getElementById(sElemIdToMask);
		tomask.style.display='none';
	}
	var todisplay = document.getElementById(sElemIdToDisplay);
	todisplay.style.display='block';
}




function fAjaxGetGalerie(sElemID){
	fAjaxGet('galerie.ajaxget.php', 'fAjaxResultWithJS', new Array(sElemID));
}
function fAjaxGalerieFilterPost(sElemID, sFormID){
	fAjaxPost('galerie.slide.php', sFormID, 'fAjaxResultWithJS', new Array(sElemID))
}	
function fAjaxGalerieFilterResetGet(sElemID) {
	fAjaxGet('galerie.slide.php?reset=1', 'fAjaxResultWithJS', new Array(sElemID));
}
function fAjaxGalerieSlideGet(sElemID, iDeb, iImageNum, iTemps) {
	fAjaxGet('galerie.slide.php?deb='+iDeb+'&affiche='+iImageNum+'&temps='+iTemps, 'fAjaxResultWithJS', new Array(sElemID));
}
function fAjaxGalerieShowGet(sElemID, iDeb, iImageNum, iTemps) {
	fAjaxGet('galerie.show.php?deb='+iDeb+'&affiche='+iImageNum+'&temps='+iTemps, 'fAjaxResultWithJS', new Array(sElemID));
}



function fAjaxGetIndocGalerieSlide(sElemID, iKey){
	fAjaxGet('galerie.indoc.php?key='+iKey, 'fAjaxResultWithJS', new Array(sElemID));
}
function fAjaxGetIndocGalerieShow(sElemID, sImg){
	fAjaxGet('galerie.indoc.php?img='+sImg, 'fAjaxResultWithJS', new Array(sElemID));
}





function fAjaxGetContact(sElemID, iFromCat){
	fAjaxGet('formulaire.ajaxget.php?cat='+iFromCat, 'fAjaxResultWithJS', new Array(sElemID));
}
function fAjaxContactSend(sElemID, sFormID) {
	fAjaxPost('formulaire.ajaxpost.php', sFormID, 'fAjaxResultWithJS', new Array(sElemID))
}


function fAjaxGetPlan(sElemID){
	fAjaxGet('plan.ajaxget.php', 'fAjaxResultWithJS', new Array(sElemID));
}







function fAjaxResultat(aArguments) {
	document.getElementById(aArguments[0]).innerHTML = aArguments[1];
}

function fAjaxResultWithJS(aArguments)  
{  
   var div = document.getElementById(aArguments[0]);  
   div.innerHTML = aArguments[1];  
   var x = div.getElementsByTagName("script");   
   for(var i=0;i<x.length;i++)  
   {  
       eval(x[i].text);  
   }  
}  
