function psShowWin(theName, theFlags, theURL, thisURL)
{
	if (theURL)
	{ 	psWindow = open(theURL,theName, psWinInfo[theName] );
		psWindow = open(theURL,theName, psWinInfo[theName] );	
	}
	else 
	{	if (psWindow)
			psWindow.close(); 
	}
	if (thisURL) 
		location=thisURL;	
	if (theFlags & 1)
	{	if (psWindow.focus)
			psWindow.focus();
	}
}
function psSetupWin(theName, winInfo)
{
	psWinInfo[theName] = winInfo;
}

var	psWindow = null;
psWinInfo = new Array();

psSetupWin ("titul", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=240,screenX=50,screenY=50,left=50,top=50");