function javaPopupMain( wParent, sPath, sName, wndWidth, wndHeight, XScale, YScale, hasTitle, hasStatus)
{

        var xTop = ((YScale - 1) / (2 * YScale));
        var xLeft = ((XScale - 1) / (2 * XScale));
        
        xTop = (wndHeight * xTop);
        xLeft = (wndWidth * xLeft);
        
        var xWidth = (wndWidth / XScale);
        var xHeight = (wndHeight / YScale);
        if (wParent==null){        
	        mywin=window.open( sPath, sName, 'width=' + xWidth + ',height=' + xHeight + ',top=' + xTop + ', left=' + xLeft + ',status=' + hasStatus + ',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,directories=no,channelmode=no');
        } else {
	       mywin=wParent.open( sPath, sName, 'width=' + xWidth + ',height=' + xHeight + ',top=' + xTop + ', left=' + xLeft + ',status=' + hasStatus + ',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,directories=no,channelmode=no');
	    }
	mywin.focus();
}

function javaPopup( wParent, sPath, sName )
{
	javaPopupMain( wParent, sPath, sName, screen.availWidth, screen.availHeight, 2, 2, 'no', 'no');
}
function javaPopupBig( wParent, sPath, sName )
{
	javaPopupMain( wParent, sPath, sName, screen.availWidth, screen.availHeight, 1.3, 1.3, 'no', 'no');
}
function javaFullWindow( sPath, sName )
{
	var pw=window.open( sPath, sName, 'width=' + (screen.availWidth-10) + ',height=' + (screen.availHeight-57) + ',top=' + 0 + ', left=' + 0 + ',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,directories=no,channelmode=no');
	pw.focus();
}
