
var oldId, oldBgColor;
function hiddenLayer(elem)
{
	document.getElementById(elem).style.visibility = 'hidden';
	lightOff();
}
function showLayer(elem, parentelem)
{
	var width1=150;
	var top1 = 30;
	//width1 = document.getElementById(parentelem).style.width;
	//top1 = document.getElementById(parentelem).style.top+10;
	document.getElementById(elem).style.width = width1;
	document.getElementById(elem).style.top = top1;
	document.getElementById(elem).style.visibility = 'visible';
}
function lightOn(elem) 
{
	oldId = elem;
	oldBgColor = document.getElementById(elem).style.background;
	document.getElementById(elem).style.background = '#F2F1BB';
}
function lightOff()
{
	document.getElementById(oldId).style.background = oldBgColor;
}
function newwindow(name)
{
	window.open(name, '_blank', 'width=500,height=400');
}
