Checkbox-reset

Hi,

I managed to generate checkboxes using php. I’ve also added a little function that compares this table with another table and checks if a selection already exists in it. And if it does, the checkboxes are rendered as ‘CHECKED’ and the rest are not. So everything is working fine… BUT… when I click reset, the checkboxes that are pre-checked, do not get ‘reset’…
is there a javascript function anyone can recommend for reset…i’d prefer to use some thing onclick (set all the checkboxes as ‘UNCHECKED’)