function refresh() {
	document.omikuji.seiza.selectedIndex="0";
	document.omikuji.eto.selectedIndex="0";
	document.omikuji.favi.selectedIndex="0";
	document.omikuji.radiobutton[0].checked=0;
	document.omikuji.radiobutton[1].checked=0;
	document.omikuji.radiobutton[2].checked=0;
}

function fillform(SF) {
	if (SF.seiza.selectedIndex == "0") {
		alert("星座を選んで下さい");
	return false }
	if (SF.eto.selectedIndex == "0") {
		alert("干支を選んで下さい");
	return false }
	if (SF.favi.selectedIndex == "0") {
		alert("登場人物を選んで下さい");
	return false }
	if ((SF.radiobutton[0].checked == false) && (SF.radiobutton[1].checked == false) && (SF.radiobutton[2].checked == false)) {
		alert("あなたは...　を選択して下さい");
	return false }
	else { 
	omikuji();
	}
}

function omikuji(n) {
	var n = Math.random();
	if (n <= 0.05) {
		location.href="omikuji_daikichi01.html";
	/*	alert(n)*/ }
	else { if (n <= 0.1) {
		location.href="omikuji_daikichi02.html";
	/*	alert(n)*/ }
	else { if (n <= 0.2) {
		location.href="omikuji_chukichi01.html";
	/*	alert(n)*/ }
	else { if (n <= 0.3) {
		location.href="omikuji_chukichi02.html";
	/*	alert(n)*/ }
	else { if (n <= 0.4) {
		location.href="omikuji_kichi01.html";
	/*	alert(n)*/ }
	else { if (n <= 0.5) {
		location.href="omikuji_kichi02.html";
	/*	alert(n)*/ }
	else { if (n <= 0.6) {
		location.href="omikuji_shokichi01.html";
	/*	alert(n)*/ }
	else { if (n <= 0.7) {
		location.href="omikuji_shokichi02.html";
	/*	alert(n)*/ }
	else { if (n <= 0.8) {
		location.href="omikuji_suekichi01.html";
	/*	alert(n)*/ }
	else { if (n <= 0.9) {
		location.href="omikuji_suekichi02.html";
	/*	alert(n)*/ }
	else { if (n <= 0.95) {
		location.href="omikuji_kyo01.html";
	/*	alert(n)*/ }
	else { if (n <= 1) {
		location.href="omikuji_kyo02.html";
	/*	alert(n)*/ }
	}}}}}}}}}}}
}

