function showUser(url,div,toggle) {
	var xmlHttp;
	var action;
	var sendto;

	xmlHttp=GetXmlHttpObject()
	if (div) { sendto = div; }
	if (toggle) { action = escape(toggle); } else { action = "add"; }
	
	var url=url+"?action="+action;
	
	xmlHttp.onreadystatechange=function() {
		if (xmlHttp.readyState=='4' || xmlHttp.readyState=="complete") { 
			document.getElementById(sendto).innerHTML=xmlHttp.responseText;
		}	
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function GetXmlHttpObject() {
	xmlHttp=null;
	try {
	 // Firefox, Opera 8.0+, Safari
	 xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
	 //Internet Explorer
	 try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
	 catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return xmlHttp;
}

// DISPLAY OR HIDE CERTAIN ELEMENTS BY ID
function showItem(id) {
	if (document.getElementById) {
		if(document.getElementById(id)) { 	
			if (document.getElementById(id).className == "shown") {	 // if div is already open, close it
				document.getElementById(id).className = "hidden"; 
			}
			else {
				document.getElementById(id).className = "shown";
			}
		}
	}
}