// ajaxCall.js

var req;
	if (window.XMLHttpRequest) {
		req = new XMLHttpRequest();
		if (req.overrideMimeType) {
			req.overrideMimeType('text/xml');
		}
	} else if (window.ActiveXObject) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
			req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!req) {
		alert('Giving up :( Cannot create instance XMLHttpRequest');
	}

function makeCall(url,retcall) {
	req.open("GET", url, true);
	//alert("I apoligize, I am testing something quickly and these popups will soon stop.\n\n - Mark Doom\n\n"+url+"\n\n"+retcall);
	if (retcall != null && retcall != false) {
		req.onreadystatechange = retcall;
	}
	try { req.send(null); }
	catch(e) { alert(url + " / " + retcall); }
}

function encodeMe(value) {
	try {
		return encodeURIComponent(value);
	} catch(e) {
		return escape(value);
	}
}

