add: var inp = DateTimeShortcuts.calendarInputs[num];    if (inp.value) { var date_parts = inp.value.split('-'); var year = date_parts[0]; var month = parseFloat(date_parts[1]); if (year.match(/\d\d\d\d/) && month >= 1 && month <= 12) { DateTimeShortcuts.calendars[num].drawDate(month, year); } }  
context:     openCalendar: function(num) {        var cal_box = document.getElementById(DateTimeShortcuts.calendarDivName1+num)        var cal_link = document.getElementById(DateTimeShortcuts.calendarLinkName+num)            // Recalculate the clockbox position        // is it left-to-right or right-to-left layout ?        if (getStyle(document.body,'direction')!='rtl') {            cal_box.style.left = findPosX(cal_link) + 17 + 'px';        }        else {            // since style's width is in em, it'd be tough to calculate            // px value of it. let's use an estimated px for now            // TODO: IE returns wrong value for findPosX when in rtl mode            //       (it returns as it was left aligned), needs to be fixed.            cal_box.style.left = findPosX(cal_link) - 180 + 'px';        }        cal_box.style.top = findPosY(cal_link) - 75 + 'px';            cal_box.style.display = 'block';        addEvent(window, 'click', function() { DateTimeShortcuts.dismissCalendar(num); return true; });    },
meta: 5320	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5320/66e45411017a4526670ba2c4e465c3ca45d55602/DateTimeShortcuts.js/buggy/django/contrib/admin/media/js/admin/DateTimeShortcuts.js