var xmlHttp = false;

//Check if we are using IE.
try {
	//If the Javascript version is greater than 5.
	xmlHttp = new ActiveXObject("Msxml2.xmlHttp");
} catch (e) {
	//If not, then use the older active x object.
	try {
		//If we are using Internet Explorer.
		xmlHttp = new ActiveXObject("Microsoft.xmlHttp");
	} catch (E) {
		//Else we must be using a non-IE browser.
		xmlHttp = false;
	}
}
//If we are using a non-IE browser, create a javascript instance of the object.
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
	xmlHttp = new XMLHttpRequest();
}