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

function loadHTMLFile4(fName,para,seq){
		gseq = seq;
		httpObj4 = createXMLHttpRequest(displayData4);
		if (httpObj4){
				//httpObj4.open(Get_BName(),fName+"?"+para,true);
				//httpObj4.send(null);
				httpObj4.open("POST",fName,true);
				httpObj4.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
				httpObj4.send(para);
		}
}

function displayData4(){
		if ((httpObj4.readyState == 4) && (httpObj4.status == 200)){
				//document.getElementById("floNo"+gseq).innerHTML = httpObj4.responseText;
				//Load1();
					Load4();
		}else{
				document.getElementById("floNo"+gseq).innerHTML = "<b>Loading...</b>";
		}
}

function Load1(){
		if (DoubleSubmit()){
				//document.location = "FLO001.php";
				document.location = "FLO001.php?disp_flg=0";
		}
}

function Load2(){
		if (DoubleSubmit()) {
				document.location = "FLO002.php";
		}
}

function Load3(){
		if (DoubleSubmit()) {
				//document.location = "FLO003.php";
				document.location = "FLO001.php?disp_flg=1";
		}
}

function Load4(){
		if (DoubleSubmit()){
				document.location = "FLO001.php?disp_flg=1";
		}
}

//function set_syori(intNo,intsts,intseq){
function set_syori(intNo,intsts,intseq,inp_Comment,syain_cd){
	if (script_chk("コメント",inp_Comment)==false) {
		return false;
	}

		//if (DoubleSubmit()) {
				//document.e_gru.intsts.value=intsts;
				//document.e_gru.intindex.value=intNo;
				//document.e_gru.intsyorists.value=3;
				//document.e_gru.action = "FLO005.php"+"intsts="+intsts+"&intindex="+intNo+"&intsyorists=3&intseq="+intseq+"&Comment="+document.e_gru.Comment.value;
				//document.e_gru.method="POST";
				//document.e_gru.submit();
		//}
		//alert("intsts="+intsts+"&intindex="+intNo+"&intsyorists=3&intseq="+intseq+"&Comment="+document.e_gru.Comment.value);

	//loadHTMLFile4("FLO005.php?intsts="+intsts+"&intindex="+intNo+"&intsyorists=3&intseq="+intseq+"&Comment="+document.e_gru.Comment.value,intseq);
		//loadHTMLFile4("FLO005_1.php","intsts="+intsts+"&intindex="+intNo+"&intsyorists=3&intseq="+intseq+"&Comment="+document.e_gru.Comment.value+" ",intseq);
		loadHTMLFile4("FLO005_1.php","intsts="+intsts+"&intindex="+intNo+"&intsyorists=3&intseq="+intseq+"&Comment="+encodeURIComponent(inp_Comment)+" &syain_cd="+syain_cd,intseq);
}

-->
</SCRIPT>