
function ExpandDiv(cDiv)
{
	var cCurrentDisplay;

	cCurrentDisplay = document.getElementById(cDiv).style.display;

	if (cCurrentDisplay == "block")
	{
		document.getElementById(cDiv).style.display = "none";
	}
	else
	{
		document.getElementById(cDiv).style.display = "block";
	}
	if (parent.adjustIFrameSize)
                parent.adjustIFrameSize(window);
}

function OpenWindow(Filename,winwidth,winheight)
{
		var lswidth=screen.width;
		var lsheight=screen.height;
		var lheight=winheight;
		var lwidth,lheight;
		lsheight=lsheight-winheight;
		lsheight=lsheight/2;
		lswidth=lswidth-winwidth;
		lswidth=lswidth/2;	
		lheight=winheight;
		lwidth= winwidth;
		 	
		window.open(Filename,null,"height=" +  lheight + ",width=" + lwidth + ",top=" + lsheight + ",left=" + lswidth + ",toolbars=0,scrollbars=1,resizable=0,maximize=no");
//935*520
}


function OpenPTDemo(Filename,winwidth,winheight)
{

		var lswidth=screen.width;
		var lsheight=screen.height;
		var lheight=winheight;
		var lwidth,lheight;
		lsheight=lsheight-winheight;
		lsheight=lsheight/2;
		lswidth=lswidth-winwidth;
		lswidth=lswidth/2;	
		lheight=winheight;
		lwidth=winwidth;
		window.open(Filename,null,"height=" +  lheight + ",width=" + lwidth + ",top=" + lsheight + ",left=" + lswidth + ",toolbars=0,scrollbars=1,resizable=1,maximize=1");


}



