var xmlhttp;
var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
var jsXmlDom;

function getXmlHttpRequest() {

	if( xmlhttp && xmlhttp.readyState!=0 ) {
		xmlhttp.abort();
	}

	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

	}catch (e) {

		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e) {
			xmlhttp = false;
		}
	}

	if( !xmlhttp && typeof XMLHttpRequest != 'undefined' ) {

		try {
			xmlhttp = new XMLHttpRequest();

		}catch(e) {
			xmlhttp = false;

		}
	}
}

function getXmlHttpRequest2() {

	try {
		xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP");

	}catch (e) {

		try {
			xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(e) {
			xmlhttp2 = false;
		}
	}

	if( !xmlhttp2 && typeof XMLHttpRequest != 'undefined' ) {

		try {
			xmlhttp2 = new XMLHttpRequest();

		}catch(e) {
			xmlhttp2 = false;

		}
	}
}



