// JavaScript Document
/* Open A Generic Area With Ajax
**
** URL is the file opened
** Page is the data destination dom object id 
**********************************************/
function open_data(url, page) {
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("GET",url, true);
	oXmlHttp.onreadystatechange = function () {
		if (oXmlHttp.readyState == 4 && oXmlHttp.status == 200)	{
			document.getElementById(page).innerHTML = oXmlHttp.responseText;
			document.getElementById('load').innerHTML = "";
			//document.getElementById('topper').style.backgroundImage = "url('_images/topping.png')";
			//document.getElementById('topper').style.borderTop = "0px solid #FFFFFF";
			true;
		} else {
			if(document.getElementById(page) == true){
			document.getElementById('load').innerHTML = "<img src=\"_images/ajax-loader.gif\">";
			//document.getElementById('topper').style.backgroundImage = "url('_images/')";
			//document.getElementById('topper').style.borderTop = "1px solid #FFFFFF";
			true;
			}
		}
		/*if (oXmlHttp.readyState == 4) {
			if (oXmlHttp.status == 200) {
			document.getElementById(page).innerHTML = oXmlHttp.responseText;
			} else {
			document.getElementById(page).innerHTML = "ERROR";
			} 
		}  */    
	};
	oXmlHttp.send(null);
}// END GENERIC AJAS open_data()