function chk_form(){
 if(document.entry.namae1.value=="" || document.entry.namae2.value=="")
 { alert("お名前を入力してください。"); return 1; }
 if(document.entry.kana.value=="")
 { alert("フリガナを入力してください。"); return 1; }
 if(document.entry.email.value=="" || document.entry.emailc.value=="")
 { alert("メールアドレスを入力してください。"); return 1; }
  txt = document.entry.email.value;
  data = txt.match("^[0-9A-Za-z._-]+@[0-9A-Za-z.-]+$");
  if (!data) {alert("メールアドレスが正しくありません。"); return 1;}
 if(document.entry.email.value!=document.entry.emailc.value)
 { alert("異なるメールアドレスが入力されています"); return 1; }
 if(document.entry.comment.value=="")
 { alert("コメントを入力してください。"); return 1; }
 document.entry.action = '/mail_backs.php';
 document.entry.submit();
}

