Thank you for investigating. What I want to do is to count how many yes's and no's a user has checked because out of x answers everybody is only allowed n-times yes and m-times no. The way I did it was to modify checkconditions as it is already called when onclick occurs.
My program-logic works except that it is called twice per click which results in bad behavior when the n-th or m-th click is performed. I store the IDs of the answers in two arrays (one for yes and one for no) and update them on each click.
Is there any better place to put this functionality?
BTW I am using Limesurvey Version 1.71+ (5638).
The bad hack, err workaround

would be to alternate a variable and use it to ignore each second call. But as soon as the problem is fixed or a browser doesn't show this behavior everything is broken again because then every second click is not counted...