function checkForm() {

	var strErr      = "";
	var strErrOther = "";
	var strCR, strMail0, strMail1;

	strCR = unescape("%0a");
	if (document.frmInquiry.elements["00N10000000CtJ3"].selectedIndex == 0) {
		strErr += "お問い合わせ項目" + strCR;
	}
	if (document.frmInquiry.elements["00N10000000Cwyb"].value == "") {
		strErr += "お問い合わせ内容" + strCR;
	} else {
		var Cwyb       = document.frmInquiry.elements["00N10000000Cwyb"].value;
		var CwybLength = Cwyb.length;

		if( CwybLength > 255 ){
			strErrOther += "お問い合わせ内容は全角255文字以下でご入力して下さい" + strCR;
		}

	}

	if (document.frmInquiry.last_name.value == "") {
		strErr += "お名前（姓）" + strCR;
	}
	if (document.frmInquiry.first_name.value == "") {
		strErr += "お名前（名）" + strCR;
	}
	if (document.frmInquiry.elements["00N10000000CuV3"].value == "") {
		strErr += "お名前（姓：ふりがな）" + strCR;
	}
	if (document.frmInquiry.elements["00N10000000CuV4"].value == "") {
		strErr += "お名前（名：ふりがな）" + strCR;
	}
	if (document.frmInquiry.elements["zip"].value == "") {
		strErr += "郵便番号" + strCR;
	}
	if (document.frmInquiry.elements["state"].value == "") {
		strErr += "都道府県" + strCR;
	}
	if (document.frmInquiry.elements["city"].value == "") {
		strErr += "市区郡" + strCR;
	}
	if (document.frmInquiry.elements["street"].value == "") {
		strErr += "町名・番地" + strCR;
	}
	if (document.frmInquiry.elements["phone"].value == "") {
		strErr += "TEL" + strCR;
	}
	if (document.frmInquiry.elements["email"].value == "") {
		strErr += "e-mail" + strCR;
	}
	if (document.frmInquiry.elements["email2"].value == "") {
		strErr += "e-mail（確認用）" + strCR;
	}

	strMail0 = document.frmInquiry.elements["email"].value;
	strMail1 = document.frmInquiry.elements["email2"].value;

	if (strMail0 != "" && strMail1 != "") {

		if( strMail0 == strMail1 ) {

			if(strMail0.match( /[^A-Za-z0-9\.\-\_\@]+/ )) {
				strErr += "e-mailには、半角英数字＠-._のみで入力して下さい" + strCR;
			}

		} else {

			strErr += "e-mailが間違っています" + strCR;

		}

	}


	if (strErr == "" && strErrOther == "") {
		document.frmInquiry.submit();
	} else {

		var xAlert = "";
		if( strErr ){
			xAlert += strErr + strCR + "上記の必須入力項目が入力されていません";
		}
		if( strErrOther ){
			xAlert += strCR + strCR + strErrOther + strCR;
		}
		alert( xAlert );
	}

}