ADM0010.js
1.43 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
//文字コードはEUCで保存すること
function chk_up(){
if(mycheck(document.frm.sMoney.value) == false){
alert("不正な金額が入力されています");
return false;
}
if( eval(document.frm.sMoney.value) < 0){
alert("マイナスの金額は入力できません");
return false;
}
document.frm.action = "ADM0011.php";
document.frm.method="POST";
document.frm.submit();
}
function chk_up2(){
document.frm.action = "ADM0013.php";
document.frm.method="POST";
document.frm.submit();
}
function mycheck(val){
if(val != ""){
if (val.search(/^(\\|\$)?(0|-?[1-9]\d*)$/) != -1 ){
return true;
}else{
return false;
}
}else{
return true;
}
}
function tabInit(mode){
//テーブルのクリア確認
if(confirm("全ての入出金データは消去されます\nよろしいですか?")){
if(confirm("データ消去を実行します\n本当によろしいですか?")){
document.frm.mode.value = mode;
document.frm.action = "ADM0012.php";
document.frm.method="POST";
document.frm.submit();
}else{
return false;
}
}else{
return false;
}
}
function fnc_clear_data(mode){
if (mode == 1){
document.getElementById("clear_menu1").style.display = "none";
document.getElementById("clear_menu2").style.display = "";
document.getElementById("clear_data").style.display = "";
}else{
document.getElementById("clear_menu1").style.display = "";
document.getElementById("clear_menu2").style.display = "none";
document.getElementById("clear_data").style.display = "none";
}
}