function isOldOpera(id) {
 //this function return TRUE for Opera < 6.x
 if (window.opera && window.document.getElementById('inforow'+id).style)
   if (window.document.getElementById('inforow'+id).style.display==null) return true; else return false;
}


//liczba wyswietlanych rekordow na jednej stronie
var lastInfoId=0;

function showInfo(id,scriptName, g,t,p) {
 //chowamy poprzednie info
 if (isOldOpera(id)) window.location.href=scriptName+'.php?g='+g+'&amp;t='+t+'&amp;p='+p+'&amp;k='+id;

 if (lastInfoId!=0) hideInfo(lastInfoId);
 if (lastInfoId==id)
  {
   hideInfo(lastInfoId);
   lastInfoId=0;
   return;
  }
 //pokazujemy aktualne
  document.getElementById("inforow"+id).className='dispblock';
  document.getElementById("symbolrow"+id).className='dispblock';
  document.getElementById("row"+id).className='deshead';
  lastInfoId=id;
}

function hideInfo(id) {
  document.getElementById("inforow"+id).className='dispnone';
  document.getElementById("symbolrow"+id).className='dispnone';
  document.getElementById("row"+id).className='';
}

function popWin2(url, height, width) {
 window.open(url, "", 'left=0,top=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height);
}

function popWin(url, height, width) {
 height+=58;
 width+=17;
 if (height>(screen.height-50)) height=screen.height-50;
 window.open(url, "", 'left=0,top=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height);
}


