
   var menu_global_id = "";

   function ShowItem (id)
   {
      document.getElementById(id).style.display = "block";
   }

   function HideItem (id)
   {
      if (menu_global_id != id)
         document.getElementById(id).style.display = "none";
   }

   function FixItem (obj)
   {
      obj.style.display = "block";
      menu_global_id = obj.id;
   }

   function RelItem (obj)
   {
      menu_global_id = null;
      HideItem (obj.id);
   }


   function DelConfirm (ID, Action)
   {
      if (confirm ("Удалить запись ?")) document.location.href = Action + "?id=" + ID;
      return false;
   }
