function new_xhr(){
	var xhr_object = null;
	if(window.XMLHttpRequest)
	   xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject){
	   try {
                xhr_object = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
            }
	}
	else {
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
	   xhr_object = false;
	}
	return xhr_object;
}

function load_page(select) {
	var xhr2 = new_xhr();
	xhr2.onreadystatechange = function(){
		if ( xhr2.readyState == 4 ){
			if(xhr2.status  != 200){
				document.getElementById("content").innerHTML ="Error code " + xhr2.status;
			} else {
				document.getElementById("content").innerHTML = xhr2.responseText;
				
	
			}
		} else {
			document.getElementById("content").innerHTML = "Chargement en cours ...<br /><img src='loading.gif' alt=''/>";
			
		}
	}
	
	

//theURL=theURL+'?num='+numero+'&typonum='+plaque+'&logo='+logo+'&num2='+numero2+'&num3='+numero3;
	
	xhr2.open("GET", select.split('?')[1], true);
	xhr2.send(null);
}


