PRO009.inc 1.72 KB
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--

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


function add(intaddsts){
	var strsel;
	var stradd;
	document.e_gru.intaddsts.value=intaddsts;

	if (intaddsts==1){
		stradd="";
		strsel="";
		for (i=0; i<document.e_gru.syain_add.options.length; i++){ 
			stradd = stradd+document.e_gru.syain_add.options[i].value+"/";
		}
		for (i=0; i<document.e_gru.syain_list.options.length; i++){ 
			if(document.e_gru.syain_list.options[i].selected){ 
				strsel = strsel+document.e_gru.syain_list.options[i].value+"/";
			}
		}
	}
	else{
		stradd="";
		strsel="";
		for (i=0; i<document.e_gru.syain_add.options.length; i++){ 
			if(document.e_gru.syain_add.options[i].selected){ 
			}
			else{
				stradd = stradd+document.e_gru.syain_add.options[i].value+"/";
			}
		}
	}
	if (DoubleSubmit()) {
		document.e_gru.strsel.value=stradd+strsel;
		document.e_gru.action="PRO009.php";
		document.e_gru.method="POST"
		document.e_gru.submit();
		return false;
	}
}

function PRJ(){

	var stradd;

	stradd="";
	for (i=0; i<document.e_gru.syain_add.options.length; i++){ 
		stradd = stradd+document.e_gru.syain_add.options[i].value+"/";
	}
	if (stradd == "/"){
		stradd="";
	}

	if (DoubleSubmit()) {		
		document.e_gru.strsel.value=stradd;
		document.e_gru.action="PRO010.php";
		document.e_gru.method="POST"
		document.e_gru.submit();
		return false;
	}
}
function PRJ_rtn(){
	document.location = "PRO001.php";
}
	
-->
</SCRIPT>