function obr(jaki,szer,wys,tytul) {
  var popup=window.open('about:blank','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, fullscreen=no,channelmode=no,width='+szer+ ',height=' +wys+ ',top=100,left=100');
  with(popup.document) {
    open();
    write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2"><title>'+tytul+ '</title></head><body style="margin:0px;padding:0px;border:0px"><img src="'+jaki+ '" style="display:block;" alt="' +tytul+ '" /></body></html>');
    close();
  }
}

 function ustaw(){
  if (window.innerHeight)  document.getElementById("przewijacz").style.height=(window.innerHeight-100)+"px";
 }
  var p=0;//czy podswietlono
  var k=[];
  var PierwszeUruchomienie=1;

  function podsw(i){
/*
      p=(p)?0:1;
      var c=parseInt(i,10);
      if (c===parseInt(i,10))
         var numer=i;
      else
         var numer=i.id.substring(1,3);
      clearTimeout(k[numer]);

      var cKlasa=(p)?"cA":"c";
      var ctKlasa=(p)?"ctA":"ct";
      var cptKlasa=(p)?"cptA":"cpt";
      var iHeight=(p)?22:18;
      var iWidth=(p)?600:550;
      var iSrc=(p)?"i/pasek_tyt_a.jpg":"i/pasek_tyt.jpg";
      function zmienTo(){
          document.getElementById("c"+numer).className=cKlasa;
          document.getElementById("ct"+numer).className=ctKlasa;
          document.getElementById("cpt"+numer).className=cptKlasa;
          document.getElementById("ci"+numer).src=iSrc;
          document.getElementById("ci"+numer).style.width=iWidth;
          document.getElementById("ci"+numer).style.height=iHeight;
      }
      //zmienTo();
      k[numer]=setTimeout(zmienTo,100);
      if (numer==i && PierwszeUruchomienie==1) {p=0;PierwszeUruchomienie=0}
*/
  }
  //podsw(3);

var ok=-1;
if (location.search.length != 0) {
       var get_vars = new Object();
       get_vars.varName = new Array();
       get_vars.varValue = new Array();
       var q_str = location.search.substring(1);
       var temp_var = q_str.split("&");
       for (x=0;x<temp_var.length;x++) {
               parts = temp_var[x].split("=");
               get_vars.varName[x] = parts[0];
               if (isNaN(parseFloat(parts[1]))) {
                       get_vars.varValue[x] = '"' + parts[1] + '"';
               } else get_vars.varValue[x] = parts[1];
               eval(get_vars.varName[x] + "=" + get_vars.varValue[x]);
       }
       //if (ok) podsw(ok);
}
