var flagload = 0; //bool
var cont = 0;			//container have to have in
var img = 0; 			//image (determine if something is loading)
function xmlLoad(url){
	xmlhttp=null;
	if(flagload)
		return;
	if(cont)
		cont.innerHTML="";
	if(img)
		img.style.display="block";
	if(window.XMLHttpRequest){
		flagload=1;
		xmlhttp=new XMLHttpRequest();
		xmlhttp.onreadystatechange=state_Change;
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}else if(window.ActiveXObject){
		flagload=1;
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		if (xmlhttp){
			xmlhttp.onreadystatechange=state_Change;
			xmlhttp.open("GET",url,true);
			xmlhttp.send();
		}
	}else{
		alert("Problem retrieving XML data");
	}	 
}
function state_Change(){
	if (xmlhttp.readyState==4){
		if (xmlhttp.status==200){
			cont.innerHTML=xmlhttp.responseText;
			flagload=0;
		}else{
			alert("Problem retrieving XML data:" + xmlhttp.statusText);
			flagload=0;
		}
		if(img)
			img.style.display="none";
	}
}