


var dhtmld = document; 



function getElement(i)
{ 
 var ob = dhtmld.all?dhtmld.all[i]:dhtmld.layers?dhtmld.layers[i]:dhtmld.getElementById(i); 
 return ob; 
} 



function divMng(id,param)
{ 
 var ob = getElement(id); 

 if (ob.clpsd && param=='-') 
   { 
    ob.style.display = 'none'; 
    ob.clpsd = 0; 
   }
 else 
   if (!ob.clpsd && param=='+')
     { 
      getElement(id+'').style.display='none'; 
      getElement(id+'').clpsd = 0; 
      ob.style.display = 'block'; 
      ob.clpsd = 1; 
     } 
}



function ofertapodmzdjecia(miejsce, nowe)
{
 miejsce.src=nowe.src;
}



function akt_data_czas_daj()
{
 var czas  = new Date();
 rok   = czas.getYear();
 mies  = ( ( czas.getMonth() < 10 ) ? "0": "" ) + ( czas.getMonth() + 1 );
 dzien = ( ( czas.getDate()  < 10 ) ? "0": "" ) + ( czas.getDate() );
 godz  = ( ( czas.getHours() < 10 ) ? "0": "" ) + ( czas.getHours() );
 min   = ( ( czas.getMinutes() < 10 ) ? "0": "" ) + ( czas.getMinutes() );
 sek   = ( ( czas.getSeconds() < 10 ) ? "0": "" ) + ( czas.getSeconds() );
 
 return dzien+"_"+mies+"_"+rok+"_"+godz+"_"+min+"_"+sek;
}



function peok(url, width, height, params)
{ 
 aktdata=akt_data_czas_daj();
 maxszer=window.screen.width;
 maxwys=window.screen.height;
 polx=Math.round( (maxszer-width)/2);
 poly=Math.round( (maxwys-height)/2)-20;
 
 if (params=='') params="toolbar=no, scrollbars=auto, directories=no, menubar=no, resizable=no,";
 
 window.open(url,aktdata,params+", top="+poly+", left="+polx+", width="+ width +",height="+ height);
}





function drukuj()
{
 window.print();
}

