// JavaScript Document
function requestDataContent(sPHP, sID, sDiv) {
	var oXmlHttp = zXmlHttp.createRequest();

	oXmlHttp.open("get", sPHP + sID, true);
	oXmlHttp.onreadystatechange = function () {
		if (oXmlHttp.readyState == 4) {
			if (oXmlHttp.status == 200) {
				displayDataContent(sDiv, oXmlHttp.responseText);
			} 
			else {
				displayDataContent(sDiv, "An error occurred: " + oXmlHttp.statusText);
			}
		}            
	};
	oXmlHttp.send(null);
}
  
function requestContent(sData, sDiv) {
	var oXmlHttp = zXmlHttp.createRequest();

	oXmlHttp.open("get", sData, true);
	oXmlHttp.onreadystatechange = function () {
		if (oXmlHttp.readyState == 4) {
			if (oXmlHttp.status == 200) {
				displayDataContent(sDiv, oXmlHttp.responseText);
			} 
			else {
				displayDataContent(sDiv, "An error occurred: " + oXmlHttp.statusText);
			}
		}            
	};
	oXmlHttp.send(null);
}

function displayDataContent(sDiv, sText) {
	var divDataContent = document.getElementById(sDiv);
	divDataContent.innerHTML = sText;
}
