rem: quickElement('td', tableRow, ' ',  'bgcolor','#f3f3f3'); 
add: var _cell = quickElement('td', tableRow, ' '); _cell.style.backgroundColor = '#f3f3f3'; 
context:     draw: function(month, year, div_id, callback) { // month = 1-12, year = 1-9999        month = parseInt(month);        year = parseInt(year);        var calDiv = document.getElementById(div_id);        removeChildren(calDiv);        var calTable = document.createElement('table');        quickElement('caption', calTable, CalendarNamespace.monthsOfYear[month-1] + ' ' + year);        var tableBody = quickElement('tbody', calTable);        // Draw days-of-week header        var tableRow = quickElement('tr', tableBody);        for (var i = 0; i < 7; i++) {            quickElement('th', tableRow, CalendarNamespace.daysOfWeek[i]);        }        var startingPos = new Date(year, month-1, 1).getDay();        var days = CalendarNamespace.getDaysInMonth(month, year);        // Draw blanks before first of month        tableRow = quickElement('tr', tableBody);        for (var i = 0; i < startingPos; i++) {            quickElement('td', tableRow, ' ',  'bgcolor','#f3f3f3');        }        // Draw days of month        var currentDay = 1;        for (var i = startingPos; currentDay <= days; i++) {            if (i%7 == 0 && currentDay != 1) {                tableRow = quickElement('tr', tableBody);            }            var cell = quickElement('td', tableRow, '');            quickElement('a', cell, currentDay, 'href', 'javascript:void(' + callback + '('+year+','+month+','+currentDay+'));');            currentDay++;        }        // Draw blanks after end of month (optional, but makes for valid code)        while (tableRow.childNodes.length < 7) {            quickElement('td', tableRow, ' ',  'bgcolor','#f3f3f3');        }        calDiv.appendChild(calTable);    }
meta: 4610	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4610/d8b83674940282c082bb3d2fce3f19bfd1589988/calendar.js/buggy/django/contrib/admin/media/js/calendar.js