Check groups of checkboxes based on a common "name" value