function checkAll (id, checked) { var el = document.getElementById(id); for (var i = 0; i < el.elements.length; i++) { if (el.elements[i].disabled==false) { el.elements[i].checked = checked; } } } function addFileField() { var f = document.createElement("input"); f.type = "file"; f.name = "attachments[]"; f.size = 30; p = document.getElementById("attachments_p"); p.appendChild(document.createElement("br")); p.appendChild(f); } function showTab(name) { var f = $$('div#content .tab-content'); for(var i=0; i 0) { Element.show('ajax-indicator'); } }, onComplete: function(){ if ($('ajax-indicator') && Ajax.activeRequestCount == 0) { Element.hide('ajax-indicator'); } } });