	var URLDomain = 'http://www.showrealtalent.com/';
	var req;
	var returnMethod;
	var statusDiv;

	function setStatusDiv(div) {
		statusDiv = div;
	}

	function loadXMLDoc(url) {

		showLoadingMsg();

		// branch for native XMLHttpRequest object
		if (window.XMLHttpRequest) {
			req = new XMLHttpRequest();
			req.onreadystatechange = processReqChange;
			req.open("GET", url, true);
			req.send(null);
			// branch for IE/Windows ActiveX version
		}
		else if (window.ActiveXObject) {
			req = new ActiveXObject("Microsoft.XMLHTTP");

			if (req) {
				req.onreadystatechange = processReqChange;
				req.open("GET", url, true);
				req.send();
			}
		}
	}

	function processReqChange() {

//		if (req.readyState == 2) {
//			showLoadingMsg(statusDiv);
//		}

		// only if req shows "complete"
		if (req.readyState == 4) {
			// only if "OK"
			if (req.status == 200) {
				// ...processing statements go here...
				result = req.responseText;
				eval(returnMethod + '(\'\', result)');
			}
			else {
				retrieveError(statusDiv, req.status);
			}
		}
	}

	function loadXMLDocPOST(url, postParams) {

		// branch for native XMLHttpRequest object
		if (window.XMLHttpRequest) {
			req = new XMLHttpRequest();
			req.onreadystatechange = processReqChange;
			req.open("POST", url, true);
			req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
			req.send(postParams);
			// branch for IE/Windows ActiveX version
		}
		else if (window.ActiveXObject) {
			req = new ActiveXObject("Microsoft.XMLHTTP");

			if (req) {
				req.onreadystatechange = processReqChange;
				req.open("POST", url, true);
				req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
				req.send(postParams);
			}
		}
	}

	function showLoadingMsg() {
		document.getElementById(statusDiv).innerHTML = '<p>Loading Data...</p>';
	}

	function retrieveError(httpErrCode) {
		document.getElementById(statusDiv).innerHTML = '<p>Error retrieving data: ' + httpErrCode + '</p>';
	}