function $(b){
	if(b){
	    if ((typeof b=='string')||(typeof b=='number')||(typeof b=='int')) {
			if(b==''){return '';}else{b=document.getElementById(b);}
		}
		return b;
	}
return null;
}
function creeAjax(){
	if(window.XMLHttpRequest) return new XMLHttpRequest(); else if(window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");   else {return null; }
}

function eAjax(data,fichier,el,remplace){
	var xhr_object=creeAjax();
	xhr_object.open("POST", '/'+fichier+'.php',true);
	xhr_object.onreadystatechange = function() {
		if(xhr_object.readyState == 4) {
			if(remplace){
				$(el).innerHTML=xhr_object.responseText;
			}else{
				$(el).innerHTML+='<br />'+xhr_object.responseText;
			}
		}
	}
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhr_object.send(HechapS(data));
}
function HechapS(data) {  
    data = data.replace(/[+]/gi, "%2B");
    data = data.replace(/"/gi, "%22");
    data = data.replace(/ /gi, "+");	   
return data;  
}  