<!--

noweokno=null;

function winopen(plik, w, h, scroll) {
if(window.screen) {
  aw=screen.availWidth;
  ah=screen.availHeight;
}else{
  aw=640;
  ah=450;
}if(noweokno==null || noweokno.closed){
 ustawienia=
 "left="+(aw-w)/2+","
 +"top="+(ah-h)/2+","
 +"screenX="+(aw-w)/2+","
 +"screenY="+(ah-h)/2+","
 +"width="+w+","
 +"height="+h+","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=np,"
 +"menubar=no,"
 +"scrollbars="+scroll+","
 +"resizable=no"
 noweokno=window.open(plik,'nowe',ustawienia);
 noweokno.focus();
}else{
 noweokno.close();
  ustawienia=
 "left="+(aw-w)/2+","
 +"top="+(ah-h)/2+","
 +"screenX="+(aw-w)/2+","
 +"screenY="+(ah-h)/2+","
 +"width="+w+","
 +"height="+h+","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=np,"
 +"menubar=no,"
 +"scrollbars="+scroll+","
 +"resizable=no"
 noweokno=window.open(plik,'nowe',ustawienia);
 noweokno.focus();
}
}

function winopen_resizable(plik, w, h, scroll) {
if(window.screen) {
  aw=screen.availWidth;
  ah=screen.availHeight;
}else{
  aw=640;
  ah=450;
}if(noweokno==null || noweokno.closed){
 ustawienia= "left="+(aw-w)/2+"," +"top="+(ah-h)/2+"," +"screenX="+(aw-w)/2+"," +"screenY="+(ah-h)/2+"," +"width="+w+"," +"height="+h+"," +"toolbar=no," +"location=no," +"directories=no," +"status=np," +"menubar=no," +"scrollbars="+scroll+"," +"resizable=yes"
 noweokno=window.open(plik,'nowe',ustawienia);
 noweokno.focus();
}else{
 noweokno.close();
 ustawienia= "left="+(aw-w)/2+"," +"top="+(ah-h)/2+"," +"screenX="+(aw-w)/2+"," +"screenY="+(ah-h)/2+"," +"width="+w+"," +"height="+h+"," +"toolbar=no," +"location=no," +"directories=no," +"status=np," +"menubar=no," +"scrollbars="+scroll+"," +"resizable=yes"
 noweokno=window.open(plik,'nowe',ustawienia);
 noweokno.focus();
}
}

function multiwinopen(plik, nazwa, w, h, scroll) {
if(window.screen) {
  aw=screen.availWidth;
  ah=screen.availHeight;
}
else{
  aw=640;
  ah=450;
}
 ustawienia=
 "left="+(aw-w)/2+","
 +"top="+(ah-h)/2+","
 +"screenX="+(aw-w)/2+","
 +"screenY="+(ah-h)/2+","
 +"width="+w+","
 +"height="+h+","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=np,"
 +"menubar=no,"
 +"scrollbars="+scroll+","
 +"resizable=no";
 window.open(plik,nazwa,ustawienia);
}

function NewCenterWindow(URL,_width,_height) {
  yes = 1;
  no = 0;
  winName = '';

  _fullscreen = no;
  _toolbar = no;
  _location = no;
  _directories = no;
  _menubar = no;
  _status = no;
  _scrolling = no;
  _scrollbars = no;
  _resizable = no;

  _top = screen.availHeight;
  _left = screen.availWidth;

  _top = (_top-_height)/2;
  _left = (_left-_width)/2;

  _features = "'fullscreen=" + _fullscreen + ",toolbar=" + _toolbar + ",location=" + _location + ",directories=" + _directories + ",menubar=" + _menubar + ",status=" + _status + ",scrolling=" + _scrolling + ",scrollbars=" + _scrollbars + ",resizable=" + _resizable + ",width=" + _width + ",height=" + _height + ",top=" + _top + ",left=" + _left + "'";
  window.open(URL,winName,_features);
}



//-->
