<!--
function msftUrl(url) {
	if (url.indexOf("?") < 0) url += "?"
	url += "&dummy=" + Math.random(); // IE bug
	return url;
}

// AJAX
function ajaxLoader(id,url) {
	url = msftUrl(url); // IE bug
	if (document.getElementById) {
		var xmlHttp = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	if (xmlHttp) {
		document.getElementById(id).innerHTML = '<img src="_templates/backsite/_frame/images/loading.gif" alt="" width="32" height="32" style="padding: 5px;" border="0">';
        xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
				document.getElementById(id).innerHTML = xmlHttp.responseText;
			}
		}
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	} else {
		document.getElementById(id).innerHTML = "Browser does not support HTTP Request";
	}
}

function ajaxProcessor(url,runfunction) {
	url = msftUrl(url); // IE bug
	if (document.getElementById) {
		var xmlHttp = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	if (xmlHttp) {
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
				response = xmlHttp.responseText;
				eval(response);
                eval(runfunction);
			}
		}
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	} else {
		alert("Browser does not support HTTP Request");
	}
}

function ajaxEvalProcessor(url,runfunctionname) {
	url = msftUrl(url); // IE bug
	if (document.getElementById) {
		var xmlHttp = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	}
	if (xmlHttp) {
		xmlHttp.onreadystatechange = function() {
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
				response = xmlHttp.responseText;
				eval(runfunctionname+"('"+response+"')");
			}
		}
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	} else {
		alert("Browser does not support HTTP Request");
	}
}

// DHTML
function dhtmlLoader(id,value) {
	document.getElementById(id).innerHTML = value;
}
//-->
