  
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
        xmlhttp = false;
        }
      }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

// AJAX FONCTION passage en POST ! car PB japonais sinon ! (GET)
function file(fichier, varpost)
{
 	xhr_object = new getHTTPObject();
 
	xhr_object.open("POST", fichier, false);
	xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
 	xhr_object.send(varpost);

	if(xhr_object.readyState == 4) 
		return(xhr_object.responseText);
	else 
		return(false);
}