
noweOkno = null;
function powieksz2(src, w, h, tytul){
  if(window.screen){
    aw=screen.availWidth;
    ah=screen.availHeight;
  }else{
    aw=640;
    ah=450;
  }
  if (noweOkno!=null&&(!noweOkno.closed))
  {
  	noweOkno.window.close();
  }
  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 + ","
    +"innerWidth=" + w + ","
    +"innerHeight=" + h + ","
    +"toolbar=no,"
    +"location=no,"
    +"directories=no,"
    +"status=no,"
    +"menubar=no,"
    +"scrollbars=no,"
    +"resizable=no"
    noweOkno = window.open(src,'obrazek',ustawienia);
  }

}
function powieksz(src, w, h, tytul){
  if(window.screen){
    aw=screen.availWidth;
    ah=screen.availHeight;
  }else{
    aw=640;
    ah=450;
  }
  if (noweOkno!=null&&(!noweOkno.closed))
  {
  	noweOkno.window.close();
  }
  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 + ","
    +"innerWidth=" + w + ","
    +"innerHeight=" + h + ","
    +"toolbar=no,"
    +"location=no,"
    +"directories=no,"
    +"status=no,"
    +"menubar=no,"
    +"scrollbars=no,"
    +"resizable=no"
    noweOkno = window.open('','obrazek',ustawienia);
  }
  noweOkno.document.open();
  noweOkno.document.clear();
  noweOkno.document.write(
	"<HTML><HEAD>\n"
	+"<TITLE>" + tytul + "</TITLE>\n"
	+"<SCRIPT LANGUAGE='javascript'>\n"
	+"<!-- Original:  Gilbert Davis -->\n"
	+"<!-- Begin\n"
	+"function loadImages() {\n"
	+"if (document.getElementById) {  // DOM3 = IE5, NS6\n"
	+"document.getElementById('hidepage').style.visibility = 'hidden';\n"
	+"}\n"
	+"else {\n"
	+"if (document.layers) {  // Netscape 4\n"
	+"document.hidepage.visibility = 'hidden';\n"
	+"}\n"
	+"else {  // IE 4\n"
	+"document.all.hidepage.style.visibility = 'hidden';\n"
	+"      }\n"
	+"   }\n"
	+"}\n"
	+"//--\>"
	+"</script>\n"
	+"</HEAD><BODY BGCOLOR='#FFFFFF' OnLoad='loadImages()'  marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n"
	+"\n"
	+"\n"
	+"<div id='hidepage' style='position: absolute; left:5px; top:5px; height: 100%; width: 100%;'>\n"
	+"<table width='100%'>\n"
	+"	<tr>\n"
	+"		<td>Loading... Please wait.</td>\n"
	+"	</tr>\n"
	+"</table>\n"
	+"</div>\n"
	+"<img src='" + src +"'>\n"
	+"\n"
	+"\n"
  );
  noweOkno.document.close();
  noweOkno.focus();
}
