﻿function old_month() {
	var date = new Date();
	var m = date.getMonth() + 1;
	document.write(m);
	document.write("月（");
	switch(m) {
	case 1:
		document.write("睦月）");
		break;
	case 2:
		document.write("如月）");
		break;
	case 3:
		document.write("弥生）");
		break;
	case 4:
		document.write("卯月）");
		break;
	case 5:
		document.write("皐月）");
		break;
	case 6:
		document.write("水無月）");
		break;
	case 7:
		document.write("文月）");
		break;
	case 8:
		document.write("葉月）");
		break;
	case 9:
		document.write("長月）");
		break;
	case 10:
		document.write("神無月）");
		break;
	case 11:
		document.write("霜月）");
		break;
	case 12:
		document.write("師走）");
		break;
	}
}

function last_update() {
	var update = new Date(document.lastModified);
	var theMonth = update.getMonth() + 1;
	var theDate = update.getDate();
	var theYear = update.getYear();
	if (theYear < 1900) {
		theYear += 1900;
	}
	if(document.lastModified == "") {
		update = new Date();
		theMonth = update.getMonth() + 1;
		theDate = update.getDate();
		theYear = update.getYear();
		if (theYear < 1900) {
			theYear += 1900;
		}
	}
	document.write(theYear + "年" + theMonth + "月" + theDate + "日");
}

function this_year() {
	var date = new Date();
	var theYear = date.getYear();
	if (theYear < 1900) {
		theYear += 1900;
	}
	document.write(theYear);
}

