PRO009.inc
1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<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>