for (var i in formElement.elements) { 
for (var i = 0; i < formElement.elements.length; i++) { 
WebGUI.Form.toggleAllCheckboxesInForm     = function (formElement, checkboxesName) {        // Get the state to set        var oldState    = WebGUI.Form.toggleAllCheckboxesState[formElement+checkboxesName]        var state       = oldState ? "" : "checked";        for (var i in formElement.elements) {            var input = formElement.elements[i];            if (!/^check/.test(input.type))                continue;            if (checkboxesName && input.name != checkboxesName)                 continue;            input.checked = state;        }        // Update the saved state        WebGUI.Form.toggleAllCheckboxesState[formElement+checkboxesName] = state;    };
3515	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3515/7042ccda9d74d0e2ab82437b46b04ebe25c4c4e1/form.js/buggy/www/extras/yui-webgui/build/form/form.js