function check(){

    if(window.confirm('削除してよろしいですか？')){ // 確認ダイアログを表示
    return true; // 「OK」時は削除を実行
    }

  else{ // 「キャンセル」時の処理

    window.alert('キャンセルされました'); // 警告ダイアログを表示
    return false; // 削除を中止

    }

}

// 大会記録の必須チェック
function input_check(){

var flag = 0;

// 設定開始（必須にする項目を設定してください）

if(document.hand_recode_input.title.value == ""){ // 「タイトル」の入力をチェック
	flag = 1;
	}
else if(document.hand_recode_input.hand_recode_title.value == ""){ // 「大会名」の入力をチェック
	flag = 1;
	}
else if(document.hand_recode_input.hand_recode_reg_user.value == ""){ // 「入力者」の入力をチェック
	flag = 1;
	}
else if(document.hand_recode_input.hand_recode_holl.value == ""){ // 「会場」の入力をチェック
	flag = 1;
	}
else if(document.hand_recode_input.hand_recode_holding_date.value == ""){ // 「開催日」の入力をチェック
	flag = 1;
	}

// 設定終了



// 大会スケジュールの必須チェック
function input_check_schedule(){

var flag = 0;

// 設定開始（必須にする項目を設定してください）

if(document.hand_schedule_input.title.value == ""){ // 「タイトル」の入力をチェック
	flag = 1;
	}
else if(document.hand_schedule_input.hand_schedule_title.value == ""){ // 「大会名」の入力をチェック
	flag = 1;
	}
else if(document.hand_schedule_input.hand_schedule_reg_user.value == ""){ // 「入力者」の入力をチェック
	flag = 1;
	}
else if(document.hand_schedule_input.hand_schedule_holl.value == ""){ // 「会場」の入力をチェック
	flag = 1;
	}
else if(document.hand_schedule_input.hand_schedule_holding_date.value == ""){ // 「開催日」の入力をチェック
	flag = 1;
	}

// 設定終了


if(flag){
	window.alert('必須項目に未入力がありました'); // 入力漏れがあれば警告ダイアログを表示
	return false; // 送信を中止

    }else{
	return true; // 送信を実行
	}

} 
