  var isIE = (document.all && (navigator.userAgent.indexOf('Opera') == -1)) ? true : false;

  function help(tx)
  {
    window.status = tx;
  }

  function getObj(x)
  {
    if (typeof x != 'string') return x;
    else if (Boolean(document.getElementById))
      return document.getElementById(x);
    else if (Boolean(document.all))
      return eval('document.all.'+x);
    else if (Boolean(docuemtn.ids))
      return eval('document.ids.'+x);
    else
      return null;
  }

  function objGet(x){
    if (typeof x != 'string') return x;
    else if (Boolean(document.getElementById))
      return document.getElementById(x);
    else if (Boolean(document.all))
      return eval('document.all.'+x);
    else if (Boolean(docuemtn.ids))
      return eval('document.ids.'+x);
    else
      return null;
  }

  function skryj(x)
  {
    var obj = getObj(x);
    if (obj && obj.style){
      if (obj.style.display=="none"){
        obj.style.display = "block";
      }
      else{
        obj.style.display = "none";
      }
    }
  }

  function menu2_roz(x){
    var obj = getObj(x+"_content");
    if (obj){
      if (obj.style.display == "none"){
        obj.style.display = "block";
      }
      else{
        obj.style.display = "none";
      }
    }
  }

  function tlac(x,i,s)
  {
   var obj = getObj(x);
   if (obj && obj.style){
     if (i == 1){
       if (s == 'b') obj.style.background="#ebebff";
       if (s == 's') obj.style.background="#ffffeb";
     }
     else{
       if (s == 'b') obj.style.background="#d9d9f0";
       if (s == 's') obj.style.background="#f0f0d9";
     }
   }
  }

  function dosad(kam,co,o)
  {
    var obj = getObj(kam);
    if (obj){
      obj.value = co;
    }

    fs = o;
    while (fs.previousSibling){
      fs = fs.previousSibling;
    }
    fs = fs.nextSibling;
    while (fs){
      fs2 = fs.firstChild;
      while (fs2){
        fs2.style.background = 'none';
        fs2 = fs2.nextSibling;
      }
      fs = fs.nextSibling;
    }
        

    obj = o.firstChild;
    while (obj){
      obj.style.background = '#fafaad';
      obj = obj.nextSibling;
    }

  }
