//start
function openwin(l, w, h, t, o) {
	t = "width="+w+",height="+h+",scrollbars="+((t=='tak'||t==1)?"yes":"no")+",resizable=yes,toolbar=no,userbar=no,location=no,status=no,menubar=no,screenX=100,screenY=100";
    
	if(o == undefined)
		o = "new_window";
	eval(o+'=open("'+l+'", "'+o+'", t)');
	if(eval(o)!=null) try{ eval(o+'.focus();'); } catch(e){};
	}

//end 



noweOkienko = null;
function link(src, w, h){
  if(window.screen){
    aw=screen.availWidth;
    ah=screen.availHeight;
  }else{
    aw=640;
    ah=450;
  }
  if(noweOkienko==null || noweOkienko.closed){
    ustawienia=
     "left=" + (aw-w)/2 + ","
    +"top=" + (ah-h)/2 + ","
    +"screenX=" + (aw-w)/2 + ","
    +"screenY=" + (ah-h)/2 + ","
    +"width=" + w + ","
    +"height=" + h + ","
    +"innerWidth=" + w + ","
    +"innerHeight=" + h + ","
    +"toolbar=no,"
    +"location=no,"
    +"directories=no,"
    +"status=yes,"
    +"menubar=no,"
    +"scrollbars=no,"
    +"resizable=no"
    noweOkienko = window.open(src,'nowe_okienko',ustawienia);
  }
  //noweOkienko.document.open("index.html");
  //noweOkienko.document.clear();
  //noweOkienko.document.write(index.html);

  //noweOkienko.document.close();
  noweOkienko.focus();
}



		    

