function centerDiv(DivID)
{
	var lay=document.getElementById(DivID);
	var _31=0;
	var _32=0;
	var h=0;
	var w=0;
	
	if(self.innerWidth)
	{
		_31=self.innerWidth;
		_32=self.innerHeight;
	}
	else
	{
		if(document.documentElement&&document.documentElement.clientWidth)
		{
			_31=document.documentElement.clientWidth;
			_32=document.documentElement.clientHeight;
		}
		else
		{
			if(document.body)
			{
				_31=document.body.clientWidth;
				_32=document.body.clientHeight;
			}
		}
	}
	
	if(lay.offsetWidth)
	{
		w=lay.offsetWidth;
		h=lay.offsetHeight;
	}
	else
	{
		if(lay.element.pixelWidth)
		{
			w=lay.pixelWidth;h=lay.pixelHeight;
		}
	}
	
	if(lay)
	{
		lay.style.left=_31/2-w/2+"px";
		lay.style.top=_32/2-h/2+"px";
	}
}

function showLayer(whichLayer) 
{
	if (document.getElementById) 
	{
		// this is the way the standards work
		document.getElementById(whichLayer).style.display = 'inline';
	}
	else if (document.all) 
	{
		// this is the way old msie versions work
		document.all[whichlayer].style.display = 'inline';
	}
	else if (document.layers) 
	{
		// this is the way nn4 works
		document.layers[whichLayer].display = 'inline';
	}
}
