flip checkboxes by script
I'm trying to create a system of two checkboxes, that interact with each other in the following way:
Exactly one checkbox must always be selected "checked". Both checkboxes must be seen.
My construction works, but from time to time the system gets out of rythm. Then both checkboxes
are unchecked or checked at the same time.
I'm not so practised in scripting. Is there a method that is more secure ?