
	 noweOkienko = null;
 function galeria(src, w, h){
	 if(window.screen){ aw=screen.availWidth;ah=screen.availHeight; }else{ aw=320; ah=450;
 	}
	 if(noweOkienko==null || noweOkienko.closed){
	  ustawienia=
	  "left=" + (w)/2 + ","	  +"top=" + (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=no,"	  +"menubar=no,"	  +"scrollbars=no,"	  +"resizable=yes"
	  noweOkienko = window.open("",'obrazek',ustawienia);
	 }
	 noweOkienko.document.open();
	 noweOkienko.document.clear();
	 noweOkienko.document.write(
	 "<html><head>\n"
	 +" <Title> --- Galeria ---</title>"
	 +" <SCRIPT>"	 +"function na_dol(){"	 +"new_window = window.resizeTo(width=galeria.width+10  , height=galeria.height+20);"
	 +"}"	 +"</"	 +"SCRIPT>"	 +"</HEAD><BODY topmargin=0 leftmargin=0 onload=na_dol(); BgColor=#ffffff>"
	 +"\n"	 +"\n"	 +"<img name=galeria src=" + src + ">"	 +"");
	 noweOkienko.document.close();
	 noweOkienko.focus();
 	}

//---------------------------------
	 noweOkienko2 = null;
function openW(strona,width_,height_){
		noweOkienko2 = window.open(strona,'strona','width='+width_+',height='+height_+',toolbars=no,resizeble="yes",scrollbars=yes');
		noweOkienko2.focus();
}
//---------------------------------
function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	
	window.top.location.href = gourl;
}