function rozbalovac(elementid) { var element=document.getElementById(elementid); //alert(element); element.style.display=(element.style.display=="block")? "none" : "block"; //element.style.display=(action=="expand")? "block" : "none"; } function confirmQuestionsAction() { var actionSelect=document.getElementById("questionsaction"); var action = actionSelect.options[actionSelect.selectedIndex].value; var whichQuestionsSelect=document.getElementById("whichquestions"); var whichQuestions = whichQuestionsSelect.options[whichQuestionsSelect.selectedIndex].value; if (action=='deletequestions') { // Ask only about deletes if (whichQuestionsSelect.selectedIndex==0) { return confirm("Opravdu chcete odstranit všechny otázky v tomto tématu?"); } else { return confirm("Opravdu chcete odstranit vybrané otázky?"); } } if ((action=='save') && (whichQuestions=='marked')) { return confirm("Úpravy neoznačených otázek nebudou zachovány. Opravdu chcete uložit jen označené otázky?"); } return true; } function confirmUsersAction() { var actionSelect=document.getElementById("usersaction"); var action = actionSelect.options[actionSelect.selectedIndex].value; var whichUsersSelect=document.getElementById("whichusers"); if (action=='deleteusers') { // Ask only about deletes if (whichUsersSelect.selectedIndex==0) { return confirm("Opravdu chcete odebrat všechny uživatele z této skupiny?"); } else { return confirm("Opravdu chcete odebrat vybrané uživatele ze skupiny?"); } } return true; } function confirmDeleteTheme(themeName) { return confirm('Opravdu chcete odstranit téma '+themeName+'?' ); } function confirmDeleteGroup(groupName) { return confirm('Opravdu chcete odstranit skupinu '+groupName+'?' ); } function checkAll(fmobj) { var checked = fmobj.allbox.checked; for (var i=0;i