function OpenWin(which,width,height,name)
{
var scroll = 2;
if (screen.availHeight < height ){
	height = screen.availHeight;
	scroll = 1;
}
if (screen.availWidth < width ){
	width = screen.availWidth;
	scroll = 1;
}

x = (screen.availWidth - width)/2;
y = (screen.availHeight - height)/2;
    if (navigator.appName == "Netscape" &&
parseInt(navigator.appVersion) >= 3)
    {
      okno = window.open(which, name,
"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=0,width=" + width + ",height=" + height)
	  okno.moveTo(x,y);
      okno.focus();
    }
    else if (navigator.appName == "Microsoft Internet Explorer" &&
parseInt (navigator.appVersion) >= 4)
    {
     okno =   window.open(which,name,
"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=0,width=" + width + ",height=" + height);
   okno.moveTo(x,y);
      okno.focus();
    }
        else
        {
   okno = window.open(which,name,
"toolbar=0,location=0,directories=0,status=0,menubar=s0,scrollbars="+scroll+",resizable=0,width=" + width + ",height=" + height);
okno.moveTo(x,y);
      okno.focus();
        }
}

