integrate dhtmlxcalendar and fix lot of unstrictnesses.