function	Calender(){
	monstr	=	new	Array();
	yostr	=	new	Array();
/*----------------*
	*	設定はここから	*
	*----------------*/
/*
	var	clfont					=	"sans-serif";	//	フォントの種類（全体共通）
*/

	var	frbgcolor	=	"#ccddff";			//	外枠の背景色
	var	frborder	=	5;							//	外枠の幅
	var	monfnsize	=	"10pt";				//	月のフォントサイズ
	var	frfncolor	=	"#ffffff";				//	月の文字色
	var	inbgcolor	=	"#ffffff";				//	日付部の背景色
	var	yobgcolor	=	"#ffffee";			//	曜日部の背景色
	var	tdbgcolor	=	"#ffeeee";					//	本日の背景色
	var	dwidth	=	27;												//	日付・曜日欄の幅
	var	dheight	=	10;												//	日付・曜日欄の高さ
	var	dayfnsize	=	"9pt";									//	日付と曜日のフォントサイズ
	var	dayfncolor	=	"#999999";					//	平日の文字色（曜日・日付共通）
	var	kdfncolor	=	"#ff9999";					//	日曜・休日の文字色（曜日・日付共通）
	var	ndstr	=	"・";										//	日付なし欄に出す文字
	var	ndfncolor	=	"#cccccc";					//	日付なし欄の文字色

//	月の表示文字
	monstr[0]	=	"1月";			//		1月
	monstr[1]	=	"2月";			//		2月
	monstr[2]	=	"3月";			//		3月
	monstr[3]	=	"4月";			//		4月
	monstr[4]	=	"5月";			//		5月
	monstr[5]	=	"6月";			//		6月
	monstr[6]	=	"7月";			//		7月
	monstr[7]	=	"8月";			//		8月
	monstr[8]	=	"9月";			//		9月
	monstr[9]	=	"10月";			//	10月
	monstr[10]	=	"11月";		//	11月
	monstr[11]	=	"12月";		//	12月

//	曜日の表示文字
	yostr[0]	=	"日";		//	日曜
	yostr[1]	=	"月";		//	月曜
	yostr[2]	=	"火";		//	火曜
	yostr[3]	=	"水";		//	水曜
	yostr[4]	=	"木";		//	木曜
	yostr[5]	=	"金";		//	金曜
	yostr[6]	=	"土";		//	土曜

/*----------------*
*	設定はここまで	*
*----------------*/
//for	test
	var	test	=	0;	//	1:testmode	on
	var	testyear	=	2003;		//	year	for	test
	var	testmonth	=	9;				//	month	for	test
	var	testday	=	1;						//	day	for	test
//
	maxday	=	new	Array(31,28,31,30,31,30,31,31,30,31,30,31);
	var	date	=	new	Date();
	if	(test	==	1)	{
		date.setYear(testyear);
		date.setMonth(testmonth-1);
		date.setDate(testday);
	}
	var	year	=	date.getFullYear();
	var	month	=	date.getMonth()	+	1;
	var	today	=	date.getDate();
	if	((year	%	4	==	0	&&	year	%	100	!=	0)	||	year	%	400	==	0)	{
		maxday[1]++;
	}
	date.setDate(1);
	var	yo1	=	date.getDay();
	var	flag	=	0;
	var	daycnt	=	1;
	var	moncnt	=	0;
	var	yasumi,	syuku,	furi,	furi2;
	document.write('<table class="calender" border="0" cellspacing="0">');
	document.write('<caption>◆<span>'	+	year	+	"年"	+	month	+	'月のお休み</span>◆</caption>');
//	曜日欄
	document.write('<tr>');
	for	(yo	=	0;	yo	<	7;	yo++)	{
		if	(yo	==	0)	{
			document.write('<th	class="holiday">');
		}
		else	{
			document.write('<th>');
		}
		document.write(yostr[yo]	+	"</td>");
	}
	document.write("</tr>");
	while	(flag	<	2)	{
		document.write('<tr>');
		for	(yo	=	0;	yo	<	7;	yo++)	{
			document.write('<td');
			if	(flag	==	0	&&	yo1	==	yo)	{	//	1日
				flag	=	1;
			}
			if	(flag	==	1)	{	//	日付あり
				yasumi	=	0;
				syuku	=	0;
				//	月曜に関する処理	(Happy	Mondayと振替休日)
				if	(yo	==	1)	{
					if	(furi	==	1)	{
						yasumi	=	1;
						furi	=	0;
					}
					if	(++moncnt	==	2)	{	//	第2月曜
						if	(month	==	1)	{	//	1月	成人の日
							syuku	=	1;
						}
						if	(month	==	10)	{	//	10月	体育の日
							syuku	=	1;
						}
					}
					if	(moncnt	==	3)	{		//	第3月曜
						if	(year	>=	2003	&&	month	==	7)	{	//	7月	海の日	(2003〜)
							syuku	=	1;
						}
						if	(year	>=	2003	&&	month	==	9)	{		//	9月	敬老の日	(2003〜)
							syuku	=	1;
						}
					}
				}
				//	Happy	Monday以外の祝日に関する処理
				if	(month	==	1	&&	daycnt	==	1)	{	//		1月	1日	元日
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	2)	{	//		1月	2日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	3)	{	//		1月	3日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	4)	{	//		1月	4日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	2	&&	daycnt	==	11)	{	//		2月11日	建国記念の日
					syuku	=	1;
				}
				if	(month	==	3)	{	//	春分の日
					if	(daycnt	==	Math.floor(20.8431+0.242194*(year-1980))-Math.floor((year-1980)/4))	{
										syuku	=	1;
					}
				}
				if	(month	==	4	&&	daycnt	==	29)	{	//		4月29日	みどりの日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	3)	{	//		5月	3日	憲法記念日
					syuku	=	1;
					if	(yo	==	6){
						furi2	=	1;
					}
				}
				if	(month	==	5	&&	daycnt	==	4)	{	//		5月	4日	国民の休日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	5)	{	//		5月	5日	こどもの日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	6)	{	//		5月	6日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	6	&&	furi2	==	1)	{	//		5月	5日	振替休日（5月3日が土曜日の時）
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	13)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	14)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	15)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	16)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	17)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	9)	{	//	秋分の日
					if	(daycnt	==	Math.floor(23.2488+0.242194*(year-1980))-Math.floor((year-1980)/4))	{
						syuku	=	1;
					}
				}
				if	(month	==	11	&&	daycnt	==	3)	{	//	11月	3日	文化の日
					syuku	=	1;
				}
				if	(month	==	11	&&	daycnt	==	23)	{	//	11月23日	勤労感謝の日
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	23)	{	//	12月23日	天皇誕生日	ポスカショップ営業日
					syuku	=	0;
				}
				if	(month	==	12	&&	daycnt	==	29)	{	//	12月29日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	30)	{	//	12月30日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	31)	{	//	12月31日	ポスカショップ年末の休み
					syuku	=	1;
				}
				if	(year	<	2003	&&	month	==	7	&&	daycnt	==	20)	{	//	7月20日	海の日	(〜2002)
					syuku	=	1;
				}
				if	(year	<	2003	&&	month	==	9	&&	daycnt	==	15)	{	//		9月15日	敬老の日	(〜2002)
					syuku	=	1;
				}
				if	(syuku	==	1)	{
					yasumi	=	1;
				}
				//	日曜に関する処理
				if	(yo	==	0)	{
					yasumi	=	1;
					if	(month	==	12	&&	daycnt	==	13)	{	//	12月13日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(month	==	12	&&	daycnt	==	20)	{	//	12月20日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(month	==	12	&&	daycnt	==	27)	{	//	12月27日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(syuku	==	1)	{
						furi	=	1;
					}
				}
				if	(yasumi	==	1)	{
					if	(daycnt	==	today)	{
						document.write(' id="today"');	//	本日の背景設定
					}
					document.write(' class="holiday">'	+	daycnt);
				}
				else	{
					if	(daycnt	==	today)	{
						document.write(' id="today"');	//	本日の背景設定
					}
					document.write('>'	+	daycnt);
				}
				if	(++daycnt	>	maxday[month	-	1])	{	//	最終日
					var	yo2	=	yo	+	1;
					if	(yo2	==	7){
						yo2 = 0;
					}
					flag	=	2;
				}
			}
			else	{	//	日付なし
				document.write('>'	+	ndstr);
			}
			document.write("</td>");
		}
		document.write("</tr>");
	}
	document.write("</table>");
