Vig,

That's one corner I was thinking about, the other corner was if you wanted to enumerate all your checkboxes, but here's one solution:

1) Add $var as a function parm in your onclick:

code:
$=execute('$$$var.OnClick= "chkAccountDisabled_Click($$var)"')

2) Modify your function declaration like so:

code:
Function chkAccountDisabled_Click($var)

3) Change your message to this:

code:
? "$var checkbox was not checked"

Now when you click on a check box, the caption gets displayed on the console, hope this helps:

-Shawn