var WindowObjectReference = null;
function createXHRObject() {
	var xhr;
	try {
		xhr = new ActiveXObject("Msxml2.XMLHTTP");
	} catch(e) {
		try {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xhr = false;
		}
	}
	
	if (!xhr && typeof XMLHttpRequest != 'undefined') {
		xhr = new XMLHttpRequest();
	}
	return xhr;
}

var xhr;

function ouvrir(lienID) {
	WindowObjectReference = window.open(lienID,'','width=600, height=500, toolbar=1, menubar=1, resizable=1, location=1, scrollbars=1');
	xhr = createXHRObject();
	xhr.open("GET", "lib/ajaxCompteur.php?Query=" + lienID);
	xhr.send(null);
}