//翌月
	if	(	month	==	12	){
		year	=	year	+	1;
		month	=	1;
	}
	else{
		month	=	month	+	1;
	}
	if	((year	%	4	==	0	&&	year	%	100	!=	0)	||	year	%	400	==	0)	{
		maxday[1]++;
	}
	date.setDate(1);
	var	flag	=	0;
	var	daycnt	=	1;
	var	moncnt	=	0;
	var	yasumi,	syuku,	furi;
	document.write('<table class="calender" border="0" cellspacing="0">');
	document.write('<caption>◆<span>'	+	year	+	"年"	+	month	+	'月のお休み</span>◆</caption>');
//	曜日欄
	document.write('<tr>');
	for	(yo	=	0;	yo	<	7;	yo++)	{
		if	(yo	==	0)	{
			document.write('<th	class="holiday">');
		}
		else	{
			document.write('<th>');
		}
		document.write(yostr[yo]	+	"</td>");
	}
	document.write("</tr>");
	while	(flag	<	2)	{
		document.write('<tr>');
		for	(yo	=	0;	yo	<	7;	yo++)	{
			document.write('<td');
			if	(flag	==	0	&&	yo2	==	yo)	{	//	1日
				flag	=	1;
			}
			if	(flag	==	1)	{	//	日付あり
				yasumi	=	0;
				syuku	=	0;
				//	月曜に関する処理	(Happy	Mondayと振替休日)
				if	(yo	==	1)	{
					if	(furi	==	1)	{
						yasumi	=	1;
						furi	=	0;
					}
					if	(++moncnt	==	2)	{	//	第2月曜
						if	(month	==	1)	{	//	1月	成人の日
							syuku	=	1;
						}
						if	(month	==	10)	{	//	10月	体育の日
							syuku	=	1;
						}
					}
					if	(moncnt	==	3)	{		//	第3月曜
						if	(year	>=	2003	&&	month	==	7)	{	//	7月	海の日	(2003〜)
							syuku	=	1;
						}
						if	(year	>=	2003	&&	month	==	9)	{		//	9月	敬老の日	(2003〜)
							syuku	=	1;
						}
					}
				}
				//	Happy	Monday以外の祝日に関する処理
				if	(month	==	1	&&	daycnt	==	1)	{	//		1月	1日	元日
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	2)	{	//		1月	2日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	3)	{	//		1月	3日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	1	&&	daycnt	==	4)	{	//		1月	4日	ポスカショップ年末年始の休み
					syuku	=	1;
				}
				if	(month	==	2	&&	daycnt	==	11)	{	//		2月11日	建国記念の日
					syuku	=	1;
				}
				if	(month	==	3)	{	//	春分の日
					if	(daycnt	==	Math.floor(20.8431+0.242194*(year-1980))-Math.floor((year-1980)/4))	{
										syuku	=	1;
					}
				}
				if	(month	==	4	&&	daycnt	==	29)	{	//		4月29日	みどりの日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	3)	{	//		5月	3日	憲法記念日
					syuku	=	1;
					if	(yo	==	6){
						furi2	=	1;
					}
				}
				if	(month	==	5	&&	daycnt	==	4)	{	//		5月	4日	国民の休日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	5)	{	//		5月	5日	こどもの日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	6)	{	//		5月	6日
					syuku	=	1;
				}
				if	(month	==	5	&&	daycnt	==	6	&&	furi2	==	1)	{	//		5月	5日	振替休日（5月3日が土曜日の時）
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	13)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	14)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	15)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	8	&&	daycnt	==	16)	{	//		8月	13日〜17日	お盆休み
					syuku	=	1;
				}
				if	(month	==	9)	{	//	秋分の日
					if	(daycnt	==	Math.floor(23.2488+0.242194*(year-1980))-Math.floor((year-1980)/4))	{
						syuku	=	1;
					}
				}
				if	(month	==	11	&&	daycnt	==	3)	{	//	11月	3日	文化の日
					syuku	=	1;
				}
				if	(month	==	11	&&	daycnt	==	23)	{	//	11月23日	勤労感謝の日
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	23)	{	//	12月23日	天皇誕生日	ポスカショップ営業日
					syuku	=	0;
				}
				if	(month	==	12	&&	daycnt	==	29)	{	//	12月29日	ポスカショップ年末の休み
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	30)	{	//	12月30日	ポスカショップ年末の休み
					syuku	=	1;
				}
				if	(month	==	12	&&	daycnt	==	31)	{	//	12月31日	ポスカショップ年末の休み
					syuku	=	1;
				}
				if	(year	<	2003	&&	month	==	7	&&	daycnt	==	20)	{	//	7月20日	海の日	(〜2002)
					syuku	=	1;
				}
				if	(year	<	2003	&&	month	==	9	&&	daycnt	==	15)	{	//		9月15日	敬老の日	(〜2002)
					syuku	=	1;
				}
				if	(syuku	==	1)	{
					yasumi	=	1;
				}
				//	日曜に関する処理
				if	(yo	==	0)	{
					yasumi	=	1;
					if	(month	==	12	&&	daycnt	==	6)	{	//	12月6日	ポスカショップ年末の休み
						yasumi	=	1;
					}
					if	(month	==	12	&&	daycnt	==	13)	{	//	12月13日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(month	==	12	&&	daycnt	==	20)	{	//	12月20日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(month	==	12	&&	daycnt	==	27)	{	//	12月27日	ポスカショップ年末の休み
						yasumi	=	0;
					}
					if	(syuku	==	1)	{
						furi	=	1;
					}
				}
				if	(yasumi	==	1)	{
					document.write(' class="holiday">'	+	daycnt);
				}
				else	{
					document.write('>'	+	daycnt);
				}
				if	(++daycnt	>	maxday[month	-	1])	{	//	最終日
					flag	=	2;
				}
			}
			else	{	//	日付なし
				document.write('>'	+	ndstr);
			}
			document.write("</td>");
		}
		document.write("</tr>");
	}
	document.write("</table>");
}