Bug in displaying certain months

Certain months show the previous month greyed out then a few of its days afterwards.

This makes the calendar pretty much unuseable as some days are unselectable



See img78.imageshack.us/img78/851/17511123qb9.png for a screenshot. March 2008 also has the same problem.



The code i’ve used is very simple:



    mCal = new dhtmlxCalendarObject(‘dhtmlxCalendar’, false, {isYearEditable: true, isMonthEditable : true});

    mCal.loadUserLanguage(‘en-us’);

    mCal.setYearsRange(<?=date("Y")?>, <?=date("Y")+4?>);

    mCal.attachEvent(“onClick”,mSelectDate);

    mCal.options.weekstart=6;

    mCal.draw();

    mCal.setSkin(“yahoolike”);

Bug fixed. Fixed version of dhtmlxcalendar.js, which must solve your problem, attached to post

dhtmlxcalendar.js.zip (12.1 KB)