This event calls user-defined handlers (if there are any) and passes the following parameters:
tree.attachEvent("onCheck", function(id,state){});