function Browser() {
	var b=navigator.appName;
	if (b.indexOf('Netscape')!=-1) this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser.\nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6.0')>0);
	this.opera=(this.b=="opera");
	if (navigator.userAgent.toLowerCase().indexOf("safari")>-1) this.b = "safari";
	this.safari=(this.b=="safari");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}

is=new Browser();

function openWindow(url, winW, winH)
{
	screenW = (is.ns||is.opera)? self.innerWidth : ((self.document && self.document.body && self.document.body.clientWidth) ? self.document.body.clientWidth : 0);
	screenH = (is.ns||is.opera)? self.innerHeight : ((self.document && self.document.body && self.document.body.clientHeight) ? self.document.body.clientHeight : 0);
	if (is.ns && self.parent.frames.length>1) {
		if (is.ns4) { screenW=this.w+4; screenH=screenH+4; }
		else screenH=screenH-2;
	};
	x = 0;
	if(window.screenLeft && window.screenLeft != null)
	{
		x = window.screenLeft;
	}
	y = 0;
	if(window.screenTop  && window.screenTop != null)
	{
		y = window.screenTop;
	}
	t = y;
	l = x;
	if(screenW > winW)
	{
		l += (screenW - winW)/2;
	}
	if(screenH > winH)
	{
		t += (screenH - winH)/2;
	}
	winID = window.open(url,"_blank", "height="+winH+",width="+winW+",top="+t+",left="+l+",resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
	if(!is.ns4)
	{
		eval("try{winID.focus();}catch(e) {};");
	}
	else
	{
		winID.focus();
	}
}