Required library edition:
Required library file: dhtmlxcalendar.js
attaches any user-defined event handler to available events
calendar.attachEvent(evName, evHandler);
Several handlers can be attached to one and the same event, and all of them will be executed.
Note: the names of the events are case-insensitive.