I found a very interesting and useful piece of code at 3DM Design which allows you to select all checkboxes on a webpage. I found this particularly useful for a leads website that a customer of mine uses.

A big shout out goes to Scott at 3DM Design, as it saved us probably 2 - 4 hours of work. Thank you Scott!