RPT001.inc
20.3 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var SFlg = false; //サブミットフラグを定義
function DoubleSubmit(){ //ダブルサブミットチェック関数
if (SFlg){ //ダブルサブミットの場合
alert("応答中です"); //メッセージを出力
return false;
}
SFlg = true; //サブミットフラグを設定
return true; //戻り値を設定
}
function RPTdel(){
if (confirm("営業日報を削除します\nよろしいですか?")){
//チェックボックスリスト作成
document.e_gru.strChkDat.value="";
if (document.e_gru.del_seq.length){
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
if (document.e_gru.del_seq[i].checked==true){
document.e_gru.strChkDat.value=document.e_gru.strChkDat.value+document.e_gru.del_seq[i].value+"/";
}
}
}else{
if (document.e_gru.del_seq.checked==true){
document.e_gru.strChkDat.value=document.e_gru.del_seq.value+"/";
}
}
if (document.e_gru.strChkDat.value == ""){
return false;
}
prm = prm += "&strChkDat="+document.e_gru.strChkDat.value;
function loadHTMLFile(fName , prm){
httpObjIN = createXMLHttpRequest(displayData1);
if (httpObjIN){
httpObjIN.open("POST",fName,true);
httpObjIN.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjIN.send(prm);
}
}
function displayData1(){
if ((httpObjIN.readyState == 4) && (httpObjIN.status == 200)){
first();
}else{
}
}
loadHTMLFile("RPT091.php",prm);
}
}
function All_chk(){
//確認チェックボックス一括チェック処理
var intFlg = 0; //一括チェックFLG
if (document.e_gru.del_seq.length){
//未チェックがあるか
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
if (document.e_gru.del_seq[i].checked==false){
intFlg=1;
}
}
if (intFlg==1){
//未チェックがある場合
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
document.e_gru.del_seq[i].checked=true;
}
}else{
//未チェックがない場合
for(i = 0 ; i <= document.e_gru.del_seq.length-1; i++ ){
document.e_gru.del_seq[i].checked=false;
}
}
}else{
//チェックボックス1個の場合
if (document.e_gru.del_seq.checked==false){
document.e_gru.del_seq.checked=true;
}else{
document.e_gru.del_seq.checked=false;
}
}
}
function comm_UP(seq){
obj=document.getElementById("commData_"+seq)
if (script_chk("コメント",obj.value)==false || obj.value == "") {
return false;
}
document.e_gru.com_seq.value=seq;
document.e_gru.com_area.value=obj.value;
document.e_gru.action = "RPT092.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
////////////////////////////////////////////////////////////////////////////
var naiyo_seq;
function naiyo_disp(seq){
naiyo_seq = seq;
if (document.getElementById("naiyo_"+seq).style.display == "block"){
document.getElementById("naiyo_"+seq).style.display = "none";
}else{
obj = document.getElementById("read_flg_"+seq);
if(obj.value == 0){
prm = prm += "&seq="+seq;
sendRequest(
on_loaded_Check_naiyo, //コールバック関数
prm, //データ
Get_BName(), //HTTPメソッド
'./RPT090.php', //URL
true, //非同期
true //強制ロード
)
}
obj.value=1;
document.getElementById("naiyo_"+seq).style.display = "block";
//背景色変更
document.getElementById("tbl"+seq+"_1").style.backgroundColor = "#ffffff";
document.getElementById("tbl"+seq+"_2").style.backgroundColor = "#ffffff";
document.getElementById("tbl"+seq+"_3").style.backgroundColor = "#ffffff";
document.getElementById("tbl"+seq+"_4").style.backgroundColor = "#ffffff";
document.getElementById("tbl"+seq+"_5").style.backgroundColor = "#ffffff";
document.getElementById("tbl"+seq+"_6").style.backgroundColor = "#ffffff";
}
}
function on_loaded_Check_naiyo(oj) {
document.getElementById("read_"+naiyo_seq).innerHTML="既読";
naiyo_seq = 0;
}
//** 営業日報新規作成 **//
function new_update(seq){
document.e_gru.re_seq.value=seq;
var stradd;
if (date_chk(document.e_gru.visit_y.value,document.e_gru.visit_m.value,document.e_gru.visit_d.value)==false) {
document.e_gru.visit_y.focus();
return false;
}
if ((document.e_gru.visit_h.value=="") && (document.e_gru.visit_min.value!="")) {
alert("時間を正しく選択してください");
document.e_gru.visit_h.focus();
return false;
}
if ((document.e_gru.visit_e_h.value=="") && (document.e_gru.visit_e_min.value!="")) {
alert("時間を正しく選択してください");
document.e_gru.visit_e_h.focus();
return false;
}
if ((document.e_gru.visit_h.value=="") && (document.e_gru.visit_e_h.value!="")){
alert("時間を正しく選択してください");
document.e_gru.visit_h.focus();
return false;
}
if ((document.e_gru.visit_h.value!="") && (document.e_gru.visit_e_h.value!="")){
if(document.e_gru.visit_h.value+document.e_gru.visit_min.value > document.e_gru.visit_e_h.value+document.e_gru.visit_e_min.value){
alert("時間を正しく選択してください");
document.e_gru.visit_h.focus();
return false;
}
}
if (document.e_gru.Visit[0].checked == true) {
if (document.e_gru.Sel_Visit.value==""){
alert("訪問先を選択してください");
document.e_gru.Sel_Visit.focus();
return false;
}
}
if (document.e_gru.Visit[1].checked == true) {
if (hissu_chk("訪問先",document.e_gru.Visit_input.value)==false) {
document.e_gru.Visit_input.focus();
return false;
}
if (script_chk("訪問先",document.e_gru.Visit_input.value)==false) {
document.e_gru.Visit_input.focus();
return false;
}
}
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 == "/"){
alert("訪問者を1人以上選択してください");
return false;
}
if (hissu_chk("訪問目的",document.e_gru.Purpose.value)==false) {
document.e_gru.Purpose.focus();
return false;
}
if (script_chk("訪問目的",document.e_gru.Purpose.value)==false) {
document.e_gru.Purpose.focus();
return false;
}
if (script_chk("メモ",document.e_gru.memo.value)==false) {
document.e_gru.memo.focus();
return false;
}
if (script_chk("課題",document.e_gru.Subject.value)==false) {
document.e_gru.Subject.focus();
return false;
}
if (script_chk("備考",document.e_gru.Note.value)==false) {
document.e_gru.Note.focus();
return false;
}
document.e_gru.strsel.value=stradd;
document.e_gru.action = "RPT005.php";
document.e_gru.method="POST";
document.e_gru.submit();
}
function add(intaddsts){
var strsel;
var stradd;
var inti;
var intchk;
var intPt;
var strArray = new Array();
var intflg=0;
document.e_gru.intaddsts.value=intaddsts;
//追加
if (intaddsts==1){
inti=document.e_gru.syain_add.length-1;
for(i=0;i<document.e_gru.syain_list.length;i++){
if(document.e_gru.syain_list.options[i].selected){
//データ存在チェック
for(intchk=0;intchk<document.e_gru.syain_add.length;intchk++){
if (document.e_gru.syain_list.options[i].value==document.e_gru.syain_add.options[intchk].value){
intflg=1;
break;
}
}
//配信リスト設定
if (intflg==0){
document.e_gru.syain_add.options[inti]=new Option(document.e_gru.syain_list.options[i].text,document.e_gru.syain_list.options[i].value);
inti=inti+1;
}
intflg=0;
}
}
//最終行空文字
document.e_gru.syain_add.options[inti]=new Option(" ","");
}else{
//削除
//削除選択データ取得
inti=0;
for(i=0;i<document.e_gru.syain_add.length;i++){
if(document.e_gru.syain_add.options[i].selected){
strArray[inti]=document.e_gru.syain_add.options[i].value;
inti=inti+1;
}
}
for(i=0;i<strArray.length;i++){
for(intchk=0;intchk<document.e_gru.syain_add.length;intchk++){
if (strArray[i]==document.e_gru.syain_add.options[intchk].value){
if (document.e_gru.syain_add.options[intchk].value!=""){
document.e_gru.syain_add.options[intchk]=null;
break;
}
}
}
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////
function modi_show(seq,pg){
cal1 = new JKL.Calendar("calid","e_gru","colname");
var div_id = "modi_"+seq ;
loadHTMLFileM("RPT006.php?intPage="+pg+"&re_seq="+seq);
function loadHTMLFileM(fName){
httpObj = createXMLHttpRequest(displayDataM);
if (httpObj){
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayDataM(){
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
arr = document.e_gru.divList.value.split("/");
for(i=0;i<arr.length;i++){
temp_id = "modi_"+arr[i];
document.getElementById(temp_id).style.display = "none";
document.getElementById(temp_id).innerHTML = "";
}
document.getElementById(div_id).innerHTML = httpObj.responseText;
document.getElementById(div_id).style.display = "block";
document.getElementById("sts_div").innerHTML = "";
// document.getElementById("optional_"+seq).style.display = "none";
}else{
document.getElementById("sts_div").innerHTML = "<b>Loading...</b>";
}
}
}
function modi_hide(seq){
var div_id = "modi_"+seq;
document.getElementById(div_id).innerHTML = "";
document.getElementById(div_id).style.display = "none";
}
function modi_opt(seq,flg){
var div_id = "optional_"+seq;
if(flg==1){
document.getElementById(div_id).style.display = "block";
}else{
document.getElementById(div_id).style.display = "none";
}
}
function fnc_opt(flg){
if(flg==1){
document.getElementById("optional_data").style.display = "block";
}else{
document.getElementById("optional_data").style.display = "none";
}
}
function new_hide(){
document.e_gru.disp_mode.value = 1;
document.e_gru.btnFunc.readOnly = false;
document.e_gru.btnFunc.disabled = false;
document.e_gru.btnS.readOnly = false;
document.e_gru.btnS.disabled = false;
document.getElementById("input_div").innerHTML = "";
document.getElementById("input_div").style.display = "none";
}
function new_show(){
cal1 = new JKL.Calendar("calid","e_gru","colname");
document.e_gru.disp_mode.value = 1;
// document.e_gru.btnFunc.readOnly = true;
// document.e_gru.btnFunc.disabled = true;
document.e_gru.btnS.readOnly = true;
document.e_gru.btnS.disabled = true;
loadHTMLFileS("RPT004.php?intPage="+document.e_gru.intPage.value);
}
function search_hide(){
document.e_gru.disp_mode.value = 1;
document.e_gru.btnFunc.readOnly = false;
document.e_gru.btnFunc.disabled = false;
document.e_gru.btnV.readOnly = false;
document.e_gru.btnV.disabled = false;
document.getElementById("input_div").innerHTML = "";
document.getElementById("input_div").style.display = "none";
}
function search_show(){
document.e_gru.disp_mode.value = 3;
document.e_gru.btnFunc.readOnly = true;
document.e_gru.btnFunc.disabled = true;
document.e_gru.btnV.readOnly = true;
document.e_gru.btnV.disabled = true;
loadHTMLFileS("RPT002.php?intPage="+document.e_gru.intPage.value);
}
function loadHTMLFileS(fName){
httpObj = createXMLHttpRequest(displayDataS);
if (httpObj){
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayDataS(){
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("input_div").innerHTML = httpObj.responseText;
document.getElementById("input_div").style.display = "block";
document.getElementById("sts_div").innerHTML = "";
if (document.getElementById("optional_data") != null){
document.getElementById("optional_data").style.display = "none";
}
}else{
document.getElementById("sts_div").innerHTML = "<b>Loading...</b>";
}
}
////////////////////////////////////////////////////////////////////////////
function make_Ichiran(){
if (document.e_gru.disp_mode.value == 1){
new_hide();
document.e_gru.disp_mode.value = 2;
document.e_gru.intPage.value="";
document.e_gru.btnFunc.value = "一 覧 へ";
document.e_gru.btnS.readOnly = true;
document.e_gru.btnS.disabled = true;
document.e_gru.btnV.readOnly = true;
document.e_gru.btnV.disabled = true;
document.e_gru.path.value = "RPT011.php";
document.getElementById("ttl").innerHTML = "作成一覧";
prm = "&disp_mode="+document.e_gru.disp_mode.value;
loadHTMLFile("RPT011.php?intPage="+document.e_gru.intPage.value+prm);
}else if (document.e_gru.disp_mode.value == 2){
document.e_gru.disp_mode.value = 1;
document.e_gru.intPage.value="";
document.e_gru.btnFunc.value = "作成一覧";
document.e_gru.btnS.readOnly = false;
document.e_gru.btnS.disabled = false;
document.e_gru.btnV.readOnly = false;
document.e_gru.btnV.disabled = false;
document.e_gru.path.value = "RPT011.php";
document.getElementById("ttl").innerHTML = "一覧";
prm = "&disp_mode="+document.e_gru.disp_mode.value;
loadHTMLFile("RPT011.php?intPage="+document.e_gru.intPage.value+prm);
}else if (document.e_gru.disp_mode.value == 3){
// document.e_gru.disp_mode.value = 1;
if (document.e_gru.start_y.value+document.e_gru.start_m.value+document.e_gru.start_d.value>document.e_gru.end_y.value+document.e_gru.end_m.value+document.e_gru.end_d.value){
alert("日付を正しく入力してください");
return false;
}
document.e_gru.path.value = "RPT011.php";
document.e_gru.btnFunc.value = "作成一覧";
document.getElementById("ttl").innerHTML = "検索結果";
prm = "start_y="+document.e_gru.start_y.value;
prm += "&start_m="+document.e_gru.start_m.value;
prm += "&start_d="+document.e_gru.start_d.value;
prm += "&end_y="+document.e_gru.end_y.value;
prm += "&end_m="+document.e_gru.end_m.value;
prm += "&end_d="+document.e_gru.end_d.value;
for(ii=0;ii<=2;ii++){
if (document.e_gru.chk_tori[ii].checked == true){
break;
}
}
prm += "&chk_tori="+document.e_gru.chk_tori[ii].value;
prm += "&Customer_group="+encodeURIComponent(document.e_gru.Customer_group.value)+"";
prm += "&Customer="+encodeURIComponent(document.e_gru.Customer.value)+"";
prm += "&Visit_input="+encodeURIComponent(document.e_gru.Visit_input.value)+"";
prm += "&Caller="+document.e_gru.Caller.value;
prm += "&disp_mode="+document.e_gru.disp_mode.value;
document.e_gru.path.value = "RPT011.php";
loadHTMLFile("RPT011.php?"+prm);
}
}
function first(){
if (document.e_gru.disp_mode.value == 1 || document.e_gru.disp_mode.value == 2){
document.e_gru.intPage.value="";
prm = "&disp_mode="+document.e_gru.disp_mode.value;
loadHTMLFile("RPT011.php?intPage="+document.e_gru.intPage.value+prm);
}else if(document.e_gru.disp_mode.value == 3){
make_Ichiran();
}
}
function PageCnt(flg){
// if (DoubleSubmit()) {
if (flg == 1){
document.e_gru.intPage.value = document.e_gru.prmBACK.value;
}else if ((flg == 2)){
document.e_gru.intPage.value = document.e_gru.prmNEXT.value;
}
path = document.e_gru.path.value;
prm = "&disp_mode="+document.e_gru.disp_mode.value;
if (document.e_gru.disp_mode.value == 3){
prm += "&start_y="+document.e_gru.start_y.value;
prm += "&start_m="+document.e_gru.start_m.value;
prm += "&start_d="+document.e_gru.start_d.value;
prm += "&end_y="+document.e_gru.end_y.value;
prm += "&end_m="+document.e_gru.end_m.value;
prm += "&end_d="+document.e_gru.end_d.value;
prm += "&chk_tori="+document.e_gru.end_d.value;
prm += "&Customer_group="+encodeURIComponent(document.e_gru.Customer_group.value);
prm += "&Customer="+encodeURIComponent(document.e_gru.Customer.value);
prm += "&Visit_input="+encodeURIComponent(document.e_gru.Visit_input.value);
prm += "&Caller="+document.e_gru.Caller.value;
}
loadHTMLFile(path+"?intPage="+document.e_gru.intPage.value+prm);
// }
}
function loadHTMLFile(fName){
httpObj = createXMLHttpRequest(displayData);
if (httpObj){
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}
}
function displayData(){
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
document.getElementById("rpt_main").innerHTML = httpObj.responseText;
// document.getElementById("rpt_main").innerText = httpObj.responseText;
// document.getElementById("rpt_main").style.display = "block";
document.getElementById("sts_div").innerHTML = "";
if (document.e_gru.prmBACK.value == ""){
if(document.e_gru.PageB.length){
for(i = 0 ; i <= document.e_gru.PageB.length-1; i++ ){
document.e_gru.PageB[i].readOnly = true;
document.e_gru.PageB[i].disabled = true;
}
}else{
document.e_gru.PageB.readOnly = true;
document.e_gru.PageB.disabled = true;
}
}else{
if(document.e_gru.PageB.length){
for(i = 0 ; i <= document.e_gru.PageB.length-1; i++ ){
document.e_gru.PageB[i].readOnly = false;
document.e_gru.PageB[i].disabled = false;
}
}else{
document.e_gru.PageB.readOnly = false;
document.e_gru.PageB.disabled = false;
}
}
if (document.e_gru.prmNEXT.value == ""){
if(document.e_gru.PageN.length){
for(i = 0 ; i <= document.e_gru.PageN.length-1; i++ ){
document.e_gru.PageN[i].readOnly = true;
document.e_gru.PageN[i].disabled = true;
}
}else{
document.e_gru.PageN.readOnly = true;
document.e_gru.PageN.disabled = true;
}
}else{
if(document.e_gru.PageN.length){
for(i = 0 ; i <= document.e_gru.PageN.length-1; i++ ){
document.e_gru.PageN[i].readOnly = false;
document.e_gru.PageN[i].disabled = false;
}
}else{
document.e_gru.PageN.readOnly = false;
document.e_gru.PageN.disabled = false;
}
}
arr = document.e_gru.divList.value.split("/");
for(i=0;i<arr.length;i++){
temp_id = "naiyo_"+arr[i];
temp_id2 = "comm_"+arr[i];
if(document.getElementById(temp_id) == null || document.getElementById(temp_id2) == null){
break;
}
document.getElementById(temp_id).style.display = "none";
document.getElementById(temp_id2).style.display = "none";
}
}else{
// document.getElementById("rpt_main").innerHTML = "<b>Loading...</b>";
document.getElementById("sts_div").innerHTML = "<b>Loading...</b>";
}
}
function CSVDownLoad(){
prm="";
if (document.e_gru.disp_mode.value==1){
prm +="disp_mode="+document.e_gru.disp_mode.value;
}else if (document.e_gru.disp_mode.value==2){
prm +="disp_mode="+document.e_gru.disp_mode.value;
}else if (document.e_gru.disp_mode.value==3){
prm +="disp_mode="+document.e_gru.disp_mode.value;
prm += "&start_y="+document.e_gru.start_y.value;
prm += "&start_m="+document.e_gru.start_m.value;
prm += "&start_d="+document.e_gru.start_d.value;
prm += "&end_y="+document.e_gru.end_y.value;
prm += "&end_m="+document.e_gru.end_m.value;
prm += "&end_d="+document.e_gru.end_d.value;
prm += "&chk_tori="+document.e_gru.end_d.value;
prm += "&Customer_group="+encodeURIComponent(document.e_gru.Customer_group.value);
prm += "&Customer="+encodeURIComponent(document.e_gru.Customer.value);
prm += "&Visit_input="+encodeURIComponent(document.e_gru.Visit_input.value);
prm += "&Caller="+document.e_gru.Caller.value;
}
document.e_gru.action = "RPT093.php?"+prm;
document.e_gru.method="GET";
document.e_gru.submit();
}
function comm_del(seq,cseq){
if (confirm("コメントを削除します\nよろしいですか?")){
//チェックボックスリスト作成
prm = "&seq="+seq+"&cseq="+cseq;
function loadHTMLFile(fName , prm){
httpObjIN = createXMLHttpRequest(displayData1);
if (httpObjIN){
httpObjIN.open("POST",fName,true);
httpObjIN.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjIN.send(prm);
}
}
function displayData1(){
if ((httpObjIN.readyState == 4) && (httpObjIN.status == 200)){
first();
}else{
}
}
loadHTMLFile("RPT094.php",prm);
}
}
//*** ファイルダウンロード ***//
function DownFile(strPass,strName){
document.e_gru.strFilePass.value=strPass;
document.e_gru.strFileName.value=strName;
document.e_gru.action="download.php";
document.e_gru.method="GET";
document.e_gru.submit();
}
function ChangeFUP(prm){
if(document.getElementById("delF"+prm).checked == true){
document.getElementById("upFile"+prm).disabled = false;
}else{
document.getElementById("upFile"+prm).disabled = true;
obj = document.getElementById("span"+prm);
stO = obj.innerHTML;
obj.innerHTML = stO;
}
}
function cal_get(strDate, divid){
arrYMD = strDate.split("/");
objY = document.e_gru.visit_y;
objM = document.e_gru.visit_m;
objD = document.e_gru.visit_d;
//年
for(i=0;i<objY.options.length;i++){
if(objY.options[i].value == arrYMD[0]){
objY.selectedIndex = i;
break;
}
}
//月
for(i=0;i<objM.options.length;i++){
if(objM.options[i].value == arrYMD[1]){
objM.selectedIndex = i;
break;
}
}
//日
for(i=0;i<objD.options.length;i++){
if(objD.options[i].value == arrYMD[2]){
objD.selectedIndex = i;
break;
}
}
cal1 = new JKL.Calendar("calid","e_gru","colname");
}
var cal1 = new JKL.Calendar("calid","e_gru","colname");
-->
</SCRIPT>
<script type="text/javascript" src="xmlhttp.js"></script>