Object names and values
This example depicts how to get object names and values dynamically within Javascript.
When the first checkbox is clicked, it gives the name and value of the first
label within the form. Note that the first field is element #3.