

// create custom AJAX request
	  function XMLDoc() {
		var me = this;
		var req = null;
	 //chek for XMLHttpRequest object
	 if(window.XMLHttpRequest) {
	 try {
	 req = new XMLHttpRequest();
	 } catch(e) {
	 req = null;
	 }
	 // check for older (IE)Windows ActiveX versions
	} else if (window.ActiveXObject) {
	try {
	req = new ActiveXObject("Msxml2.XMLHTTP");
	} catch(e) {
	try{
	req = new ActiveXObject("Microsoft.XMLHTTP");
	} catch(e) {
	req = null;
		}
	}	
			} else {
		alert("AJAX application requires a browser with XML support, your browser may be outdated")
		}
			//create reference for request Object for later
		this.request = req;
		//method to be invoked to send request
		this.loadXMLDoc = function(url, loadHandler) {
			if(this.request) {
			this.request.open("GET", url, true);
			this.request.onreadystatechange = function () {loadHandler(me)};
			this.request.setRequestHeader("Content-Type", "text/xml");
			this.request.send("");
				}
		};
			
	}