I downloaded the latest DHTMLX Suite 3.0 professional, you have a problem in your code when you set the date format of the calendar using setDateFormat();
case "%n": return date.getMonth()+1;
this should probably be:
case "%n": return val.getMonth()+1;
FYI, for anybody else using the %n format code and it not working.