Sample form built in class. You can see the code using your browser's Web Inspector.
The checkbox section includes a 5-line JavaScript program connected to the "Check/uncheck all" box that checks or unchecks all the boxes.