MEM001.inc
1.35 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
<SCRIPT LANGUAGE="JAVASCRIPT">
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function memo_save(){
if ((document.e_gru.title_nm.value=="")) {
alert("メモタイトルは必須入力です");
document.e_gru.title_nm.focus();
return false;
}
if (document.e_gru.disp_set.checked==true){
document.e_gru.memo_mode.value=1;
}
if (DoubleSubmit()) {
document.e_gru.action = "MEM002.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
function memo_clear(type){
if (document.e_gru.title.value==0){
alert("メモタイトルを選択してください");
document.e_gru.title.focus();
return false;
}
if (confirm("メモ帳を削除します\nよろしいですか?")){
if (DoubleSubmit()) {
document.e_gru.type.value=type;
document.e_gru.action = "MEM002.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
}
function SetCombo(){
document.e_gru.action = "MEM001.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
function move_top(){
if (DoubleSubmit()) {
document.e_gru.action = "TOP000.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
}
</SCRIPT>