function unSetCheckboxes(the_form, the_objet) { var elts = document.forms[the_form].elements[the_objet+'[]'] ; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { if (elts[i].checked==0) { elts[i].checked = 1; } } // end for } else { if (elts.checked==0) { elts.checked = 1; } } // end if... else return true; } // end of the 'unSetCheckboxes()' function function verifCheckboxes(the_form, the_objet) { var bool=false; var elts = document.forms[the_form].elements[the_objet+'[]'] ; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { if (elts[i].checked) { bool = true; } } } else { if (elts.checked) { bool = true; } } return bool; } "; print "