CON162.inc 1.52 KB
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false;              //サブミットフラグを定義
function DoubleSubmit(){      //ダブルサブミットチェック関数
   if (SFlg){                    //ダブルサブミットの場合
    alert("応答中です");         //メッセージを出力
    return false;
   }
   SFlg = true;                  //サブミットフラグを設定
   return true;                  //戻り値を設定
}

function sinki_chk(){
	if (DoubleSubmit()) {
		document.e_gru.sinki_edit_flg.value="sinki";
		document.e_gru.action = "CON162_1.php";
		document.e_gru.method="POST"
		document.e_gru.submit();
	}
}
function update_chk(){
		if (touban_chk() == false) {
			document.e_gru.zaiseki_name.focus();
			return false;
		}
	if (DoubleSubmit()) {
		document.e_gru.sinki_edit_flg.value="edit";
		document.e_gru.action = "CON162_1.php";
		document.e_gru.method="POST"
		document.e_gru.submit();
	}
}
function dell_chk(){
	if (touban_chk() == false) {
		document.e_gru.zaiseki_name.focus();
		return false;
	}
	if (confirm("削除します\nよろしいですか?")){
		if (DoubleSubmit()) {
			document.e_gru.dell_flg.value="dell";
			document.e_gru.action = "CON162_2.php";
			document.e_gru.method="POST"
			document.e_gru.submit();
		}
	}
}
function touban_chk(){
		if ((document.e_gru.zaiseki_name.selectedIndex == -1)  || (document.e_gru.zaiseki_name.value == "")) {
			alert("申請種類を選択してください");
			return false;
		}
}
function back(){
	if (DoubleSubmit()) {
		document.e_gru.action = "CON160.php";
		document.e_gru.method="POST"
		document.e_gru.submit();
	}
}
-->
</SCRIPT>