function printDate(n) {
	var topweeks = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	var topmonths = new Array("January","February","March","April","May","June","July","August","September","October","November", "December");

	var now = new Date();

	var year = now.getYear();
	var topmonth = topmonths[ now.getMonth() ];
	var day = now.getDate();
	var topweek = topweeks[ now.getDay() ];
	var hour = now.getHours();
	var min = now.getMinutes();
	var sec = now.getSeconds();

	if(year < 2000) { year += 1900; }

	// 数値が1桁の場合、頭に0を付けて2桁で表示する指定
	if(topmonth < 10) { topmonth = "0" + topmonth; }
	if(day < 10) { day = "0" + day; }
	if(hour < 10) { hour = "0" + hour; }
	if(min < 10) { min = "0" + min; }
	if(sec < 10) { sec = "0" + sec; }

	if(n==1){
	document.write(topweek +" , "+ topmonth + " " + day +" , "+ year);
	}
}