var Vers=parseInt(navigator.appVersion);
var Netscape4=(document.layers) ? true : false;
var IExplorer4=((document.all)&&(Vers>=4))?true:false;
var Netscape6=(!IExplorer4 && document.getElementById) ? true : false;
var FireFox = ( (navigator.appName.indexOf('Netscape') > 0) && !Netscape6);

function ClientBrowse() {
	if (self.screen) { 
		this.w=screen.width; 
		this.h=screen.height; 
	}else if (self.java) { 
		jkit=java.awt.Toolkit.getDefaultToolkit(); 
		scrsize=jkit.getScreenSize(); 
		this.w=scrsize.width; 
		this.h=scrsize.height; 
	}
	return this; 
}

function OpenWin(url,nwin,widthWin,heightWin,sbar) { 
	page=new ClientBrowse();
	if (widthWin) { 
		leftPos=(page.w-widthWin)/2; 
	} else { 
		widthWin=page.w-100; 
		leftPos=(page.w-widthWin)/2; 
	}
	
	if (heightWin) { 
		topPos=(page.h-heightWin)/2; 
	} else { 
		heightWin=page.h-100; topPos=25; 
	}
	
	(sbar)?null:sbar=1; 
	(nwin)?null:nwin="help";
	property="left="+leftPos+",top="+topPos+",width="+widthWin+",height="+heightWin+",scrollbars="+sbar; 
	window.open (url,nwin,property); 
}