// JavaScript Document
/* *****browser safe HTTP request***** */
/* Link this file to your web page then call the initate the HTTP Request class using this code:
	var XMLHttp = getXMLHttp();
*/

//function to open HTTP Request across most browsers
function getXMLHttp() {
	var XMLHttp = null;
	if (window.XMLHttpRequest) {
		try {
		    XMLHttp = new XMLHttpRequest();
		} catch (e) {}
	}
	
	else if (window.ActiveXObject) {
		try {
			XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				XMLHttp = new ActiveXObject ("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	
	return XMLHttp;
}