I don't get it. Regardless of which checkbox is checked, your psuedo-code would perform the same action since there is only one action in the loop. That, and correct me if I am wrong, but I don't think checkbox has a value property.

What I think you need to do is to check the checkbox.checked property on each one and perform the specific action accordingly.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.