var	msg, d, h, m;
var	msg= new Array();

// アクセス日時を表示する。
m = (new Date()).getMonth() + 1;
d = (new Date()).getDate();

date = new Date();

msg[1]  = "<img src="+"./img/month/01.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[2]  = "<img src="+"./img/month/02.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[3]  = "<img src="+"./img/month/03.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[4]  = "<img src="+"./img/month/04.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[5]  = "<img src="+"./img/month/05.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[6]  = "<img src="+"./img/month/06.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[7]  = "<img src="+"./img/month/07.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[8]  = "<img src="+"./img/month/08.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[9]  = "<img src="+"./img/month/09.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[10]  = "<img src="+"./img/month/10.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[11]  = "<img src="+"./img/month/11.gif"+" width=210"+" height=150"+" alt=月表示"+">";
msg[12]  = "<img src="+"./img/month/12.gif"+" width=210"+" height=150"+" alt=月表示"+">";

msg[101]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/01nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[102]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/02nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[103]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/03nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[104]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/04nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[105]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/05nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[106]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/06nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[107]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/07nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[108]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/08nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[109]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/09nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[110]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/10nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[111]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/11nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";
msg[112]  = 
"<a href="+"yotei_nxt.html>"+"<img src="+"./img/month/12nxt.gif"+" width="+"210"+" height="+"150"+" alt="+"月表示"+"></a>";

function imgmonth(){	
switch (m){

		case 1:
		if(d >=21) {
			document.write(msg[101]);
		}
		else if(d >=1) {
			document.write(msg[1]);
		}
		break;
	
		case 2:
		if(d >=18) {
			document.write(msg[102]);
		}
		else if(d >=1) {
			document.write(msg[2]);
		}
		break;

		case 3:
		if(d >=18) {
			document.write(msg[103]);
		}
		else if(d >=1) {
			document.write(msg[3]);
		}
		break;
		
		case 4:
		if(d >=17) {
			document.write(msg[104]);
		}
		else if(d >=1) {
			document.write(msg[4]);
		}
		break;
		
		case 5:
		if(d >=15) {
			document.write(msg[105]);
		}
		else if(d >=1) {
			document.write(msg[5]);
		}
		break;
		
		case 6:
		if(d >=18) {
			document.write(msg[106]);
		}
		else if(d >=1) {
			document.write(msg[6]);
		}
		break;
		
		case 7:
		if(d >=17) {
			document.write(msg[107]);
		}
		else if(d >=1) {
			document.write(msg[7]);
		}
		break;
		
		case 8:
		if(d >=20) {
			document.write(msg[108]);
		}
		else if(d >=1) {
			document.write(msg[8]);
		}
		break;
		
		case 9:
		if(d >=17) {
			document.write(msg[109]);
		}
		else if(d >=1) {
			document.write(msg[9]);
		}
		break;
		
		case 10:
		if(d >=22) {
			document.write(msg[110]);
		}
		else if(d >=1) {
			document.write(msg[10]);
		}
		break;
		
		case 11:
		if(d >=19) {
			document.write(msg[111]);
		}
		else if(d >=1) {
			document.write(msg[11]);
		}
		break;
		
		case 12:
		if(d >=11) {
			document.write(msg[112]);
		}
		else if(d >=1) {
			document.write(msg[12]);
		}
		break;
}
}
