
function XMLHTTPObject() {
	var xmlhttp;
	if (window.ActiveXObject) {
		if (_XML_ActiveX) {
			xmlhttp = new ActiveXObject(_XML_ActiveX);
		} else {
			var versions = ["MSXML2.XMLHTTP", "Microsoft.XMLHTTP", 
							"Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", 
							"Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0"];
			for (var i = 0; i < versions.length ; i++) {
				try {
					xmlhttp = new ActiveXObject(versions[i]);
					if (xmlhttp) {
						var _XML_ActiveX = versions[i];
						break;
					}
				}catch (e) {};
			};
		}
	}
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {xmlhttp = false;}
	}
	return xmlhttp;
}