// JavaScript Document*
//necessite prototype.js

function chargeHTML(sMethod,sURL,sParam,sDiv,bLoading,sDivLoading,callBack){
	if(bLoading==true){$(sDivLoading).style.display='block';}
	var ajax=new Ajax.Request('aja/index.php',{asynchronous:true ,method:sMethod,parameters:sParam,onSuccess:function(t){$(sDiv).innerHTML=t.responseText;if(bLoading==true){$(sDivLoading).style.display='none';};var func=callBack;func();}});	
}

function sendData(sMethod,sURL,sParam,bLoading,sDivLoading,callBack){
	if(bLoading==true){$(sDivLoading).style.display='block';}
	var ajax=new Ajax.Request('aja/index.php',{asynchronous:true ,method:sMethod,parameters:sParam,onSuccess:function(t){var func=callBack;func(t.responseXML);if(bLoading==true){$(sDivLoading).style.display='none';}}});	
}

