function check() {
	var name_ok = 0;
	var mail_ok = 0;
	var tel_ok = 0;
	var memo_ok = 0;

	if (document.frm.u_name.value.length > 0) {
		name_ok = 1;
	}
	if (document.frm.u_mail.value.length > 0) {
		if (is_mail(document.frm.u_mail.value) == true) {
			mail_ok = 1;
		} else {
			mail_ok = 2;
		}
	}
/* no check
	if (document.frm.u_tel.value.length > 0) {
		if (is_tel(document.frm.u_tel.value) == true) {
			tel_ok = 1;
		} else {
			tel_ok = 2;
		}
	}
*/
	if (document.frm.u_memo.value.length > 0) {
		memo_ok = 1;
	}

	if (name_ok == 0) {
		alert('お名前が未入力です。');
		return false;
	} else if (mail_ok == 0) {
		alert('E-Mailが未入力です。');
		return false;
	} else if (mail_ok == 2) {
		alert('E-Mailが不正です。');
		return false;
/* no check
	} else if (tel_ok == 0) {
		alert('電話番号が未入力です。');
		return false;
	} else if (tel_ok == 2) {
		alert('電話番号が不正です。');
		return false;
*/
	} else if (memo_ok == 0) {
		alert('お問い合わせ内容が未入力です。');
		return false;
	}
	return true;
}
function is_mail(txt) {
	data = txt.match(/^\S+@\S+\.\S+$/);
	if (!data) {
		return false;
	} else {
		return true;
	}
}
function is_tel(txt) {
	data = txt.match(/^\d{2,5}\-\d{1,4}\-\d{4}$/);
	if (!data) {
		return false;
	} else {
		return true;
	}
}

