function fm_contactchk() {


	if( window.document.fm_contact.elements['contact_reason[0]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[1]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[2]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[3]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[4]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[5]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[6]'].checked==false &&
		window.document.fm_contact.elements['contact_reason[7]'].checked==false) {
		alert("問合せ内容が未選択です");
		return;
	}

	if( window.document.fm_contact.elements['con_method[0]'].checked==false &&
		window.document.fm_contact.elements['con_method[1]'].checked==false &&
		window.document.fm_contact.elements['con_method[2]'].checked==false &&
		window.document.fm_contact.elements['con_method[3]'].checked==false) {
		alert("ご希望の連絡方法が未選択です");
		return;
	}

	if(window.document.fm_contact.name_k.value == "") {
		alert("お名前（漢字）が未記入です。");
		return;
	}

	if(window.document.fm_contact.elements['con_method[0]'].checked==true) {
		if(window.document.fm_contact.main_mail.value == "") {
			alert("Ｅメールが未記入です。");
			return;
		}
		if(window.document.fm_contact.main_mail.value.indexOf("@") == -1){
			alert("E-mailの入力が間違っています");
			return;
		}
	}

	if(window.document.fm_contact.elements['con_method[1]'].checked==true) {
		if(window.document.fm_contact.tel_1.value == "" ||
		window.document.fm_contact.tel_2.value == "" ||
		window.document.fm_contact.tel_3.value == "") {
			alert("お電話番号が未記入です。");
			return;
		}
	}

	if(window.document.fm_contact.elements['con_method[2]'].checked==true) {
		if(window.document.fm_contact.fax_1.value == "" ||
		window.document.fm_contact.fax_2.value == "" ||
		window.document.fm_contact.fax_3.value == "") {
			alert("FAX番号が未記入です。");
			return;
		}
	}

	if(window.document.fm_contact.elements['con_method[3]'].checked==true) {
		if(window.document.fm_contact.zip_1.value == "" || window.document.fm_contact.zip_2.value == "") {
			alert("郵便番号が未記入です。");
			return;
		}

		if(window.document.fm_contact.pref.value == "") {
			alert("都道府県が未選択です。");
			return;
		}

		if(window.document.fm_contact.address.value=="") {
			alert("ご住所が未記入です。");
			return;
		}
	}

	if (window.confirm("送信します。よろしいですか？")) {
	   window.document.fm_contact.submit();
	}
}


