var ElsCfg = { ListMenu: { FullControl: {Append: true, Remove: true,}, }, }; function MkHtmlEl(Tag, Attrs) { var El = document.createElement(Tag); if (Attrs) { Object.keys(Attrs).forEach(function(Attr){ El[Attr] = Attrs[Attr]; }); }; El.className += ` ${RndHtmlId(Tag)}`; return El; }; function MkWindow(Attrs) { var Window = MkHtmlEl('div', Attrs); Window.className += ' Window'; Root.appendChild(Window); return Window; }; function MkSelectMenu(Opts, Attrs) { var Menu = MkHtmlEl('div', Attrs); var OptsHtml = ''; Opts.forEach(function(Opt){ OptsHtml += '