





//見ちゃいや〜〜ん！！！























	var M;
	var A=10;
	var B=100;
	var C=0;
        
function sindan()
{
	get_data();
	culc();
	check();
	
}



























//見ちゃいや〜〜ん、これ以上見ちゃったら、楽しくなくなるよ！！




























function get_data()
{
	
	df = document.f;
	y1 = getDateSub2(df.year_1);
	y2 = getDateSub2(df.year_2);
	y3 = getDateSub2(df.year_3);
	m1 = getDateSub2(df.month_1);
	m2 = getDateSub2(df.month_2);
	d1 = getDateSub2(df.day_1);
	d2 = getDateSub2(df.day_2); 
} 
function getDateSub2( F )
{
	var temp;
	for (i=0; i < F.length; i++)
	{
		if (F.options[i].selected == true)
			{temp = parseInt( F[i].value) }
	}
	return temp;
}      

function check()
{
	if(m1==0 && m2==0){alert("月の入力が不正です。");}
	else if(m1==1 && m2>=3){alert("月の入力が不正です。");}
	else if(d1==0 && d2==0){alert("日の入力が不正です。");}
	else if(d1==3 && d2>=2){alert("日の入力が不正です。");}
	else{jump()}
}
function culc()
{
	M =y2+5.94334*C+y3+m2+d2+(0.571647*C*m2+Math.log(A+0.64144*C)/Math.log(Math.sqrt(B)))+y1+57.647*C-1+d1+m1;

}




















//見ちゃいや〜〜ん、もうホントに最後だよ。この先進んだら答えわかっちゃうよ。


























function jump()
{






















//見ちゃいや〜〜ん！！あーあ、見ちゃった！！も〜、しょうがない人なんだから〜、他の人には内緒でね！！！


if(y1==0 && y2==7 && y3==7 && m1==0 && m2==3 && d1==2 && d2 ==9){document.location="oshima.htm";} 
else if(y1==2 && y2==0 && y3==4 && m1==0 && m2==1 && d1==2 && d2 ==4){document.location="kindaichi.htm";}            
	else if(M == 2){document.location="batt.htm";} 
	else if(M == 3){document.location="keitai.htm";} 
	else if(M == 4){document.location="tv.htm";} 
	else if(M == 5){document.location="video.htm";} 
	else if(M == 6){document.location="shoumei.htm";} 
	else if(M == 7){document.location="kaichu.htm";}
	else if(M == 8){document.location="game.htm";}
	else if(M == 9){document.location="speaker.htm";}
	else if(M ==10){document.location="clean.htm";}
	else if(M == 11){document.location="wardpro.htm";} 
	else if(M == 12){document.location="batt.htm";} 
	else if(M == 13){document.location="keitai.htm";} 
	else if(M == 14){document.location="tv.htm";} 
	else if(M == 15){document.location="video.htm";} 
	else if(M == 16){document.location="shoumei.htm";} 
	else if(M == 17){document.location="kaichu.htm";}
	else if(M == 18){document.location="game.htm";}
	else if(M == 19){document.location="speaker.htm";}
	else if(M == 20){document.location="clean.htm";}
	else if(M == 21){document.location="wardpro.htm";} 
	else if(M == 22){document.location="batt.htm";} 
	else if(M == 23){document.location="keitai.htm";} 
	else if(M == 24){document.location="tv.htm";} 
	else if(M == 25){document.location="video.htm";} 
	else if(M == 26){document.location="shoumei.htm";} 
	else if(M == 27){document.location="kaichu.htm";}
	else if(M == 28){document.location="game.htm";}
	else if(M == 29){document.location="speaker.htm";}
	else if(M == 30){document.location="clean.htm";}
	else if(M == 31){document.location="wardpro.htm";} 
	else if(M == 32){document.location="batt.htm";} 
	else if(M == 33){document.location="keitai.htm";} 
	else if(M == 34){document.location="tv.htm";} 
	else if(M == 35){document.location="video.htm";} 
	else if(M == 36){document.location="shoumei.htm";} 
	else if(M == 37){document.location="kaichu.htm";}
	else if(M == 38){document.location="game.htm";}
	else if(M == 39){document.location="speaker.htm";}
	else {document.location="tv.htm";}
}



