<!--

function toggleMenu (curMenu) {
	var thisMenu = new Object(document.getElementById(curMenu));
		
	if (thisMenu.style.display == "block") {
		thisMenu.style.display = "none"
	}
	else {
		thisMenu.style.display = "block"
	}
	return false
}

function toggleMenu2 () {
	Querystring();
	var curMenu = Querystring_get('page','none');
	
	var thisMenu = new Object(document.getElementById(curMenu));
		
	if (thisMenu.style.display == "block") {
		thisMenu.style.display = "none"
	}
	else {
		thisMenu.style.display = "block"
	}
	return false
}

function openNew(page) {
	OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=800,height=500");
}

function Querystring()
{
// get the query string, ignore the ? at the front.
	var querystring=location.search.substring(1,location.search.length);

// parse out name/value pairs separated via &
	var args = querystring.split('&');

// split out each name = value pair
	for (var i=0;i<args.length;i++)
	{
		var pair = args[i].split('=');

		// Fix broken unescaping
		temp = unescape(pair[0]).split('+');
		temp0 = temp.join(' ');
		
		temp = unescape(pair[1]).split('+');
		temp1 = temp.join(' ');
		
		this[temp0]=temp1;
	}

	this.get=Querystring_get;
}

function Querystring_get(strKey,strDefault)
{
	var value=this[strKey];
	if (value==null){value=strDefault;}
	
	return value;
}

//-->

