cur_size=14;
  druk_tlo=1;
  function rozmiar(si){
    cur_size=si;
    resize();
    }
  function zmniejsz(){
    cur_size--;
   resize();
    }
   function zwieksz(){
    cur_size++;
   resize();
    }
    
  function resize(){
    cobj=document.getElementById('dcalend');
    ctab=cobj.getElementsByTagName('TD');
    for(i=0;i<ctab.length;i++)
      ctab[i].style.fontSize=cur_size+"px";
    ctab=cobj.getElementsByTagName('TH');
    for(i=0;i<ctab.length;i++)
      ctab[i].style.fontSize=cur_size+"px";
    }
  function fontchg(newf){
    cobj=document.getElementById('dcalend');
    ctab=cobj.getElementsByTagName('TD');
    for(i=0;i<ctab.length;i++)
      ctab[i].style.fontFamily=newf;
    ctab=cobj.getElementsByTagName('TH');
    for(i=0;i<ctab.length;i++)
      ctab[i].style.fontFamily=newf;
    }
  function tlochg(obj){
    tlo=obj.checked;
    cobj=document.getElementById('dcalend');
    ctab=cobj.getElementsByTagName('TD');
    for(i=0;i<ctab.length;i++)
      if( tlo ){
        if( ctab[i].className=="holic"){
          ctab[i].style.background="#ff7070";
          ctab[i].style.color="black";
          }
        }
      else{
        ctab[i].style.background="none";
        ctab[i].style.borderWidth="0px";
        if( ctab[i].className=="holic"){
          ctab[i].style.background="none";
          ctab[i].style.color="red";
          }
        }
    ctab=cobj.getElementsByTagName('TH');
    for(i=0;i<ctab.length;i++)
      if( tlo ){
        ctab[i].style.background="#ddddee";
        ctab[i].style.borderWidth="1px";
        }
      else{
        ctab[i].style.background="none";
        ctab[i].style.borderWidth="0px";
        }
    }
    function cal_pr(){
      x=document.getElementById('dt_id');
      if( x.checked ){
        if(!confirm('The calendar is supposed to be printed with colored background. Are you sure that your browser \
background printing is switched to on? If you are not sure or the background is not printed, see \'Help\' for more information.\nDo you want to print?'))
          return;
        }
      cl_help();
      window.print();
      }
    function cl_help(){
      document.getElementById('help').style.display="none";
      }
    function sh_help(){
      document.getElementById('help').style.display="block";
      }
