function VsbMonthcld() { var _this = this; var linkcount = 0; linkdays = new Array(); monthdays = new Array(31,28,31,30,31,30,31,31,30,31,30,31); todayDate = new Date(); thisday = todayDate.getDay(); thismonth = todayDate.getMonth(); thisdate = todayDate.getDate(); thisyear = todayDate.getYear(); thisyear = thisyear % 100; thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear)); if(((thisyear % 4 == 0) && !(thisyear % 100 == 0)) || (thisyear % 400 == 0)) monthdays[1]++; startspaces = thisdate; while(startspaces > 7) startspaces -= 7; startspaces = thisday - startspaces + 1; if(startspaces < 0) startspaces += 7; _this.getYear = function() { return thisyear; } _this.getMonth = function() { return thismonth; } _this._getWriteDateHtml = function(currentstyle,daystyle,bordercolor) { for (s=0;s "); } count=1; while (count <= monthdays[thismonth]) { for(b = startspaces;b<7;b++) { linktrue=false; if(count==thisdate) { var style=currentstyle; document.write(""); } else { var style=daystyle; document.write(""); } if(count <= monthdays[thismonth]) { document.write(count); } else { document.write(" "); } document.write(""); count++; } document.write(""); document.write(""); startspaces=0; } } }