 function FuncAjax(div, page, data)
 {
	var content = document.getElementById(div);
var XhrObj = null;

//firefox
if (window.XMLHttpRequest) {
XhrObj = new XMLHttpRequest();
}

//ie
else if (window.ActiveXObject) {
try {
XhrObj = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
}
} 
			//alert( data);

	XhrObj.onreadystatechange = function() 
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)	content.innerHTML = XhrObj.responseText;

			//alert( content.innerHTML);
    }
    XhrObj.open("POST", page,true);
  	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    XhrObj.send(data);
}

 function reafficher_fichier(div, page, data)
 {
	var content = document.getElementById(div);
    if(document.all)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
        var XhrObj = new XMLHttpRequest();	
    }
	XhrObj.open("POST", page);
  	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    XhrObj.send(data);
		
	XhrObj.onreadystatechange = function() 
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
            content.innerHTML = XhrObj.responseText
    }
}

 function FuncAjaxValue(div, page, data)
 {
	var content = document.getElementById(div);
    if(document.all)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
        var XhrObj = new XMLHttpRequest();	
    }
	XhrObj.open("POST", page);
  	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    XhrObj.send(data);
		
	XhrObj.onreadystatechange = function() 
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
            content.value = XhrObj.responseText
    }
}

 
