function EntryValidationEvent(frm){
  

  // 氏名は必須
  if(document.getElementById('name1').value == ""){
    alert('お名前は必ず入力してください。');
    document.getElementById('name1').focus();
    document.getElementById('name1').select();
    return;
  }

  // ふりがなは必須
  if( document.getElementById('kana1').value == "" ){
    alert('ふりがなは必ず入力してください。');
    document.getElementById('kana1').focus();
    document.getElementById('kana1').select();
    return;
  }

  // 郵便番号は必須
  if( document.getElementById('post1').value == "" || document.getElementById('post2').value == ""){
    alert('郵便番号は必ず入力してください。');
    document.getElementById('post1').focus();
    document.getElementById('post1').select();
    return;
  }

  // ご住所（市区町村）は必須
  if( document.getElementById('address1').value == "" ){
    alert('ご住所（市区町村・番地）は必ず入力してください。');
    document.getElementById('address1').focus();
    document.getElementById('address1').select();
    return;
  }

  // メールアドレスは必須
  if( document.getElementById('mail1').value == "" ){
    alert('メールアドレスは必ず入力してください。');
    document.getElementById('mail1').focus();
    document.getElementById('mail1').select();
    return;
  }

  // 電話番号は必須
  if( document.getElementById('tel2').value == "" ){
    alert('電話番号は必ず入力してください。');
    document.getElementById('tel1').focus();
    document.getElementById('tel1').select();
    return;
  }

  // 生年月日は必須
  if( document.getElementById('birth1').value == "" || document.getElementById('birth2').value == "" || document.getElementById('birth3').value == ""){
    alert('生年月日は必ず入力してください。');
    document.getElementById('birth1').focus();
    document.getElementById('birth1').select();
    return;
  }

  // 学校名・会社名は必須
  if( document.getElementById('company_name').value == "" ){
    alert('学校名・会社名は必ず入力してください。');
    document.getElementById('company_name').focus();
    document.getElementById('company_name').select();
    return;
  }

  // 採用区分は必須
//  if( !document.form_entry.radio_adoption[0].checked && !document.form_entry.radio_adoption[1].checked ){
//    alert('採用区分は必ず選択してください。');
//    document.form_entry.radio_adoption[0].focus();
//    document.form_entry.radio_adoption[0].select();
//    return;
//  }

//  // 面接希望日は必須
//  if( !document.form_entry.radio_explanationDate[0].checked && !document.form_entry.radio_explanationDate[1].checked && !document.form_entry.radio_explanationDate[2].checked && !document.form_entry.radio_explanationDate[3].checked ){
//    alert('面接希望日は必ず選択してください。');
//    document.form_entry.radio_explanationDate[0].focus();
//    document.form_entry.radio_explanationDate[0].select();
//    return;
//  }

  // ひらがなチェック
  var str = document.getElementById('kana1').value;
  if(str.match( /[^ぁ-ん　\s]+/ )){
    // ひらがな、全角スペース以外が入力されている場合
    alert(str + " : ひらがなで入力してください！");
    document.getElementById('kana1').focus();
    document.getElementById('kana1').select();
    return;
  }

  // フリガナチェック
  //if( document.getElementById('kana1').value != "" ){
  //  var checkstr = KatakanaZenToHan(document.getElementById('kana1').value);
  //  if( HankakuKatakanaCheck(checkstr) == false ){
  //    alert('フリガナには全角カタカナを指定してください。');
  //    document.getElementById('kana1').focus();
  //    document.getElementById('kana1').select();
  //    return;
  //  }
  //}

  // 郵便番号
  if( document.getElementById('post1').value != "" ){
    if( !IsNumber(document.getElementById('post1').value) ){
      alert('郵便番号には半角数字しか入力できません。');
      document.getElementById('post1').focus();
      document.getElementById('post1').select();
      return;
    }
  }
  if( document.getElementById('post2').value != "" ){
    if( !IsNumber(document.getElementById('post2').value) ){
      alert('郵便番号には半角数字しか入力できません。');
      document.getElementById('post2').focus();
      document.getElementById('post2').select();
      return;
    }
  }

  // Eメール
  if( document.getElementById('mail1').value != "" ){
    if( !funcIsEmail(document.getElementById('mail1').value) ){
      alert('メールアドレスが不正です。');
      document.getElementById('mail1').focus();
      document.getElementById('mail1').select();
      return;
    }
  }

  // 電話番号
  if( document.getElementById('tel1').value != "" ){
    if( !IsNumber(document.getElementById('tel1').value) ){
      alert('電話番号には半角数字しか入力できません。');
      document.getElementById('tel1').focus();
      document.getElementById('tel1').select();
      return;
    }
  }
  if( document.getElementById('tel2').value != "" ){
    if( !IsNumber(document.getElementById('tel2').value) ){
      alert('電話番号には半角数字しか入力できません。');
      document.getElementById('tel2').focus();
      document.getElementById('tel2').select();
      return;
    }
  }
  if( document.getElementById('tel3').value != "" ){
    if( !IsNumber(document.getElementById('tel3').value) ){
      alert('電話番号には半角数字しか入力できません。');
      document.getElementById('tel3').focus();
      document.getElementById('tel3').select();
      return;
    }
  }
  
  // 生年月日
  if( document.getElementById('birth1').value != "" ){
    if( !IsNumber(document.getElementById('birth1').value) ){
      alert('生年月日（西暦）には半角数字しか入力できません。');
      document.getElementById('birth1').focus();
      document.getElementById('birth1').select();
      return;
    }
  }
  if( document.getElementById('birth2').value != "" ){
    if( !IsNumber(document.getElementById('birth2').value) ){
      alert('生年月日（月）には半角数字しか入力できません。');
      document.getElementById('birth2').focus();
      document.getElementById('birth2').select();
      return;
    }
  }
  if( document.getElementById('birth3').value != "" ){
    if( !IsNumber(document.getElementById('birth3').value) ){
      alert('生年月日（日）には半角数字しか入力できません。');
      document.getElementById('birth3').focus();
      document.getElementById('birth3').select();
      return;
    }
  }
  
  //日付妥当性チェック
  if( !funcIsDate(document.getElementById('birth1').value,document.getElementById('birth2').value,document.getElementById('birth3').value)){
      alert('正しい日付を入力してください。');
      document.getElementById('birth1').focus();
      document.getElementById('birth1').select();
      return;
  }
  
  //半角カタカナが存在する場合は全角カタカナへ変換する
  document.getElementById('address1').value = KatakanaHanToZen(document.getElementById('address1').value);
  document.getElementById('address2').value = KatakanaHanToZen(document.getElementById('address2').value);
  document.getElementById('company_name').value = KatakanaHanToZen(document.getElementById('company_name').value);
  document.getElementById('course_name').value = KatakanaHanToZen(document.getElementById('course_name').value);
  document.getElementById('hope_occupational').value = KatakanaHanToZen(document.getElementById('hope_occupational').value);
  document.getElementById('notes').value = KatakanaHanToZen(document.getElementById('notes').value);


  // エラー無し　Submit実行
  frm.submit();
}


