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;
}

var http = getHTTPObject();

function ajaxGET_noAction(url) {
	// Préparation d'une requête asynchrone de type GET
	http.open("GET", url,true);
	http.onreadystatechange = AjaxRetour_noAction;
	http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	http.send(null);
}

function ajaxGET(url) {
	// Préparation d'une requête asynchrone de type GET
	http.open("GET", url,true);
	http.onreadystatechange = AjaxRetour;
	http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	http.send(null);
}

function AjaxRetour_noAction() {
	// 4 = tout est OK
	if (http.readyState == 4) {
		if(http.responseText!='' && http.responseText!=null) {
		}
	}
}

function ajaxGET_eval(url) {
	// Préparation d'une requête asynchrone de type GET
	http.open("GET", url,true);
	http.onreadystatechange = AjaxRetour_eval;
	http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	http.send(null);
}

function AjaxRetour_eval() {
	// 4 = tout est OK
	if (http.readyState == 4) {
		if(http.responseText!='' && http.responseText!=null) {
			eval(http.responseText);
		}
	}
} 

function AjaxRetour() {
	// 4 = tout est OK
		if (http.readyState == 4) {
		if(http.responseText!='' && http.responseText!=null) {
		//	alert(http.responseText);
			eval(http.responseText);
		}
	}
//	alert(http.responseText);
} 
