function OnClickCheckButton()
{
// Determine if checkbox is checked or not.
var box = shell.currentEventTargetBox;
if (box)
{
shell.print("Tristate = " + box.tristate);
shell.print("Toggled = " + box.toggled);
}
}