Also, please note that nothing happens when a date is selected from the calendar. But when the form is submitted, there is an error thrown at line 1339 of dhtmlxCalendar.js saying Object doesnt support this action.
The code I use for initializing the calendar is
function initCalendar(textInput){
var cal = new dhtmlxCalendarObject(’’+textInput);
cal.setDateFormat("%m/%d/%Y");
cal.setYearsRange(1950, 2100);
cal.draw();
cal.hide();
cal.setSkin(“omega”);
cal.setWeekStartDay(7);
cal.hideTime();
return cal;
}