On this page, http://treasuretrailkanab.com/reservations.cfm
the client has asked me to add the two sets of checkboxes for smoking y/n and pets y/n
I need an onSubmit validation script
that requires ONE of each set to be checked, not both checked, and not both blank,
so that both smoking and pets have exactly one of the boxes checked for each before the form can be be posted.
I have given the two checkbox fields in each set the same name but different IDs for yes and no. The ID should allow checking for one, both or none.
NOTE: I need to use a new custom onSubmit function, in addition to the current code you see in the page - but I need a separate standalone function, not just modifying the current js, as what is there now is gnerated by coldfusions 'cfform' function and cannot be modified easily.