
// BrowserCheck
function BrowserCheck()
{
  var b = navigator.appName
  if (b=="Netscape") this.b = "ns"
  else if (b=="Microsoft Internet Explorer") this.b = "ie"
  else this.b = b
  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.ns5 = (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.min = (this.ns||this.ie)
}

is = new BrowserCheck()

function newwin(url, width, height, winname)
{
	wleft = (screen.width - width) / 2;
	wtop = (screen.height - height) / 2 - 10;
	props = 'toolbar=0,location=0,directories=0,hotkeys=0,status=0,menubar=0,scrollbars=0	,resizable=0,copyhistory=0,left=' + wleft  + ',top=' + wtop + ',width=' + width + ',height=' + height;
	var uj_b_ablak = window.open(url, winname, props);
	uj_b_ablak.focus();
}

function newwin2(url, width, height, winname)
{
	wleft = (screen.width - width) / 2;
	wtop = (screen.height - height) / 2 - 10;
	props = 'toolbar=0,location=0,directories=0,hotkeys=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,left=' + wleft  + ',top=' + wtop + ',width=' + width + ',height=' + height;
	var uj_b_ablak = window.open(url, winname, props);
	uj_b_ablak.focus();
}

function elem(which)
{
	return document.getElementById(which);
}
