function inq_check() {
	if(window.document.fm_inq.kname.value == "") {
		alert("お名前(氏名)が未記入です。");
		return;
	}
	if(window.document.fm_inq.fname.value == "") {
		alert("お名前(フリガナ)が未記入です。");
		return;
	}

	if(window.document.fm_inq.mail.value == "" &&  window.document.fm_inq.tel.value == "") {
		alert("EメールまたはＴＥＬが未記入です。");
		return;
	}

	if(window.document.fm_inq.mail.value != "") {
		str = window.document.fm_inq.mail.value;
		var tmp = str.match("^[0-9A-Za-z._-]+@[0-9A-Za-z.-]+$");
		if (tmp != str){
			alert("Eメールの入力が間違っています");
			return;
		}
	} else {
		if(window.document.fm_inq.tel.value == "") {
			alert("ＴＥＬが未記入です。");
			return;
		}
	}

	window.document.fm_inq.v_regular.value="YCMS_INQFORM"
	window.document.fm_inq.submit();
}
