The following JavaScript function allows you to set the visibility of an HTML element to be visible or invisible based on its "name" attribute. It also allow you to toggle the current visibility.
The following article explains how to create sets of Yes No checkboxes that are mutually exclusive. That is when you check the Yes box the corresponding No box is unchecked.
Using the name attribute the function below can be used to either select all, select none or toggle a number of checkboxes using either buttons or text links.