var http = createRequestObject();
function createRequestObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}



function getInfo(ajax_method,ajax_vr,ajax_partie,ajax_type_affichage,ajax_zone_affichage){
    var obj = document.getElementById(ajax_zone_affichage);
	http.open(ajax_method, 'ajax.php?txtvr='+ ajax_vr + '&txtpartie='+ ajax_partie + '&txt_tp_aff='+ ajax_type_affichage);
    http.onreadystatechange = function(ajax_zone_affichage){
	    if(http.readyState == 1){
   	    	 obj.innerHTML = "<font style='font-size:10px'>Loading...</font>";
   		}

	    if(http.readyState == 4){
    	    var response = http.responseText;
     		obj.innerHTML = response;
    	}
	   
	} 
	http.send(null);
}


