function ChangeColor(tableRow, highLight)
{
	if (highLight)
	{tableRow.style.backgroundColor = 'lightblue';}
	else
	{tableRow.style.backgroundColor = 'white';}
}

function DoNav(theUrl)
{
	document.location.href = theUrl;
}

function postwith (to,p) {
	var myForm = document.createElement("form");
	myForm.method="post" ;
	myForm.action = to ;
	for (var k in p) {
		var myInput = document.createElement("input") ;
		myInput.setAttribute("name", k) ;
		myInput.setAttribute("value", p[k]);
		myForm.appendChild(myInput) ;
	}
	document.body.appendChild(myForm) ;
	myForm.submit() ;
	document.body.removeChild(myForm) ;
}
			


if (window.addEventListener)
window.addEventListener("load", initsidebarmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", initsidebarmenu)

