function SymError()
{
  return true;
}


var days_of_month = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
var str_day = new Array("(日)","(月)","(火)","(水)","(木)","(金)","(土)");

function n_week(){
	var times = [];
	var dateObj = new Date();
	
/* 今月のカレンダー   */
	times[0] = dateObj.getDate();
	times[1] = dateObj.getMonth();
	times[2] = dateObj.getFullYear();
	
/* 希望月のカレンダー   */
//	times[0] = 15;//日にち
//	times[1] = 0;//月（1を引く）
//	times[2] = 2009;//年

	return times;
}


var naw_year = n_week()[2];//今年
if (((naw_year%4)==0 && (naw_year%100)!=0) || (naw_year%400)==0) // うるう年だったら...
    days_of_month[1] = 29;       
var naw_month = n_week()[1] + 1;//今月
var naw_month_jva = n_week()[1];//Javaの今月（-1となる)
var naw_day = n_week()[0];//今日の日付

var naw_md = days_of_month[naw_month_jva];//今月の日数
var one_week = new Date(n_week()[2],naw_month_jva,1).getDay();//今月1日の曜日
var naw_wk = new Date(n_week()[2],naw_month_jva,n_week()[0]).getDay(); //今日の曜日

//document.write("今年" + naw_year + "<br>"); //今年
//document.write("今月" + naw_month + "<br>"); //今月
//document.write("Javaの今月" + naw_month_jva + "<br>");
//document.write("今日の曜日"+ naw_wk +"<br>"); //今日の曜日
//document.write("今月1日の曜日"+one_week+"<br>"); //今月1日の曜日
//document.write("今日の日付"+naw_day+"<br>"); //今日の日付日
//document.write("今月の日数" + days_of_month[naw_month_jva] + "<br>");//今月の日数
//document.write("今月の日付" + myTable[i*7 + j] + "<br>");//今月の日付
//***************************
document.write("<table height='96' width='92' border='0' cellspacing='0' cellpadding='0' background='http://www.g-sato.com/calendar/image/calendar_1.gif'>");
document.write("<tr><td height='26' colspan='3'><br></td></tr>");
document.write("<tr><td width='20' height='10'><br></td><td align='center'>");
document.write("<span style='font-size:12px;font-weight:bold;color:#000000;'>" + naw_month + '月' + "</span><br>"); //今年
document.write("</td><td width='20'><br></td></tr>");
document.write("<tr><td height='28'><br></td><td align='left'");
//***************

					if (naw_year == 2009) //祭日の○背景
					{
						if(naw_month == 1 && naw_day == 1){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 1 && naw_day == 12){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 2 && naw_day == 11){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 3 && naw_day == 20){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 4 && naw_day == 29){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 4){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 5){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 6){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 7 && naw_day == 20){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 21){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 22){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 10 && naw_day == 12){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 12 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
					}
					else if (naw_year == 2010) //祭日の○背景
					{
						if(naw_month == 1 && naw_day == 1){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 1 && naw_day == 11){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 2 && naw_day == 11){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 3 && naw_day == 21){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 4 && naw_day == 29){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 4){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 5){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 7 && naw_day == 19){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 20){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 10 && naw_day == 11){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 12 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
					}
					else if (naw_year == 2011) //祭日の○背景
					{
						if(naw_month == 1 && naw_day == 1){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 1 && naw_day == 10){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 2 && naw_day == 11){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 3 && naw_day == 21){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 4 && naw_day == 29){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 4){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 5 && naw_day == 5){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 7 && naw_day == 18){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 19){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 9 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 10 && naw_day == 10){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 3){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 11 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
						else if(naw_month == 12 && naw_day == 23){document.write(" background='http://g-sato.com/images/calendar/hol_himekuri.gif'");}
					}

				if (str_day[naw_wk] == "(日)") 
					{
					document.write("<span style='font-size:22px;font-weight:bold;color:#ff0099;'"); // 日曜日の文字の色
					}
				if (str_day[naw_wk] == "(土)") 
					{
					document.write("<span style='font-size:22px;font-weight:bold;color:#0066ff;'"); // 土曜日日の文字の色
					}
					 else
					  {
					document.write("<span style='font-size:22px;font-weight:bold;color:#000000;'"); // 平日の文字の色
					}
//********************
document.write(">" + naw_day + "</span><span style='font-size:10;font-weight:bold;color:#000000;'>" + str_day[naw_wk] + "</span>"); //今日の日付日
document.write("</td><td width='20'><br></td></tr>");
document.write("<tr><td height='28' colspan='3' valign='left'>");
document.write("<span style='font-size:11px;color:#666666;'>" + naw_year + "</span>");
document.write("</td></tr>");
//document.write("<tr><td height='0'></td></tr>");
document.write("</table>");




