function fm_inq1chk() {


	if( window.document.fm_inq1.elements['contact_reason[0]'].checked==false &&
		window.document.fm_inq1.elements['contact_reason[1]'].checked==false &&
		window.document.fm_inq1.elements['contact_reason[2]'].checked==false &&
		window.document.fm_inq1.elements['contact_reason[3]'].checked==false &&
		window.document.fm_inq1.elements['contact_reason[4]'].checked==false &&
		window.document.fm_inq1.elements['contact_reason[5]'].checked==false) {
		alert("ご用件内容が未選択です。");
		return;
	}

	if(window.document.fm_inq1.name_k.value == "") {
		alert("お名前が未記入です。");
		return;
	}
	if(window.document.fm_inq1.name_f.value == "") {
		alert("フリガナが未記入です。");
		return;
	}

	if(window.document.fm_inq1.main.value == "") {
		alert("Ｅメールが未記入です。");
		return;
	}

	if(window.document.fm_inq1.tel_1.value == "" || window.document.fm_inq1.tel_2.value == "" || window.document.fm_inq1.tel_3.value == "") {
		alert("電話番号が未記入です。");
		return;
	}

	if(window.document.fm_inq1.main.value != "") {
		str = window.document.fm_inq1.main.value;
		var tmp = str.match("^[0-9A-Za-z._-]+@[0-9A-Za-z.-]+$");
		if (tmp != str){
			alert("メールアドレスの入力が間違っています");
			return;
		}
	}

	if(window.document.fm_inq1.address.value=="") {
		alert("ご住所が未記入です。");
		return;
	}

	if(window.document.fm_inq1.contact_text.value=="") {
		alert("お問い合わせ内容が未記入です。");
		return;
	}

	if (window.confirm("送信します。よろしいですか？")) {
	   window.document.fm_inq1.submit();
	}
}

