//xmlhttp.js

//Creates the XMLHttp Object for Firefox or the ActiveX Object for shitty IE

function getxmlhttp() {
	var xmlhttp = false;
	//check first for stupid IE (IE>5)
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
		//Otherwise
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E) {
			//Firefox, etc
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}
