var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
  var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
  var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

  function sh(id)
  {
   s=document.getElementById(id);
   s.style.display=='none'?s.style.display='block':s.style.display='none';
  }

  function wndopen(name,widthWnd,heightWnd)
        {
          var height=0;
          var width=0;
          width = screen.width
          height = screen.height

          if (width > 0 && height > 0){xc=width/2-widthWnd/2;yc=height/2-heightWnd/2;}
          else{xc=0;yc=0;}
          window.open(name,"blank",'width='+widthWnd+',height='+heightWnd+',menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,left='+xc+',top='+yc);
        }
function treeExpand(oObj,dr, trname,num) {
        
        tr = document.getElementById(trname);
        im = document.getElementById(dr);
        if (tr.style.display == 'block')
          {
            d = 'none';
            i = '/i/tr_o.gif';
            eval('document.f1.c_arr'+num+'.value=0;');
          }
        else
          {
            d = 'block';
            i = '/i/tr_c.gif';
            eval('document.f1.c_arr'+num+'.value=1;');
          }
          tr.style.display = d;
          im.src = i;

        return true;
}
 function vis(elm)
  {
   d=document.getElementById(elm).style;
   if(d.display=='none')d.display='block'; else d.display='none';
  }

