function validate(form) {
	if (!confirm("この内容でよろしいですか？")) {
		return false;
	}
	var formValidationResult;
	formValidationResult = validateRequired(form) && validateEmail(form) && validateMaxByteLength(form);
	return (formValidationResult == 1);
}
function sendForm_required () {
	this.a0 = new Array("yourname", "「お名前」は必ず入力してください。", new Function ("varName", " return this[varName];"));
	this.a1 = new Array("mail", "「メールアドレス」は必ず入力してください。", new Function ("varName", " return this[varName];"));
	this.a2 = new Array("subject", "「件名」は必ず入力してください。", new Function ("varName", " return this[varName];"));
	this.a3 = new Array("comment", "「お問い合わせ内容」は必ず入力してください。", new Function ("varName", " return this[varName];"));
}
function sendForm_email () {
	this.a0 = new Array("mail", "「メールアドレス」の形式が間違っています。正しい形式で入力してください。", new Function ("varName", " return this[varName];"));
}
function sendForm_maxbytelength () {
	this.a0 = new Array("yourname", "「お名前」は全角30文字、または半角60文字以内で入力してください。", new Function ("varName", "this.maxbytelength='60';  return this[varName];"));
	this.a1 = new Array("mail", "「メールアドレス」は半角80文字以内で入力してください。", new Function ("varName", "this.maxbytelength='80';  return this[varName];"));
	this.a2 = new Array("subject", "「件名」は全角40文字、半角80文字以内で入力してください。", new Function ("varName", "this.maxbytelength='80';  return this[varName];"));
	this.a3 = new Array("comment", "「お問い合わせ内容」は全角1500文字、半角3000文字以内で入力してください。", new Function ("varName", "this.maxbytelength='3000';  return this[varName];"));
}
