function dhtmlLoadScript(url)
{
   var e = document.createElement("script");
   e.src = url;
   e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e); 
}

function ShowHide(targ, n)
{
      var obj;
      for (i = 1; i <= n; i++)
        {
          if (obj = findObj ('leftmenulist'+i))
              obj.parentNode.className = 'cat_price';
        }

      var cn = targ.parentNode.className
      targ.parentNode.className = (cn == "cat_price") ? "cat_price_act" :"cat_price"
}

function findId(idd)
{
    return document.getElementById(idd);
}

function oc(id)
{
  var obj = findObj (id);
  obj.style.display = (obj.style.display=="none") ? "" : "none";
}

function findObj( id )
{
    var x;
    if( !( x = document[ id ] ) && document.all ) x = document.all[ id ];
    if( !x && document.getElementById ) x = document.getElementById( id );
    return x;
}
