//-------------------------------
//-----XMLHTTPRequest Functions--
//-------------------------------
var req;

function loadXMLDoc(url)
{
	if (window.XMLHttpRequest)
	{
		// branch for native XMLHttpRequest object
		req = new XMLHttpRequest();
		req.onreadystatechange = processReqChange;
		req.open("GET", url, true);
		req.send(null);
	}
	else if (window.ActiveXObject)
	{
		// branch for IE/Windows ActiveX version
		req = new ActiveXObject("Microsoft.XMLHTTP");
		if (req)
		{
			req.onreadystatechange = processReqChange;
			req.open("GET", url, true);
			req.send();
		}
	}
}

function getbyid(id){	itm = null;		if (document.getElementById)	{
		itm = document.getElementById(id);	}	else if (document.all)	{		itm = document.all[id];	}	else if (document.layers)	{		itm = document.layers[id];	}		return itm;}

function toggleview(id){		if ( itm = getbyid(id) )	{		if (itm.style.display == "none")		{			show_div(itm);		}		else		{			hide_div(itm);		}	}}function hide_div(itm){	itm.style.display = "none";}function show_div(itm){	if ( ! itm ) return;		itm.style.display = "";}
