Simple jQuery plugin for checking all checkboxes on a page by a given class name.
<input type="checkbox" id="checkAll" />
<input type="checkbox" class="checkMe" />
<input type="checkbox" class="checkMe" />
<input type="checkbox" class="checkMe" />
<script type="text/javascript">
$('#checkAll').checkAll({
'class' : '.checkMe'
});
</script>