var xhttp = false;

function setXhttp() {
	if (window.XMLHttpRequest) {
		xhttp = new XMLHttpRequest();
		if (xhttp.overrideMimeType) {
			xhttp.overrideMimeType('text/xml');
		} // end if
	} else if (window.ActiveXObject) { // IE
		try {
			xhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {} // end try
		} // end try
	} // end if

	if (!xhttp) {
		//alert('Giving up :( Cannot create an XMLHTTP instance');
		return false;
	} // end if
} // end function