dhtmlXCalendar

what’s wrong in IE 6

here is the code:



var mCal1;

window.onload = function () {

        

        

        mCal1 = new dhtmlxCalendarObject(‘mCal1’);

        mCal1.setYearsRange(2000, 2500);

        mCal1.setOnClickHandler(szuldatum1);

        mCal1.draw();

        

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

        mCal2.setYearsRange(2000, 2500);

        mCal2.setOnClickHandler(szuldatum2);

        mCal2.draw();



        

    



    function szuldatum1(date) {

        

     document.getElementById(‘szuldatum1’).value = mCal1.getFormatedDate(null,date );



        document.getElementById(‘mCal1’).style.display = ‘none’;

    }

    

    function szuldatum2(date) {

        

document.getElementById(‘szuldatum2’).value = mCal2.getFormatedDate(null,date );

        document.getElementById(‘mCal2’).style.display = ‘none’;

    }}





function showCalendar(calnev) {

        document.getElementById(calnev).style.display = ‘block’;

    }

    



3













    




object doesn’t support property or method



thank your answer

In case of IE it is unsafe to use the global variable with same name as ID of HTML node ( var mCal1; and  <div id=“mCal1” ) just change one of those names.