function calender(){
	var date=new Date();
	var Monthdays=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	var Days=new Array("<FONT COLOR=red>日</FONT>","月","火","水","木","金","<FONT COLOR=blue>土</FONT>");
	year=date.getYear();
	today=date.getDate();
	// 年、うるう年の設定
	if(year<2000){year=year+1900;}
	if(((year%4==0)&&(year%100!=0))||(year%400==0)){
		Monthdays[1]=29;
	}
	thisMonthDays=Monthdays[date.getMonth()];
	date.setDate(1);
	Startday=date.getDay();
	// 年・月表示
	document.write("<Table Border=5>");
	document.write("<TR><TH Colspan=7>");
	document.write(year,'年',date.getMonth()+1,'月');
	document.write("</TH></TR>");
	// 曜日の表示
	document.write("<TR>");
	for(i=0;i<7;i++){
		document.write("<TH>",Days[i],"</TH>");
	}
	document.write("</TR>")
	// 日にちの表示
	document.write("<TR>");
	col=0;
	for(i=0;i<Startday;i++){
		document.write("<TD></TD>");
		col++;
	}
	for(i=1;i<=thisMonthDays;i++){
		document.write("<TD ALIGN=Right>");
		document.write("<A href='http://ja.wikipedia.org/wiki/");

		document.write(date.getMonth()+1);
		document.write("%E6%9C%88");
		document.write(i);
		document.write("%E6%97%A5");
		document.write("' target='_blank'>");
		if(i==today){
			document.write("<Font Color=Black><B>");
		}
		else if(col==0){
			document.write("<Font Color=red><B>");
		}
		else if(col==6){
			document.write("<Font Color=blue><B>");
		}
		else{
			;
		}
		document.write(i);
		if(i==today){
			document.write("</B></Font>");
		}
		else if(col==0){
			document.write("</B></Font>");
		}
		else if(col==6){
			document.write("</B></Font>");
		}
		else{
			;
		}
		document.write("</TD>");
		col++;
		if(col==7){
			document.write("</TR>\n<TR>");
			col=0;
		}
	}
	document.write("</Table>");
}
