function NewSmWnd(PagePath, width, height)
{
	var scroll = 'yes';
	var top=0, left=0;
	if(height < screen.height-28)
		top = Math.floor((screen.height - height)/2-14);
	if(width < screen.width-10)
		left = Math.floor((screen.width - width)/2);
	width = Math.min(width, screen.width-10);	
	height = Math.min(height, screen.height-28);	
	window.open(PagePath,'','scrollbars='+scroll+',resizable=yes,width='+width+',height='+height+',left='+left+',top='+top);
}
function ToggleDiv(div)
{
var style = document.getElementById(div).style;
if(style.display!="none") style.display = "none";
else style.display = "block";
return (style.display != "none");
}
