This event calls user-defined handlers (if there are any) and passes the following parameters:
tree.attachEvent("onBeforeCheck", function(id,state){});
The event returns:
true - allows checking; false - denies checking;