function order_checkData() {
	if (document.order.booktitle1.value == "") {
		window.alert("ご注文の書籍名を入力してください");
		document.order.booktitle1.focus();
		return false;
	}
	if (document.order.namae.value == "") {
		window.alert("お名前を入力してください");
		document.order.namae.focus();
		return false;
	}
	if (document.order.address1.value == "") {
		window.alert("ご住所を入力してください");
		document.order.address1.focus();
		return false;
	}
	if (document.order.tel.value == "") {
		window.alert("お電話の番号を入力してください");
		document.order.tel.focus();
		return false;
	}
	fmDATA = document.order.email.value;
	if (document.order.email.value == "") {
		window.alert("Ｅメールアドレスを入力してください");
		document.order.email.focus();
		return false;
	}
	for (i = 0; i < fmDATA.length; i++){
		if (escape(fmDATA.charAt(i)).length >= 4) {
			window.alert("Ｅメールアドレスは半角文字で入力してください");
			document.order.email.focus();
			return false;
		}
	}
	if (!fmDATA.match(/.+@.+\..+/)) {
		window.alert("入力されたメールアドレスをご確認ください");
		document.order.email.focus();
		return false;
	}
	fmDATA = document.order.other.value;
	if (fmDATA.length > 2000) {
		window.alert("申しわけありませんが、メッセージが長すぎます。");
		return false;
	}
}

function contact_checkData() {
	if (document.contact.address1.value == "") {
		window.alert("ご住所を入力してください");
		document.contact.address1.focus();
		return false;
	}
	if (document.contact.namae.value == "") {
		window.alert("お名前を入力してください");
		document.contact.namae.focus();
		return false;
	}
	if (document.contact.tel.value == "") {
		window.alert("お電話の番号を入力してください");
		document.contact.tel.focus();
		return false;
	}
	fmDATA = document.contact.email.value;
	if (document.contact.email.value == "") {
		window.alert("Ｅメールアドレスを入力してください");
		document.contact.email.focus();
		return false;
	}
	for (i = 0; i < fmDATA.length; i++){
		if (escape(fmDATA.charAt(i)).length >= 4) {
			window.alert("Ｅメールアドレスは半角文字で入力してください");
			document.contact.email.focus();
			return false;
		}
	}
	if (!fmDATA.match(/.+@.+\..+/)) {
		window.alert("入力されたメールアドレスをご確認ください");
		document.contact.email.focus();
		return false;
	}
	fmDATA = document.contact.inquiry.value;
	if (document.contact.inquiry.value == "") {
		window.alert("お問い合せ内容を入力してください");
		document.contact.inquiry.focus();
		return false;
	}
	if (fmDATA.length > 2000) {
		window.alert("申しわけありませんが、メッセージが長すぎます。");
		return false;
	}
}

function presentation_checkData() {
	if (document.presentation.namae.value == "") {
		window.alert("お名前を入力してください");
		document.presentation.namae.focus();
		return false;
	}
	if (document.presentation.namaeKana.value == "") {
		window.alert("お名前のふりがなを入力してください");
		document.presentation.namaeKana.focus();
		return false;
	}
	if (document.presentation.schoolName.value == "") {
		window.alert("ご所属の学校名を入力してください");
		document.presentation.schoolName.focus();
		return false;
	}
	if (document.presentation.depName.value == "") {
		window.alert("講座・科目名を入力してください");
		document.presentation.depName.focus();
		return false;
	}
	if (document.presentation.depClass.value == "") {
		window.alert("配当学年を入力してください");
		document.presentation.depClass.focus();
		return false;
	}
	if (document.presentation.cntClass.value == "") {
		window.alert("想定受講人数を入力してください");
		document.presentation.cntClass.focus();
		return false;
	}
	if (document.presentation.bookName1.value == "") {
		window.alert("ご希望書籍名を入力してください");
		document.presentation.bookName1.focus();
		return false;
	}
	if (document.presentation.writerName1.value == "") {
		window.alert("ご希望書籍の著者名を入力してください");
		document.presentation.writerName1.focus();
		return false;
	}
	if (document.presentation.zipcode.value == "") {
		window.alert("郵便番号を入力してください");
		document.presentation.zipcode.focus();
		return false;
	}
	if (document.presentation.address1.value == "") {
		window.alert("ご住所を入力してください");
		document.presentation.address1.focus();
		return false;
	}
	if (document.presentation.address2.value == "") {
		window.alert("大学・学部名を入力してください");
		document.presentation.address2.focus();
		return false;
	}
	if (document.presentation.tel.value == "") {
		window.alert("ご連絡できる電話番号を入力してください");
		document.presentation.tel.focus();
		return false;
	}
	fmDATA = document.presentation.email.value;
	if (document.presentation.email.value == "") {
		window.alert("Ｅメールアドレスを入力してください");
		document.presentation.email.focus();
		return false;
	}
	for (i = 0; i < fmDATA.length; i++){
		if (escape(fmDATA.charAt(i)).length >= 4) {
			window.alert("Ｅメールアドレスは半角文字で入力してください");
			document.presentation.email.focus();
			return false;
		}
	}
	if (!fmDATA.match(/.+@.+\..+/)) {
		window.alert("入力されたメールアドレスをご確認ください");
		document.presentation.email.focus();
		return false;
	}
	fmDATA = document.presentation.kenponComment.value;
	if (fmDATA.length > 2000) {
		window.alert("申しわけありませんが、メッセージが長すぎます。");
		return false;
	}
}

function search_checkData() {
	if (document._search.yomi1.value != "" && document._search.yomi2.value != "") {
		if (document._search.yomi1.value > document._search.yomi2.value) {
			window.alert("検索範囲の指定をご確認ください");
			document._search.yomi1.focus();
			return false;
		}
	}
	if (document._search.date1.value != "" && document._search.date2.value != "") {
		if (document._search.date1.value > document._search.date2.value) {
			window.alert("検索範囲の指定をご確認ください");
			document._search.date1.focus();
			return false;
		}
	}
}
