function ClientBrowse() { this.w=0; this.h=0;
if (self.screen) { this.w=screen.width; this.h=screen.height; }
else if (self.java) { var jkit=java.awt.Toolkit.getDefaultToolkit(); var scrsize=jkit.getScreenSize(); this.w=scrsize.width; this.h=scrsize.height; } }
function OpenWin(url,nwin,widthWin,heightWin,sbar) { p=new ClientBrowse();
if (widthWin) { leftPos=(p.w-widthWin)/2; } else { widthWin=p.w-100; leftPos=(p.w-widthWin)/2; }
if (heightWin) { topPos=(p.h-heightWin)/2; } else { heightWin=p.h-100; topPos=10; }
(sbar==1)?null:sbar=0; (nwin)?null:nwin="win"; var property="left="+leftPos+",top="+topPos+",width="+widthWin+",height="+heightWin+",scrollbars="+sbar;
window.open (url,nwin,property); }
