var screenHeight	= screen.availHeight - 30;
var screenWidth	= screen.availWidth - 10;
function openNewScreen(strUrl,strWindowName,intWidth,intHeight)
{
 openNewScreenAtPosition(strUrl,strWindowName,intWidth,intHeight,0,0)
}
function openNewScreenCentered(strUrl,strWindowName,intWidth,intHeight)
{
 var intTopPos = (screenHeight- intHeight) / 2;
 var intLeftPos = (screenWidth - intWidth) / 2;
 openNewScreenAtPosition(strUrl,strWindowName,intWidth,intHeight,intLeftPos,intTopPos)
}
function openNewScreenAtPosition(strUrl,strWindowName,intWidth,intHeight,intLeftPos,intTopPos)
{
 myWindow = window.open(strUrl,strWindowName,"width=" + intWidth + ",height=" + intHeight + ",top=" + intTopPos + ",left=" + intLeftPos + ",status=no,scrollbars=yes,resizable=yes");
 myWindow.focus();
}
function openFullScreen(strUrl,strWindowName)
{
 openNewScreenAtPosition(strUrl,strWindowName,screenWidth,screenHeight,0,0);
}
function openAlmostFullScreen(strUrl,strWindowName)
{
 openNewScreenCentered(strUrl,strWindowName,(screenWidth - 50),(screenHeight - 50));
}
