Changing JavaScript function to work with multiple check boxes to accept terms and conditions
<p>I have the below function which works well when there is one product on the page: </p>

<pre><code>&lt;script type="text/javascript"&gt;// &lt;![CDATA[
function confSubmit()
{
if(!document.getElementById("one").checked)
{ 
    alert("Please read and accept the terms and conditions + Warnings in order to sign    up to Woolly Mammoth");
    return false;
}

}
// ]]&gt;&lt;/script&gt;
</code></pre>

<p>The above function shows an error if the check box for the terms and conditions, has not been checked.</p>

<p>Now I have multiple products on the page all with their own checkbox, the problem is if I put a check box next to every product then it always shows the error unless they check the box next to every product.</p>

<p>Can anybody help me edit the function so I can use it on multiple check boxes BUT only 1 box needs to be checked.</p>

<p>The function is called on a paypal button. Surely there is an easier way of doing this rather then renaming the function and changing the ID for every product?</p>

<p>Thanks </p>
