CON006_1.inc
2.98 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function chk(){
if (hissu_chk("申請書類名",document.e_gru.sinsei_name.value)==false) {
document.e_gru.sinsei_name.focus();
return false;
}
if (script_chk("申請書類名",document.e_gru.sinsei_name.value)==false) {
document.e_gru.sinsei_name.focus();
return false;
}
if (document.e_gru.syain_cd1.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd2.value!="") {
if (document.e_gru.syain_cd1.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
}
if (document.e_gru.syain_cd3.value!="") {
if (document.e_gru.syain_cd1.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd2.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
}
if (document.e_gru.syain_cd4.value!="") {
if (document.e_gru.syain_cd1.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd2.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd3.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
}
if (document.e_gru.syain_cd5.value!="") {
if (document.e_gru.syain_cd1.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd2.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd3.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
if (document.e_gru.syain_cd4.value=="") {
alert("第一次決裁者から順番に入力してください");
document.e_gru.syain_cd1.focus();
return false;
}
}
if (DoubleSubmit()) {
document.e_gru.action = "CON006_1_1.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
function dell_chk(){
if (confirm("申請書類を削除します\nよろしいですか?")){
if (DoubleSubmit()) {
document.e_gru.action = "CON006_2.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
}
function back(){
if (DoubleSubmit()) {
document.e_gru.action = "CON006.php";
document.e_gru.method="POST"
document.e_gru.submit();
}
}
-->
</SCRIPT>