Why this code is not working in ie9?

In jsp(using jsf tag libraries):

onfocus=“javascript:return dhtmlCalendar(this.name);”

and the script is:
function dhtmlCalendar(formField) {

var mCal = new dhtmlXCalendarObject(formField);


return true;


Instead of opening the calendar for picking the date on single click it opens in double click and focus event also not works but it open on single click in mozilla firefox and chrome.
PLease provide the solution.


Calendar will add all needed events automaticaly.
Just init it, using code like this:

var myCalendar = new dhtmlXCalendarObject(“inputId”);