function collapsexpand(theRow){ thisRow = document.getElementById(theRow).style.display; if (thisRow=='none'){ document.getElementById(theRow).style.display=''; lastOpened = theRow; } else { document.getElementById(theRow).style.display='none'; } } function collapsexpandlist(searchClass) { var els = getElementsByClass(searchClass) ; var elscount = els.length; var i=0; for (i = 0; i < elscount; i++) { thisRow = els[i].style.display; if (thisRow=='none') { els[i].style.display=''; } else { els[i].style.display='none'; } } } function moveAclItem( fromlist, tolist) { if ( fromlist.selectedIndex < 0) { alert( "No item selected"); } else { //add to 'available' list tolist.appendChild(fromlist.options.item(fromlist.selectedIndex)); //remove item fromlist.remove([fromlist.selectedIndex]); } } function acl_genlists() { listbox2list(document.form.readusers , document.form.rouserlist); listbox2list(document.form.writeusers , document.form.rwuserlist); listbox2list(document.form.readgroups , document.form.rogrouplist); listbox2list(document.form.writegroups , document.form.rwgrouplist); } function listbox2list(list , field) { var optionList = list.options; var data = ''; var len = optionList.length; var i=0; for(i=0;i