dhtmlxcalendar and attachEvent is not a function

Hi, i have dhtmlxcalendar.js version v.1.0 build 80111 but after this source code:



mCal.attachEvent(“onClick”,mSelectDate);



i have this error message:



mCal.attachEvent is not a function.



please, where is the problem ? How can I setup different events for left and for right calendar in dual mode.



thanks!



Ivan

For single calendar

mCal.setOnClickHandler(…
or
mCal.attachEvent(“onClick”,mSelectDate);


For double calendar

calendar.leftCalendar.setOnClickHandler(…
calendar.rightCalendar.setOnClickHandler(…
or
mCal.rightCalendar.attachEvent(“onClick”,mSelectDate);

mCal.leftCalendar.attachEvent(“onClick”,mSelectDate);