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("Really delete all questions in this theme?"); } else { return confirm("Really delete selected questions?"); } } if ((action=='save') && (whichQuestions=='marked')) { return confirm("Changes in questions which are not selected, will not be saved. Do your really want to save selected questions only?"); } 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("Do you really want to remove ALL users from this group?"); } else { return confirm("Do you really want to remove all selected users from this group?"); } } return true; } function confirmDeleteTheme(themeName) { return confirm('Really delete theme '+themeName+'?' ); } function confirmDeleteGroup(groupName) { return confirm('Do you really want to remove group '+groupName+'?' ); } function checkAll(fmobj) { var checked = fmobj.allbox.checked; for (var i=0;i