rem: var cancel_p = quickElement('p', cal_box, '', 'class', 'calendar-cancel'); 
add: var cancel_p = quickElement('p', cal_box, ''); cancel_p.className = 'calendar-cancel'; 
context:     addCalendar: function(inp) {        var num = DateTimeShortcuts.calendars.length;        DateTimeShortcuts.calendarInputs[num] = inp;        // Shortcut links (calendar icon and "Today" link)        var shortcuts_span = document.createElement('span');        inp.parentNode.insertBefore(shortcuts_span, inp.nextSibling);        var today_link = document.createElement('a');        today_link.setAttribute('href', 'javascript:DateTimeShortcuts.handleCalendarQuickLink(' + num + ', 0);');        today_link.appendChild(document.createTextNode('Today'));        var cal_link = document.createElement('a');        cal_link.setAttribute('href', 'javascript:DateTimeShortcuts.openCalendar(' + num + ');');        quickElement('img', cal_link, '', 'src', DateTimeShortcuts.admin_media_prefix + 'img/admin/icon_calendar.gif', 'alt', 'Calendar');        shortcuts_span.appendChild(document.createTextNode('\240'));        shortcuts_span.appendChild(today_link);        shortcuts_span.appendChild(document.createTextNode('\240|\240'));        shortcuts_span.appendChild(cal_link);        // Create calendarbox div.        //        // Markup looks like:        //        // <div id="calendarbox3" class="calendarbox module">        //     <h2>        //           <a href="#" class="link-previous">&lsaquo;</a>        //           <a href="#" class="link-next">&rsaquo;</a> February 2003        //     </h2>        //     <div class="calendar" id="calendarin3">        //         <!-- (cal) -->        //     </div>        //     <div class="calendar-shortcuts">        //          <a href="#">Yesterday</a> | <a href="#">Today</a> | <a href="#">Tomorrow</a>        //     </div>        //     <p class="calendar-cancel"><a href="#">Cancel</a></p>        // </div>        var cal_box = document.createElement('div');        cal_box.style.display = 'none';        cal_box.style.position = 'absolute';        cal_box.style.left = findPosX(cal_link) + 17 + 'px';        cal_box.style.top = findPosY(cal_link) - 75 + 'px';        cal_box.className = 'calendarbox module';        cal_box.setAttribute('id', DateTimeShortcuts.calendarDivName1 + num);        document.body.appendChild(cal_box);        addEvent(cal_box, 'click', DateTimeShortcuts.cancelEventPropagation);        // next-prev links        var cal_nav = quickElement('div', cal_box, '');        quickElement('a', cal_nav, '<', 'class', 'calendarnav-previous', 'href', 'javascript:DateTimeShortcuts.drawPrev('+num+');');        quickElement('a', cal_nav, '>', 'class', 'calendarnav-next',     'href', 'javascript:DateTimeShortcuts.drawNext('+num+');');        cal_box.appendChild(cal_nav);        // main box        var cal_main = quickElement('div', cal_box, '', 'id', DateTimeShortcuts.calendarDivName2 + num);        cal_main.className = 'calendar';        DateTimeShortcuts.calendars[num] = new Calendar(DateTimeShortcuts.calendarDivName2 + num, DateTimeShortcuts.handleCalendarCallback(num));        DateTimeShortcuts.calendars[num].drawCurrent();        // calendar shortcuts        var shortcuts = quickElement('div', cal_box, '', 'class', 'calendar-shortcuts');        quickElement('a', shortcuts, 'Yesterday', 'href', 'javascript:DateTimeShortcuts.handleCalendarQuickLink(' + num + ', -1);');        shortcuts.appendChild(document.createTextNode('\240|\240'));        quickElement('a', shortcuts, 'Today', 'href', 'javascript:DateTimeShortcuts.handleCalendarQuickLink(' + num + ', 0);');        shortcuts.appendChild(document.createTextNode('\240|\240'));        quickElement('a', shortcuts, 'Tomorrow', 'href', 'javascript:DateTimeShortcuts.handleCalendarQuickLink(' + num + ', +1);');        // cancel bar        var cancel_p = quickElement('p', cal_box, '', 'class', 'calendar-cancel');        quickElement('a', cancel_p, 'Cancel', 'href', 'javascript:DateTimeShortcuts.dismissCalendar(' + num + ');');    },
meta: 4610	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4610/d8b83674940282c082bb3d2fce3f19bfd1589988/DateTimeShortcuts.js/clean/django/contrib/admin/media/js/admin/DateTimeShortcuts.js