function o(input) { var o; if (typeof input === "string") o = document.getElementById(input); else if (typeof input === "object") o = input; return o; } // megjelenítés / eltüntetés function show(obj) { o(obj).setAttribute("shown", "true"); } function hide(obj) { o(obj).setAttribute("shown", "false"); } function toggle_show(obj) { o(obj).setAttribute("shown", o(obj).getAttribute("shown") === "false"); } function scroll_enable(on) { document.body.style.overflowY = on ? "scroll" : "hidden"; } function collapse(obj) { o(obj).setAttribute("collapsed", "true"); } function expand(obj) { o(obj).setAttribute("collapsed", "false"); } function toggle_collapse(obj) { o(obj).setAttribute("collapsed", o(obj).getAttribute("collapsed") === "false"); }