The following events are available in dhtmlxCalendar:
The user can add any user-defined handler to any of the available events. To do this, the user can use attachEvent() method that sets the function called when specified event occurs. It has the following parameters:
mCal.attachEvent(evName, evHandler);
Note: the names of the events are case-sensitive.