multiple set of check box?
<p>im having a set of multiple check bxes, like one set contain 3 check box share same name another set contain 3 check sharing same name . how can i get the value of these two different set of check box using a single code .</p>

<pre><code>    var form = $('usersurvey');
    checkboxes = form.getInputs('checkbox');
    for(count=0; count&lt; checkboxes.length; count++){
        if(checkboxes[count].checked){
            retValue=true;
            break;
        }
    }
    return retValue;          
}
</code></pre>

<p>
im tried with this code but it fetch all the check boxes , i want only that have the same name, i used prototype.js</p>
