function contact_inq() {

	if(window.document.fm_contact.cop.value == "") {
		jAlert("貴社名を入力してください。","資料請求");
		return;
	}

	if(window.document.fm_contact.nam.value == "") {
		jAlert("お名前を入力してください。","資料請求");
		return;
	}

	if(window.document.fm_contact.zip.value == "") {
		jAlert("郵便番号を入力してください。","資料請求");
		return;
	}

	if(window.document.fm_contact.add.value == "") {
		jAlert("ご住所を入力してください。","資料請求");
		return;
	}

	if(window.document.fm_contact.tel.value == "") {
		jAlert("電話番号を入力してください。","資料請求");
		return;
	}


	if(window.document.fm_contact.mail.value == "") {
		jAlert("メールアドレスを入力してください。","資料請求");
		return;
	}

	if(window.document.fm_contact.mail.value != "") {
		str = window.document.fm_contact.mail.value;
		var tmp = str.match("^[0-9A-Za-z._-]+@[0-9A-Za-z.-]+$");
		if (tmp != str){
			jAlert("メールアドレスの入力が間違っています","資料請求");
			return;
		}
	}


//	if(window.document.fm_contact.dem[0].checked==false && window.document.fm_contact.dem[1].checked==false) {
//		jAlert("デモのご利用が未選択です","資料請求");
//		return;
//	}


	if( window.document.fm_contact.elements['itr[0]'].checked==false &&
		window.document.fm_contact.elements['itr[1]'].checked==false &&
		window.document.fm_contact.elements['itr[2]'].checked==false &&
		window.document.fm_contact.elements['itr[3]'].checked==false) {
		jAlert("ご興味のある商品が未選択です","資料請求");
		return;
	}


	if( window.document.fm_contact.elements['sck[0]'].checked==false &&
		window.document.fm_contact.elements['sck[1]'].checked==false &&
		window.document.fm_contact.elements['sck[2]'].checked==false &&
		window.document.fm_contact.elements['sck[3]'].checked==false &&
		window.document.fm_contact.elements['sck[4]'].checked==false &&
		window.document.fm_contact.elements['sck[5]'].checked==false &&
		window.document.fm_contact.elements['sck[6]'].checked==false &&
		window.document.fm_contact.elements['sck[7]'].checked==false &&
		window.document.fm_contact.elements['sck[8]'].checked==false) {
		jAlert("サービスをお知りになったきっかけが未選択です","資料請求");
		return;
	}

	jConfirm('資料請求内容を送信します。よろしいですか？', '資料請求', function(r) {
		if(r == true) {
			window.document.fm_contact.submit();
		}
	});

}

//半角数字チェック
function isNumeric(num){
    if(isNaN(num)){
        return false;
    }
    return true;
}

//半角英数字チェック
function isAlphaNumeric(str) {
	if( str.match( /[^A-Za-z0-9\s.-]+/ ) ) {
		return false;
	}
	return true;
}

//半角英字チェック
function isAlpha(str) {
	if( str.match( /[^A-Za-z\s.-]+/ ) ) {
		return false;
	}
	return true;
}

//半角ｶﾀｶﾅチェック
function isKana(str) {
	if( str.match( /[^｡-ﾟ]+/ ) ) {
		return false;
	}
	return true;
}

//全角チェック
function checkIsZenkaku(str) {
	for(var i=0; i<str.length; i++){
		/* 1文字ずつ文字コードをエスケープし、その長さが4文字以上なら全角 */
		var len=escape(str.charAt(i)).length;
		if(len>=4){
			return true;
		}
	}
	return false;
}

