<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function dsp_calender(month,month_length) {
day=1
document.write("<TABLE BORDER=3 CELLSPACING=3 CELLPADDING=%3><TR>")
document.write("<TD COLSPAN=7 ALIGN=center bgcolor=#ffffe4><B>"+year+"年 "+month+"</B><TR>")
document.write("<TD ALIGN=center WIDTH=35><font color=red><b>日</TD>")
document.write("<TD ALIGN=center WIDTH=35>月</TD>")
document.write("<TD ALIGN=center WIDTH=35>火</TD>")
document.write("<TD ALIGN=center WIDTH=35>水</TD>")
document.write("<TD ALIGN=center WIDTH=35>木</TD>")
document.write("<TD ALIGN=center WIDTH=35>金</TD>")
document.write("<TD ALIGN=center WIDTH=35><font color=blue><b>土</TD>")
document.write("</TR><TR>")
for (var i=1;i<start_day;i++) {
document.write("<TD>")
}
for (var i=start_day;i<8;i++) {
if (i==7)
document.write("<TD ALIGN=center><font color=blue><b>"+day+"</TD>")
else
document.write("<TD ALIGN=center>"+day+"</TD>")
day++
}
document.write("<TR>")
while (day <= month_length) {
for (var i=1;i<=7 && day<=month_length;i++) {
if (i==1)
document.write("<TD ALIGN=center><font color=red><b>"+day+"</TD>")
else if (i==7)
document.write("<TD ALIGN=center><font color=blue><b>"+day+"</TD>")
else
document.write("<TD ALIGN=center>"+day+"</TD>")
day++
}
document.write("</TR><TR>")
start_day=i
}
document.write("</TR></TABLE>")
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
today = new Date();
year = today.getYear();
if (year < 2000)
year = year + 1900;
today= new Date("January 1, "+year)
start_day = today.getDay() + 1
document.write("<TABLE BORDER=0 CELLPADDING=6><TR><TD valign=top>")
dsp_calender("1月",31)
document.write("</TD><TD valign=top>")
if (((year % 4)==0) && ((year % 100)!=0) || ((year % 400)==0)) {
dsp_calender("2月", 29);
}
else {
dsp_calender("2月", 28);
}
document.write("</TD><TD valign=top>")
dsp_calender("3月",31)
document.write("</TD></TR><TR><TD valign=top>")
dsp_calender("4月",30)
document.write("</TD><TD valign=top>")
dsp_calender("5月",31)
document.write("</TD><TD valign=top>")
dsp_calender("6月",30)
document.write("</TD></TR><TR><TD valign=top>")
dsp_calender("7月",31)
document.write("</TD><TD valign=top>")
dsp_calender("8月",31)
document.write("</TD><TD valign=top>")
dsp_calender("9月",30)
document.write("</TD></TR><TR><TD valign=top>")
dsp_calender("10月",31)
document.write("</TD><TD valign=top>")
dsp_calender("11月",30)
document.write("</TD><TD valign=top>")
dsp_calender("12月",31)
document.write("</TD></TR></TABLE>")
//-->
</SCRIPT>
</BODY>
</HTML>
|