
 var ie=document.all;
 var ns=!document.all;
 var lastvisible=null;

 function getElement(obj)
  {
   if (ie)
    return document.all[obj];
   else 
    if (ns)
      return document.getElementById(obj);
  }

 function setColor(obj,color)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.color=color;
  }

 function markElement(obj)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.color='red';
  }

 function unMarkElement(obj)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.color='#553D1E';
  }

 function showElement(obj)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.display='block';
  }

 function hideElement(obj)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.display='none';
  }

 function hideshow(obj)
  {
   o=getElement(obj);
   if (o!=null)
    o.style.display=(o.style.display=='none')?'block':'none';
  }

 function showone(obj)
  {
   if (lastvisible!=null)
    hideElement(lastvisible);
   lastvisible=obj;
   showElement(obj);
  }

 function rdelete(param)
  {
   return confirm('Czy na pewno chcesz usun±æ '+param+'.');
  }
