Hi,<BR>I have this very long page with many groups of checkboxes. I want to be able to click a certain header checkbox and only have those associated checkboxes checked. My problem is that all these groups of checkboxes are part of the same form. When I use this code, all the checkboxes on the page are checked. &#039Cat&#039 is the name of a group of checkboxes.<BR><BR>&#060;script language="javascript"&#062;<BR>function checkdAll(cat) {<BR>var form = window.document.forms[0]<BR>for (var i = 0; i &#060; document.form.elements.length; i++) {<BR> var e = document.form.elements[i];<BR> if (e.name = cat)<BR> e.checked = !e.checked;<BR>}<BR>}<BR>&#060;/script&#062;<BR><BR>How do I define a group of checkboxes within the same form?<BR><BR>Thanks<BR>Howard<BR>