<!--
function count(num) {
	syokei = 0;
	syokei = document.form1.s1.options[document.form1.s1.selectedIndex].value * 0;
	if (document.form1.s2.checked) {
		syokei = syokei + 10500;
	}


	document.form1.total.value = syokei;

	switch(num) {
	case  0:
		document.form1.c1.value = 0;
		document.form1.t1.value = 0;
		document.form1.c2.value = 0;
		document.form1.t2.value = 0;

		document.form1.total.value = 0;
		document.form1.s1.selectedIndex = 0;
		document.form1.s2.checked = false;


		break;
	case  1:
		if (document.form1.s1.selectedIndex>0) {
			document.form1.c1.value = document.form1.s1.selectedIndex;
			document.form1.t1.value = document.form1.s1.options[document.form1.s1.selectedIndex].value * 0;
		} else {
			document.form1.c1.value = 0;
			document.form1.t1.value = 0;
		}
		break;
	case 2:
		if (document.form1.s2.checked) {
			document.form1.c2.value = 1;
			document.form1.t2.value = 10500;
		} else {
			document.form1.c2.value = 0;
			document.form1.t2.value = 0;
		}
		break;

	}
}
function send() {
	location.href="#fm";
}
function cl() {
	count(0);
}
function cl_all() {
	count(0);
	document.form1.reset();
}
function chk() {
	if (document.form1.c1.value == 0 && document.form1.c2.value == 0) {
		alert("お申し込み内容を入力してください。");
		document.form1.s1.focus();
		return;
	}
	if (document.form1.id.value == "") {
		alert("ID番号を入力してください。");
		document.form1.id.focus();
		return;
	}
	if (document.form1.f1.value == "") {
		alert("氏名(漢字)を入力してください。");
		document.form1.f1.focus();
		return;
	}
	if (document.form1.f2.value == "") {
		alert("氏名（フリガナ）を入力してください。");
		document.form1.f2.focus();
		return;
	}
	if (document.form1.elements[10].checked == false && document.form1.elements[11].checked == false) {
		alert("性別を入力してください。");
		document.form1.elements[10].focus();
		return;
	}
	if (document.form1.f5.value == "") {
		alert("生年月日(年)を入力してください。");
		document.form1.f5.focus();
		return;
	} else {
		if (isNaN(document.form1.f5.value)) {
			alert("生年月日(年)を入力してください。");
			document.form1.f5.focus();
			return;
		}
	}
	if (document.form1.f6.selectedIndex == 0) {
		alert("生年月日(月)を入力してください。");
		document.form1.f6.focus();
		return;
	}
	if (document.form1.f7.selectedIndex == 0) {
		alert("生年月日(日)を入力してください。");
		document.form1.f7.focus();
		return;
	}
	if(document.form1.f6.selectedIndex > 0 && document.form1.f7.selectedIndex > 0) {
		if ((document.form1.f6.selectedIndex == 4 || document.form1.f6.selectedIndex == 6 || document.form1.f6.selectedIndex == 9 || document.form1.f6.selectedIndex == 11) && (document.form1.f7.selectedIndex > 30)) {
			alert("生年月日(日)を入力してください。");
			document.form1.f7.focus();
			return;
		} else {
			if (document.form1.f6.selectedIndex == 2 && document.form1.f7.selectedIndex > 29) {
				alert("生年月日(日)を入力してください。");
				document.form1.f7.focus();
				return;
			}
		}
	}
	if (document.form1.f8.value == "") {
		alert("年齢を入力してください。");
		document.form1.f8.focus();
		return;
	} else {
		if (isNaN(document.form1.f8.value)) {
			alert("年齢を入力してください。");
			document.form1.f8.focus();
			return;
		}
	}
	if(document.form1.s2.checked && document.form1.f9.selectedIndex == 0) {
		alert("希望受験地を入力してください。");
		document.form1.f9.focus();
		return;
	}

//	if (juk()) { return; }

	if (document.form1.elements[40].checked == false && document.form1.elements[41].checked == false) {
		alert("ご希望の送付先ご住所を入力してください。");
		document.form1.elements[40].focus();
		return;
	}
	
	if (document.form1.elements[40].checked == true) {
		if (document.form1.f10.value == "") {
			alert("自宅〒を入力してください。");
			document.form1.f10.focus();
			return;
		}
		if (document.form1.f11.value == "") {
			alert("住所フリガナを入力してください。");
			document.form1.f11.focus();
			return;
		}
		if (document.form1.f12.selectedIndex == 0) {
			alert("住所(都道府県名)を入力してください。");
			document.form1.f12.focus();
			return;
		}
		if (document.form1.f13.value == "") {
			alert("住所を入力してください。");
			document.form1.f13.focus();
			return;
		}
		if (document.form1.f14.value == "") {
			alert("ＴＥＬを入力してください。");
			document.form1.f14.focus();
			return;
		}
	} else {
		if (document.form1.f18.value == "") {
			alert("勤務先名（学校名）を入力してください。");
			document.form1.f18.focus();
			return;
		}
		if (document.form1.f19.value == "") {
			alert("勤務先（学校）〒を入力してください。");
			document.form1.f19.focus();
			return;
		}
		if (document.form1.f20.value == "") {
			alert("勤務先（学校）フリガナを入力してください。");
			document.form1.f20.focus();
			return;
		}
		if (document.form1.f21.selectedIndex == 0) {
			alert("勤務先（学校）住所(都道府県名)を入力してください。");
			document.form1.f21.focus();
			return;
		}
		if (document.form1.f22.value == "") {
			alert("勤務先（学校）住所を入力してください。");
			document.form1.f22.focus();
			return;
		}
		if (document.form1.f25.value == "") {
			alert("ＴＥＬを入力してください。");
			document.form1.f25.focus();
			return;
		}
	}

//	if (document.form1.a15.checked == true) {
//		if (document.form1.a151.value == "") {
//			alert("営業所名を入力してください。");
//			document.form1.a151.focus();
//			return;
//		}
//		if (document.form1.a152.value == "") {
//			alert("担当者名を入力してください。");
//			document.form1.a152.focus();
//			return;
//		}
//	}

	document.form1.c1.disabled = false;
	document.form1.t1.disabled = false;
	document.form1.c2.disabled = false;
	document.form1.t2.disabled = false;

	document.form1.total.disabled = false;

	document.form1.submit();

}

function juk() {
//	// 15-新宿
//	if (document.form1.s2.checked && document.form1.f9.selectedIndex == 15) {
//		alert("この受験地は締め切られました。他会場を選択してください。");
//		document.form1.f9.focus();
//		return(-1);
//	}
//	// 14-池袋
//	if (document.form1.s2.checked && document.form1.f9.selectedIndex == 14) {
//		alert("この受験地は締め切られました。他会場を選択してください。");
//		document.form1.f9.focus();
//		return(-1);
//	}
//	// 10-群馬
//	if (document.form1.s2.checked && document.form1.f9.selectedIndex == 10) {
//		alert("この受験地は締め切られました。他会場を選択してください。");
//		document.form1.f9.focus();
//		return(-1);
//	}
 returen(0);
}


// -->