function checkAll(field) // Sets all checkboxes in a form to be checked // Just pass the function the name of the field that needs setting // e.g. onClick=”checkAll(document.form.checkboxName);” { if (typeof(field.length) == “undefined”) { field.checked = true ; addToMutationsList(field); }