
| <SCRIPT>
// fill the month table with column
headings
function day_title(day_name) {document.write('<td align="center" width="35">' + day_name + '</td>'); } // fills the month table with numbers function fill_table(month, month_length) {var day = 1; // begin the new month table document. write('<table border="3" cellspacing="3" cellpadding="3"><tr>;);document.write('<td colspan="7" align="center"><b>' + month + ' ' + year + '</b><tr>'); // column headings day_title("Sun"); day_title("Mon"); day_title("Tue"); day_title("Wed"); day_title("Thu"); day_title("Fri"); day_title("Sat"); // pad cells before first day of month document. write('</tr><tr>') for (var i = 1; i < start_day; i++) { // fill the first week of days for (var i = start_day; i < 8; i++) { document.write('<tr>'); // fill the remaining weeks while (day <= month_length) { document.write('</tr><tr>'); // the first day of the next month start_day = i; </SCRIPT> <SCRIPT> // CHANGE the below variable to the CURRENT YEAR var year = 2001; // first day of the week of the new year var today = new Date("January 1, " + year); var start_day = today. getDay() + 1; // starts with 0fill_table("January",
31); </SCRIPT> |