for (i = 0; i < document.checks.user.length; i++) //for all check boxes { if (document.checks.user[i].checked == true ) { document.checks.submit()
I'd probably iterate across document.checks.elements, looking for .type == 'checkbox'.