>This could work ok if you have no other items on form with name like 'XXXXXXX{number}'. More quick way will be only, as I mentioned, if you put all checkboxes itno separate form where no other controls exist, or name all checkboxes with the same name when ID is like 'MessageXXX' or vise versa. This way you will be able to access to each checkbox as to the array, so no scan of ALL controls, just checkboxes. I don't know if following will work (do not remember if reference theForm.CHECKMARKS is correct), but you can try it (I assumed you used ID 'CHECKMARKS' for all checkboxes and name like 'MessageXXX':
Yes, that naming is unique to identify our checkboxes. We will also add a unique ID in front of the field name in order to make them more unique. So, we'll continue to use that approach. Otherwise, we'll have to hold a javascript array value somewhere.