WEL202S3_NSTDAERROR.jsp 74.7 KB
Newer Older
Thitichaipun Wutthisak committed
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 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014
										<input type="hidden" name="__wf__at1" value="<%= md.getWFDataValue("__wf__at1") %>">
										<input type="hidden" name="__wf__at2" value="<%= md.getWFDataValue("__wf__at2") %>">
										<input type="hidden" name="__wf__at3" value="<%= md.getWFDataValue("__wf__at3") %>">
										<input type="hidden" name="__wf__at4" value="<%= md.getWFDataValue("__wf__at4") %>">
										<input type="hidden" name="__wf__at5" value="<%= md.getWFDataValue("__wf__at5") %>">
										<input type="hidden" name="__wf__attach1" value="<%= md.getWFDataValue("__wf__attach1") %>">
										<input type="hidden" name="__wf__attach2" value="<%= md.getWFDataValue("__wf__attach2") %>">
										<input type="hidden" name="__wf__attach3" value="<%= md.getWFDataValue("__wf__attach3") %>">
										<input type="hidden" name="__wf__attach4" value="<%= md.getWFDataValue("__wf__attach4") %>">
										<input type="hidden" name="__wf__attach5" value="<%= md.getWFDataValue("__wf__attach5") %>">
										<input  type="hidden" name="__wf__addval" value="<%= md.getWFDataValue("__wf__addval") %>">
							<input type="hidden" name="__wf__employeeid" value="<%= md.getWFDataValue("__wf__employeeid") %>">
							<script language="javascript">callback = "<%= md.getWFDataValue("__wf__requisition_type") %>"; </script>
							<% 
							
							int addv = Integer.parseInt(md.getWFDataValue("__wf__addval"));
							
							if(addv<1) dss1 = "none";
							if(addv<2) dss2 = "none";
							if(addv<3) dss3 = "none";
							if(addv<4) dss4 = "none";
							if(addv<5) dss5 = "none";
							
							
							 %>							
							<table class="inframe" cellspacing=1 cellpadding=0  border=0>
                      <tbody>
                        <tr>
                          <td colspan="7" class="title1">
						
						    <div align="center">
						      <script language="javascript">swapLang("Welfare List");</script> <script  language="javascript" >//alert('<%= dss1 %>'+" "+'<%= dss2 %>'+" "+'<%= dss3 %>'+" "+'<%= dss4 %>'+" "+'<%= dss5 %>');</script>
				          </div></td>
                        </tr>
                        <tr>
                           <td colspan="2" class="desc" align="right"><script language="javascript">swapLang("Requisition Type");</script>&nbsp;</td>
                          <td colspan="2" class="desc"><span id="__requisition"></span><script language="javascript">SystemCode.getContentDWR(new Array("REQUISITION_TYPE","eng"),selectedcallbackSys);</script>
						  <!--nput type="button" onClick="javascript:TEST2();" value="TEst"-->						  </td>
                          <td width="7%" align="right" class="desc"><script language="javascript">swapLang("Send Date");</script>&nbsp;</td>
                          <td colspan="2" class="desc"><input type="text" size="10" name="__wf__send_date"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__send_date','<%=md.getWFDataValue("__wf__send_date")%>');</SCRIPT></td>
                        </tr>
                        <tr>
                          <td width="7%" class="title1"><div align="center">
                              <script language="javascript">swapLang("Welfare");</script>
                          &nbsp;</div></td>
                          <td width="31%" class="title1"><div align="center">
                              <script language="javascript">swapLang("Disease ");</script>
                          &nbsp;</div></td>
                          <td width="32%" class="title1"><div align="center">
						      <script language="javascript">swapLang("Name Surname In Family");</script>
				          &nbsp;</div></td>
                          <td width="7%" class="title1"><div align="center">
                              <script language="javascript">swapLang("Amount ");</script>
                          &nbsp;</div></td>
                          <td class="title1"><div align="center">
                              <script language="javascript">swapLang("Receipt Number");</script>
                          &nbsp;</div></td>
                          <td width="7%" class="title1"><div align="center">
                              <script language="javascript">swapLang("Receipt Date");</script>
                          &nbsp;</div></td>
                          <td width="8%" class="title1"><div align="center">
                              <script language="javascript">swapLang("Attach Doc");</script>
                          &nbsp;</div></td>                          
                        </tr>
                        <tr>
						<script language="javascript">
							wdata1 = "<%= md.getWFDataValue("__wf__welfare1") %>"; 
							wdata2 = "<%= md.getWFDataValue("__wf__welfare2") %>"; 
							wdata3 = "<%= md.getWFDataValue("__wf__welfare3") %>";
							wdata4 = "<%= md.getWFDataValue("__wf__welfare4") %>";
							wdata5 = "<%= md.getWFDataValue("__wf__welfare5") %>";
							sdata1 = "<%= md.getWFDataValue("__wf__disease1") %>"; 
							sdata2 = "<%= md.getWFDataValue("__wf__disease2") %>"; 
							sdata3 = "<%= md.getWFDataValue("__wf__disease3") %>";
							sdata4 = "<%= md.getWFDataValue("__wf__disease4") %>";
							sdata5 = "<%= md.getWFDataValue("__wf__disease5") %>";
							fdata1 = "<%= md.getWFDataValue("__wf__family1") %>"; 
							fdata2 = "<%= md.getWFDataValue("__wf__family2") %>"; 
							fdata3 = "<%= md.getWFDataValue("__wf__family3") %>";
							fdata4 = "<%= md.getWFDataValue("__wf__family4") %>";
							fdata5 = "<%= md.getWFDataValue("__wf__family5") %>";
							r11 =  "<%= md.getWFDataValue("__wf__detail11") %>"
							r12 =  "<%= md.getWFDataValue("__wf__detail12") %>"
							r13 =  "<%= md.getWFDataValue("__wf__detail13") %>"
							r14 =  "<%= md.getWFDataValue("__wf__detail14") %>"
							r15 =  "<%= md.getWFDataValue("__wf__detail15") %>"
							r21 =  "<%= md.getWFDataValue("__wf__detail21") %>"
							r22 =  "<%= md.getWFDataValue("__wf__detail22") %>"
							r23 =  "<%= md.getWFDataValue("__wf__detail23") %>"
							r24 =  "<%= md.getWFDataValue("__wf__detail24") %>"
							r25 =  "<%= md.getWFDataValue("__wf__detail25") %>"
							r31 =  "<%= md.getWFDataValue("__wf__detail31") %>"
							r32 =  "<%= md.getWFDataValue("__wf__detail32") %>"
							r33 =  "<%= md.getWFDataValue("__wf__detail33") %>"
							r34 =  "<%= md.getWFDataValue("__wf__detail34") %>"
							r35 =  "<%= md.getWFDataValue("__wf__detail35") %>"
							r41 =  "<%= md.getWFDataValue("__wf__detail41") %>"
							r42 =  "<%= md.getWFDataValue("__wf__detail42") %>"
							r43 =  "<%= md.getWFDataValue("__wf__detail43") %>"
							r44 =  "<%= md.getWFDataValue("__wf__detail44") %>"
							r45 =  "<%= md.getWFDataValue("__wf__detail45") %>"
							r51 =  "<%= md.getWFDataValue("__wf__detail51") %>"
							r52 =  "<%= md.getWFDataValue("__wf__detail52") %>"
							r53 =  "<%= md.getWFDataValue("__wf__detail53") %>"

							r54 =  "<%= md.getWFDataValue("__wf__detail54") %>"
							r55 =  "<%= md.getWFDataValue("__wf__detail55") %>"
						</script>
						
                          <td class="desc"><span id="__welfare1"></span>
						    <input type="hidden" size="30" name="__wf__welfare1" readonly value="<%= md.getWFDataValue("__wf__welfare1") %>">
						   <input type="hidden" size="30" name="__wf__docgid1" readonly value="<%= md.getWFDataValue("__wf__docgid1") %>">
						   <input type="hidden" size="30" name="__wf__whouse1" readonly value="<%= md.getWFDataValue("__wf__whouse1") %>">
						  <input type="text" size="30" name="__wf__welfaredesc1" readonly value="<%= md.getWFDataValue("__wf__welfaredesc1") %>">						  </td>
                          <td class="desc"><span id="__disease1"></span><script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script>
						   <input type="hidden" size="30" name="__wf__disease1" readonly value="<%= md.getWFDataValue("__wf__disease1") %>">
						  <input type="text" size="30" name="__wf__diseasedesc1" readonly value="<%= md.getWFDataValue("__wf__diseasedesc1") %>">						  </td>
                          <td class="desc"><span id="__family1"></span></td>
                          <td class="desc"><input name="__wf__amount1" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount1','<%=md.getWFDataValue("__wf__amount1")%>');</SCRIPT></td>
                          <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number1" onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number1','<%=md.getWFDataValue("__wf__receipt_number1")%>');</SCRIPT></td>
                          <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date1"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date1','<%=md.getWFDataValue("__wf__receipt_date1")%>');</SCRIPT>						  </td>
                          <td class="desc"><div align="center"><a href="javascript:goPages('1','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image112','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="Calendar" name="Image112" width="20"  border="0" align="absmiddle" id="Image112" ></a></div></td>
                        </tr>
                        <tr>
                          <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td>
                          <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid1" value="<%=md.getWFDataValue("__wf__sitewelid1")%>"><input type="hidden" size="50" name="__wf__sitewelgid1" value="<%=md.getWFDataValue("__wf__sitewelgid1")%>"><input type="text" size="50" name="__wf__sitewel_name1" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name1','<%=md.getWFDataValue("__wf__sitewel_name1")%>');</SCRIPT>
						  <!--span id="__sitewel1"></span><script  language="javascript">SearchDWR.searchAll(new Array("msitewel","sitewelid,companyid,tdesc,edesc","","sitewelid","langon"),sitewel);</script--></td>
                          <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td>
                          <td colspan="3" class="desc"><input type="text" readonly  name="__wf__other_sitewel1" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel1','<%=md.getWFDataValue("__wf__other_sitewel1")%>');</SCRIPT></td>
                        </tr>
						   <tr id="dt11" style="display:<%= dss1 %> ">
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Detail");</script>
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail11"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost11','<%=md.getWFDataValue("__wf__cost11")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open11','<%=md.getWFDataValue("__wf__open11")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt12" style="display:none ">
						     <td class="desc"><div align="right">
						   
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail12"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost12','<%=md.getWFDataValue("__wf__cost12")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open12','<%=md.getWFDataValue("__wf__open12")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt13" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail13"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost13','<%=md.getWFDataValue("__wf__cost13")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open13','<%=md.getWFDataValue("__wf__open13")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt14" style="display:none ">
						     <td class="desc"><div align="right">
						        
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail14"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost14','<%=md.getWFDataValue("__wf__cost14")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open14','<%=md.getWFDataValue("__wf__open14")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt15" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail15"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost15','<%=md.getWFDataValue("__wf__cost15")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open15','<%=md.getWFDataValue("__wf__open15")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						   <tr id="wel21" style="display:none ">
                          <td class="desc"><span id="__welfare2"></span>
						    <input type="hidden" size="30" name="__wf__welfare2" readonly value="<%= md.getWFDataValue("__wf__welfare2") %>">
						   <input type="hidden" size="30" name="__wf__docgid2" readonly value="<%= md.getWFDataValue("__wf__docgid2") %>">
						   <input type="hidden" size="30" name="__wf__whouse2" readonly value="<%= md.getWFDataValue("__wf__whouse2") %>">
						  <input type="text" size="30" name="__wf__welfaredesc2" readonly value="<%= md.getWFDataValue("__wf__welfaredesc2") %>">						  </td>
                          <td class="desc"><span id="__disease2"></span>
						   <input type="hidden" size="30" name="__wf__disease2" readonly value="<%= md.getWFDataValue("__wf__disease2") %>">
						  <input type="text" size="30" name="__wf__diseasedesc2" readonly value="<%= md.getWFDataValue("__wf__diseasedesc2") %>">						  </td>
                          <td class="desc"><span id="__family2"></span></td>
                          <td class="desc"><input name="__wf__amount2" readonly  type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);"  onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount2','<%=md.getWFDataValue("__wf__amount2")%>');</SCRIPT></td>
                          <td class="desc"><input type="text" size="15" name="__wf__receipt_number2" readonly  onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number2','<%=md.getWFDataValue("__wf__receipt_number2")%>');</SCRIPT></td>
                          <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date2"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date2','<%=md.getWFDataValue("__wf__receipt_date2")%>');</SCRIPT>						  </td>
                          <td class="desc"><div align="center"><a href="javascript:goPages('2','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image122','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="Calendar" name="Image122" width="20" height="20"  border="0" align="absmiddle" id="Image122" ></a></div></td>
                        </tr>
                          <tr id="wel22" style="display:none ">
                          <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td>
                          <td colspan="2" class="desc"> <input type="hidden" size="50" name="__wf__sitewelid2"  value="<%=md.getWFDataValue("__wf__sitewelid2")%>"><input type="hidden" size="50" name="__wf__sitewelgid2" value="<%=md.getWFDataValue("__wf__sitewelgid2")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid2','<%=md.getWFDataValue("__wf__sitewelid2")%>');</SCRIPT><input type="text" size="50" name="__wf__sitewel_name2" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name2','<%=md.getWFDataValue("__wf__sitewel_name2")%>');</SCRIPT></td>
                          <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td>
                          <td colspan="3" class="desc"><input type="text" readonly  name="__wf__other_sitewel2" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel2','<%=md.getWFDataValue("__wf__other_sitewel2")%>');</SCRIPT></td>
                        </tr>
						   <tr id="dt21" style="display:<%= dss2 %> ">
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Detail");</script>
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail21"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost21','<%=md.getWFDataValue("__wf__cost21")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open21','<%=md.getWFDataValue("__wf__open21")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt22" style="display:none ">
						     <td class="desc"><div align="right">
						   
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail22"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost22','<%=md.getWFDataValue("__wf__cost22")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open22','<%=md.getWFDataValue("__wf__open22")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt23" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail23"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost23','<%=md.getWFDataValue("__wf__cost23")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open23','<%=md.getWFDataValue("__wf__open23")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt24" style="display:none ">
						     <td class="desc"><div align="right">
						        
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail24"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost24','<%=md.getWFDataValue("__wf__cost24")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open24','<%=md.getWFDataValue("__wf__open24")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt25" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail25"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						   <tr id="wel31" style="display:none ">
                          <td class="desc"><span id="__welfare3"></span>
						    <input type="hidden" size="30" name="__wf__welfare3" readonly value="<%= md.getWFDataValue("__wf__welfare3") %>">
						   <input type="hidden" size="30" name="__wf__docgid3" readonly value="<%= md.getWFDataValue("__wf__docgid3") %>">
						   <input type="hidden" size="30" name="__wf__whouse3" readonly value="<%= md.getWFDataValue("__wf__whouse3") %>">
						  <input type="text" size="30" name="__wf__welfaredesc3" readonly value="<%= md.getWFDataValue("__wf__welfaredesc3") %>">						  </td>
                          <td class="desc"><span id="__disease3"></span>
						   <input type="hidden" size="30" name="__wf__disease3" readonly value="<%= md.getWFDataValue("__wf__disease3") %>">
						  <input type="text" size="30" name="__wf__diseasedesc3" readonly value="<%= md.getWFDataValue("__wf__diseasedesc3") %>">						  </td>
                          <td class="desc"><span id="__family3"></span></td>
                          <td class="desc"><input name="__wf__amount3" type="text" readonly  dir="rtl" onKeyPress="javascript:chkInt1Dot(this);"  onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount3','<%=md.getWFDataValue("__wf__amount3")%>');</SCRIPT></td>
                          <td class="desc"><input type="text" size="15"  readonly name="__wf__receipt_number3" onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number3','<%=md.getWFDataValue("__wf__receipt_number3")%>');</SCRIPT></td>
                          <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date3"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date3','<%=md.getWFDataValue("__wf__receipt_date3")%>');</SCRIPT>						  </td>
                          <td class="desc"><div align="center"><a href="javascript:goPages('3','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image132','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="Calendar" name="Image132" width="20"  border="0" align="absmiddle" id="Image132"></a></div></td>
                        </tr>
                          <tr id="wel32" style="display:none ">
                          <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td>
                          <td colspan="2" class="desc">  <input type="hidden" size="50" name="__wf__sitewelid3"  value="<%=md.getWFDataValue("__wf__sitewelid3")%>"><input type="hidden" size="50" name="__wf__sitewelgid3" value="<%=md.getWFDataValue("__wf__sitewelgid3")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid3','<%=md.getWFDataValue("__wf__sitewelid3")%>');</SCRIPT><input type="text" size="50" name="__wf__sitewel_name3" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name3','<%=md.getWFDataValue("__wf__sitewel_name3")%>');</SCRIPT></td>
                          <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td>
                          <td colspan="3" class="desc"><input type="text"  readonly name="__wf__other_sitewel3" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel3','<%=md.getWFDataValue("__wf__other_sitewel3")%>');</SCRIPT></td>
                        </tr>
						   <tr id="dt31" style="display:<%= dss3 %> ">
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Detail");</script>
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail31"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost31','<%=md.getWFDataValue("__wf__cost31")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open31','<%=md.getWFDataValue("__wf__open31")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt32" style="display:none ">
						     <td class="desc"><div align="right">
						   
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail32"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost32','<%=md.getWFDataValue("__wf__cost32")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open32','<%=md.getWFDataValue("__wf__open32")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt33" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail33"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost33','<%=md.getWFDataValue("__wf__cost33")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open33','<%=md.getWFDataValue("__wf__open33")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt34" style="display:none ">
						     <td class="desc"><div align="right">
						        
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail34"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost34','<%=md.getWFDataValue("__wf__cost34")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open34','<%=md.getWFDataValue("__wf__open34")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt35" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail35"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost35','<%=md.getWFDataValue("__wf__cost35")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open35','<%=md.getWFDataValue("__wf__open35")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						   <tr id="wel41" style="display:none ">
                          <td class="desc"><span id="__welfare4"></span>
						    <input type="hidden" size="30" name="__wf__welfare4" readonly value="<%= md.getWFDataValue("__wf__welfare4") %>">
						   <input type="hidden" size="30" name="__wf__docgid4" readonly value="<%= md.getWFDataValue("__wf__docgid4") %>">
						   <input type="hidden" size="30" name="__wf__whouse4" readonly value="<%= md.getWFDataValue("__wf__whouse4") %>">
						  <input type="text" size="30" name="__wf__welfaredesc4" readonly value="<%= md.getWFDataValue("__wf__welfaredesc4") %>">						  </td>
                          <td class="desc"><span id="__disease4"></span>
						   <input type="hidden" size="30" name="__wf__disease4" readonly value="<%= md.getWFDataValue("__wf__disease4") %>">
						  <input type="text" size="30" name="__wf__diseasedesc4" readonly value="<%= md.getWFDataValue("__wf__diseasedesc4") %>">						  </td>
                          <td class="desc"><span id="__family4"></span></td>
                          <td class="desc"><input name="__wf__amount4" type="text" readonly  dir="rtl" onKeyPress="javascript:chkInt1Dot(this);"  onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount4','<%=md.getWFDataValue("__wf__amount4")%>');</SCRIPT></td>
                          <td class="desc"><input type="text" size="15" name="__wf__receipt_number4" readonly  onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number4','<%=md.getWFDataValue("__wf__receipt_number4")%>');</SCRIPT></td>
                          <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date4"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date4','<%=md.getWFDataValue("__wf__receipt_date4")%>');</SCRIPT>						  </td>
                          <td class="desc"><div align="center"><a href="javascript:goPages('4','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image142','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="Calendar" name="Image142" width="20"  border="0" align="absmiddle" id="Image142" ></a></div></td>
                        </tr>
                          <tr id="wel42" style="display:none ">
                          <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td>
                          <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid4"  value="<%=md.getWFDataValue("__wf__sitewelid4")%>"><input type="hidden" size="50" name="__wf__sitewelgid4" value="<%=md.getWFDataValue("__wf__sitewelgid4")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid4','<%=md.getWFDataValue("__wf__sitewelid4")%>');</SCRIPT> <input type="text" size="50" name="__wf__sitewel_name4" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name4','<%=md.getWFDataValue("__wf__sitewel_name4")%>');</SCRIPT></td>
                          <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td>
                          <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel4" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel4','<%=md.getWFDataValue("__wf__other_sitewel4")%>');</SCRIPT></td>
                        </tr>
						   <tr id="dt41" style="display:<%= dss4 %> ">
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Detail");</script>
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail41"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost41','<%=md.getWFDataValue("__wf__cost41")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open41','<%=md.getWFDataValue("__wf__open41")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt42" style="display:none ">
						     <td class="desc"><div align="right">
						   
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail42"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost42','<%=md.getWFDataValue("__wf__cost42")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open42','<%=md.getWFDataValue("__wf__open42")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt43" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail43"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost43','<%=md.getWFDataValue("__wf__cost43")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open43','<%=md.getWFDataValue("__wf__open43")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt44" style="display:none ">
						     <td class="desc"><div align="right">
						        
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail44"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost44','<%=md.getWFDataValue("__wf__cost44")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open44','<%=md.getWFDataValue("__wf__open44")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt45" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail45"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost45','<%=md.getWFDataValue("__wf__cost45")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open45','<%=md.getWFDataValue("__wf__open45")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						   <tr id="wel51" style="display:none ">
                          <td class="desc"><span id="__welfare5"></span>
						   <input type="hidden" size="30" name="__wf__welfare5" readonly value="<%= md.getWFDataValue("__wf__welfare5") %>">
						   <input type="hidden" size="30" name="__wf__docgid5" readonly value="<%= md.getWFDataValue("__wf__docgid5") %>">
						   <input type="hidden" size="30" name="__wf__whouse5" readonly value="<%= md.getWFDataValue("__wf__whouse5") %>">
						  <input type="text" size="30" name="__wf__welfaredesc5" readonly value="<%= md.getWFDataValue("__wf__welfaredesc5") %>">						  </td>
                          <td class="desc"><span id="__disease5"></span>
						   <input type="hidden" size="30" name="__wf__disease5" readonly value="<%= md.getWFDataValue("__wf__disease5") %>">
						  <input type="text" size="30" name="__wf__diseasedesc5" readonly value="<%= md.getWFDataValue("__wf__diseasedesc5") %>">						  </td>
                          <td class="desc"><span id="__family5"></span></td>
                          <td class="desc"><input type="text" size="8" dir="rtl" name="__wf__amount5"  readonly value="0" onKeyPress="javascript:chkInt1Dot(this);"  onKeyUp="javascript:sumScore(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount5','<%=md.getWFDataValue("__wf__amount5")%>');</SCRIPT></td>
                          <td class="desc"><input type="text" size="15" name="__wf__receipt_number5"  readonly onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number5','<%=md.getWFDataValue("__wf__receipt_number5")%>');</SCRIPT></td>
                          <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date5"  readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date5','<%=md.getWFDataValue("__wf__receipt_date5")%>');</SCRIPT>						  </td>
                          <td class="desc"><div align="center"><a href="javascript:goPages('5','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image152','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="Calendar" name="Image152" width="20"  border="0" align="absmiddle" id="Image152" ></a></div></td>
                        </tr>
                          <tr id="wel52" style="display:none ">
                          <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td>
                          <td colspan="2" class="desc"> <input type="hidden" size="50" name="__wf__sitewelid5"  value="<%=md.getWFDataValue("__wf__sitewelid5")%>"><input type="hidden" size="50" name="__wf__sitewelgid5" value="<%=md.getWFDataValue("__wf__sitewelgid5")%>">                            <SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid5','<%=md.getWFDataValue("__wf__sitewelid5")%>');</SCRIPT>
                            <input type="text" size="50" name="__wf__sitewel_name5" readonly>
                            <SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name5','<%=md.getWFDataValue("__wf__sitewel_name5")%>');</SCRIPT></td>
                          <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td>
                          <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel5" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel5','<%=md.getWFDataValue("__wf__other_sitewel5")%>');</SCRIPT></td>
                        </tr>
                        <tr>
                            <tr id="dt51" style="display:<%= dss5 %> ">
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Detail");</script>
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail51"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost51','<%=md.getWFDataValue("__wf__cost51")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open51','<%=md.getWFDataValue("__wf__open51")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt52" style="display:none ">
						     <td class="desc"><div align="right">
						   
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail52"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost52','<%=md.getWFDataValue("__wf__cost52")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open52','<%=md.getWFDataValue("__wf__open52")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt53" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail53"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost53" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost53','<%=md.getWFDataValue("__wf__cost53")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open532" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl">
						     <SCRIPT LANGUAGE="JavaScript">setValue('__wf__open53','<%=md.getWFDataValue("__wf__open53")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
						  <tr id="dt54" style="display:none ">
						     <td class="desc"><div align="right">
						        
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail54"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost54','<%=md.getWFDataValue("__wf__cost54")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open54','<%=md.getWFDataValue("__wf__open54")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center">&nbsp;</div></td>
				        </tr>
						  <tr id="dt55" style="display:none ">
						     <td class="desc"><div align="right">
						       
				             &nbsp;</div></td>
						     <td class="desc"><span id="__detail55"></span>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Cost");</script>
				             &nbsp;</div></td>
						     <td class="desc"><input type="text" name="__wf__cost55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost55','<%=md.getWFDataValue("__wf__cost55")%>');</SCRIPT></td>
						     <td class="desc"><div align="right">
						         <script language="javascript">swapLang("Request");</script>
				             &nbsp;</div></td>
						     <td class="desc" nowrap><input type="text" name="__wf__open55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open55','<%=md.getWFDataValue("__wf__open55")%>');</SCRIPT></td>
						     <td class="desc" nowrap>
							   <div align="center"> &nbsp;</div></td>
				        </tr>
                          <td colspan="3" align="center" class="title1"><div align="center"><script language="javascript">swapLang("Grand Total");</script></div></td>
                          <td align="right" class="title1"><span class="desc">
                            <input type="text" size="8" dir="rtl" name="__wf__grand_total" value="0" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__grand_total','<%=md.getWFDataValue("__wf__grand_total")%>');</SCRIPT>
                          </span></td>
                          <td colspan="3" align="right" class="title1">
						  &nbsp;</td>
                        </tr>
						      <tr>
                          <td colspan="7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <table cellspacing="0" cellpadding="0">
                           
                              <tr>
                                <td colspan="8"></td>
                              </tr>
                              <tr>
                                <td colspan="8" class="desc2">กรณีประสงค์ให้นำเงินดังกล่าวโอนเข้าบัญชีเงินเดือน <br>
      หากนำส่งเอกสารหลัง 12.00 น. วันที่ 15 ของเดือน จะนำเงินเข้าบัญชีในเดือนถัดไป <br>
      กรณีประสงค์ขอรับเป็นเงินสดวงเงินไม่เกินวันละ 2,000 บาท <br>
      โปรดนำเอกสารประกอบการเบิกมารับเงินสด ในวันอังคารและพฤหัสบดี เวลา 9.00-12.00 และ 13.00-15.30 </td>
                              </tr>
                            </table></td>
                        </tr>
                  
											  <tr>
                      </tbody>
                    </table>
				
					<script language="javascript">SearchDWR.searchAll(new Array("mrequisitiontype","requisid,tdesc,edesc","","requisid","langon"),selectrequis);</script>
                      <script language="javascript">SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '<%= md.getWFDataValue("__wf__employeeid") %>'","employeeid","langon"),selectfamily);</script>
                
								<SCRIPT LANGUAGE="JavaScript">
					showcol(<%= md.getWFDataValue("__wf__addval") %>);
					var adval = parseInt('<%= md.getWFDataValue("__wf__addval") %>');
					//alert(adval);
					if(adval !=""){					
							if(adval>=1)
								showtcol('1','<%= md.getWFDataValue("__wf__at1") %>');
							if(adval>=2)
								showtcol('2','<%= md.getWFDataValue("__wf__at2") %>');
							if(adval>=3)
								showtcol('3','<%= md.getWFDataValue("__wf__at3") %>');
							if(adval>=4)
								showtcol('4','<%= md.getWFDataValue("__wf__at4") %>');
							if(adval>=5)
								showtcol('5','<%= md.getWFDataValue("__wf__at5") %>');
					}
					</SCRIPT>
									</FONT></TD>
									<TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
								</TR>
								<TR>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
									<TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
								</TR>
							</TABLE>
							<!-- End User Code -->
							<SCRIPT LANGUAGE="JavaScript">setDisabled();</SCRIPT>
           					<BR>
           					<!-- Remark -->
           					<TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
								<TR>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD>
									<TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD>
								</TR>
								<TR>
									<TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
									<TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF">
										<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
											<TR BGCOLOR="#0099CC">
												<TD WIDTH="15%" VALIGN="top" BGCOLOR="#0099CC"><DIV ALIGN="right"><%=screenSingle.getLabel("REMARK")%> :</DIV></TD>
												<TD WIDTH="85%" BGCOLOR="#FFFFFF">
													<%=screenSingle.getInput("REMARK")%>
												</TD>
											</TR>
										</TABLE>
									</FONT></TD>
									<TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
								</TR>
								<TR>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
									<TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
									<TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
								</TR>
           					</TABLE>
           					<!-- End Remark -->
           					<BR>
          <!-- Reference Note -->
          <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
            <TR>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
              <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF">
                <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
                  <%
										String reference_param = "";
										DbInquiry wf_reference_di = (DbInquiry)screenSingle.getRecord().getChild("WF_REFERENCE");
										if( wf_reference_di != null && wf_reference_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){

											reference_param = "";
											do{
												reference_param += ","+wf_reference_di.getString("REF_WF_ID")+":"+wf_reference_di.getString("REF_WF_VER")+":"+wf_reference_di.getString("REF_WF_SEQ_NO")+":"+
																   wf_reference_di.getString("REF_STEP_ID")+":"+wf_reference_di.getString("REF_STEP_SEQ_NO")+":"+wf_reference_di.getString("REF_ACTOR_ID")+":"+
																   wf_reference_di.getString("REF_ACTOR_SEQ_NO")+":"+wf_reference_di.getString("REF_POSITION_CODE");
											}while( wf_reference_di.next() );
											reference_param = reference_param.replaceFirst(",","");
										}else{
											reference_param = chkNull.chkNullString(request.getParameter("reference_param"));
											if( !chkNull.chkNullString(request.getParameter("reference_delete")).equals("") ){
												String reference_delete = chkNull.chkNullString(request.getParameter("reference_delete"));
												String[] temp_delete = reference_delete.split(",");
												//System.out.println("Refer Delete : "+reference_delete);
												for( int i = 0 ; i < temp_delete.length ; i++ ){
													reference_param = reference_param.replaceFirst(temp_delete[i],"");
												}
												reference_param = reference_param.replaceAll(",,",",");
												//System.out.println("Refer Param : "+reference_param);
											}
										}
										String[] temp = reference_param.split(",");
										if( temp.length > 0 && reference_param.length() > 0 ){
											String[] temp2 = temp[0].split(":");
											DbInquiry reference_di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("VW_INCIDENT1");
											reference_di.setColumn("*");
											reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+
																   "WF_VER = '"+temp2[1]+"' AND "+
																   "WF_SEQ_NO = '"+temp2[2]+"' AND "+
																   "STEP_ID = '"+temp2[3]+"' AND "+
																   "STEP_SEQ_NO = '"+temp2[4]+"' AND "+
																   "ACTOR_ID = '"+temp2[5]+"' AND "+
																   "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+
																   "POSITION_CODE = '"+temp2[7]+"'"
																  );
											reference_di.refresh();
											if( reference_di.next() ){
										%>
                  <TR>
                    <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD>
                    <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD>
                    <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD>
                    <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD>
                  </TR>
                  <%
											}
											for( int i = 1 ; i < temp.length ; i++ ){
												temp2 = temp[i].split(":");
												reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+
														   			   "WF_VER = '"+temp2[1]+"' AND "+
														   			   "WF_SEQ_NO = '"+temp2[2]+"' AND "+
																	   "STEP_ID = '"+temp2[3]+"' AND "+
																	   "STEP_SEQ_NO = '"+temp2[4]+"' AND "+
																	   "ACTOR_ID = '"+temp2[5]+"' AND "+
																	   "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+
																	   "POSITION_CODE = '"+temp2[7]+"'"
																	  );
												reference_di.refresh();
												if( reference_di.next() ){
										%>
                  <TR>
                    <TD WIDTH="18%">&nbsp;</TD>
                    <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD>
                    <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD>
                    <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD>
                  </TR>
                  <%
												}
											}
										}else{
										%>
                  <TR BGCOLOR="#0099CC">
                    <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD>
                    <TD COLSPAN="4" BGCOLOR="#FFFFFF">&nbsp;</TD>
                  </TR>
                  <%
										}
										%>
                </TABLE>
                </FONT></TD>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
            </TR>
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
          </TABLE>
          <!-- End Reference Note -->
          <BR>
          <!-- Attach File -->
          <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
            <TR>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
              <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF">
                <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
                  <%
				      					InitialEnvironment environment = new InitialEnvironment("GLOBAL");
										Downloadfile download = null;
										DbInquiry attached_file_di = (DbInquiry)screenSingle.getRecord().getChild("ATTACHED_FILE");
										if( attached_file_di != null && attached_file_di.foundData()  && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){

											download = new Downloadfile(environment.getValue("DIRNOTEATTACHTFILE-dir")+screenSingle.getUProfile().get("companyid")+"/"+
																		chkNull.chkNullString(request.getParameter("wf_id"),"0")+"/"+
																		chkNull.chkNullString(request.getParameter("wf_ver"),"0")+"/"+
																		chkNull.chkNullString(request.getParameter("wf_seq_no"),"0"));
										}else{
					      					download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")+attach_time);
					      					if( !chkNull.chkNullString(request.getParameter("delete_file")).equals("") ){
					      						String[] file_name = request.getParameter("delete_file").split(",");
					      						for( int i = 0 ; i < file_name.length ; i++ ){
					      							download.delFile(file_name[i]);
					      						}
					      					}
										}
				      					HashMap attach_file_hm = download.listFile();
				      					ArrayList file_name = (ArrayList)attach_file_hm.get("file_name");
				      					ArrayList file_size = (ArrayList)attach_file_hm.get("file_size");
				      					
				      					if( file_name.size() > 0 ){
				      					%>
                  <TR>
                    <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD>
                    <TD WIDTH="4%"><DIV ALIGN="center">
                        <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(0)%>" DISABLED>
                      </DIV></TD>
                    <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(0))%>"><%=file_name.get(0)%></A> </DIV></TD>
                    <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD>
                  </TR>
                  <%
				      						for( int i = 1 ; i < file_name.size() ; i++ ){
				      					%>
                  <TR>
                    <TD WIDTH="18%">&nbsp;</TD>
                    <TD WIDTH="4%"><DIV ALIGN="center">
                        <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(i)%>" DISABLED>
                      </DIV></TD>
                    <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(i))%>"><%=file_name.get(i)%></A> </DIV></TD>
                    <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD>
                  </TR>
                  <%
				      						}
				      					}else{
										%>
                  <TR BGCOLOR="#0099CC">
                    <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD>
                    <TD COLSPAN="4" BGCOLOR="#FFFFFF">&nbsp;</TD>
                  </TR>
                  <%
				      					}
										%>
                </TABLE>
                </FONT></TD>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
            </TR>
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
          </TABLE>
          <!-- End Attach File -->
          <BR>
          <!-- Document Routing -->
          <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
            <TR>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
              <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF">
                <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
                  <TR BGCOLOR="#0099CC">
                    <TD COLSPAN="6" BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("History Document Routing");</script> :</STRONG></DIV></TD>
                  </TR>
                  <TR BGCOLOR="#CCCCCC">
                    <TD WIDTH="5%"><DIV ALIGN="center"><script language="javascript">swapLang("No.");</script></DIV></TD>
                    <TD WIDTH="25%"><DIV ALIGN="center"><script language="javascript">swapLang("Actor");</script></DIV></TD>
                    <TD WIDTH="24%"><DIV ALIGN="center"><script language="javascript">swapLang("Position");</script></DIV></TD>
                    <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("Start Time");</script></DIV></TD>
                    <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("End Time");</script></DIV></TD>
                    <TD WIDTH="10%"><DIV ALIGN="center"><script language="javascript">swapLang("Action");</script></DIV></TD>
                  </TR>
                  <%
										DbInquiry history_di = (DbInquiry)screenSingle.getRecord().getChild("VW_INCIDENT");
										if( history_di != null && history_di.foundData() ){
    										do{
    									%>
                  <TR BGCOLOR="#0099CC">
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("STEP_SEQ_NO")%></DIV></TD>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></DIV></TD>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_TPOSITION")%></DIV></TD>
                    <%
    											calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_START_TIME")));
    									%>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD>
                    <%
    											if( history_di.getString("AI_COMPLETION_TIME").equals("0") ){
    									%>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"></DIV></TD>
                    <%
    											}else{
        											calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME")));
        								%>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD>
                    <%
    											}
    									%>
                    <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("FAI_ACTION")%></DIV></TD>
                  </TR>
                  <%
    										}while( history_di.next() );
										}
										%>
                </TABLE>
                </FONT></TD>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
            </TR>
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
          </TABLE>
          <!-- End Document Routing -->
          <BR>
          <!-- Comment -->
          <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
            <TR>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
              <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF">
                <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
                  <TR BGCOLOR="#0099CC">
                    <TD BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("View Comment");</script> :</STRONG></DIV></TD>
                  </TR>
                  <TR BGCOLOR="#0099CC">
                    <TD BGCOLOR="#FFFFFF"><%
												if( history_di != null ){
													history_di.go(0);
												}
												if( history_di.recCount() > 0 ){
													int comment_no = 1;
													history_di.go(0);
													while( history_di.next() ){
														if( !history_di.getString("COMMENTS").trim().equals("") && !history_di.getString("AI_COMPLETION_TIME").equals("0") ){
															calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME")));
												%>
                      <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01">
                        <TR BGCOLOR="#CCCCCC">
                          <TD><STRONG><script language="javascript">swapLang("Comment No");</script> : <%=comment_no++%> </STRONG></TD>
                          <TD COLSPAN="3"><DIV ALIGN="right"><script language="javascript">swapLang("Date");</script> : <%=calendar.getDDMMYYYY()%> <script language="javascript">swapLang("Time");</script> : <%=calendar.getHHMMSS()%></DIV></TD>
                        </TR>
                        <TR BGCOLOR="EFEFEF">
                          <TD WIDTH="18%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Name");</script> : </DIV></TD>
                          <TD WIDTH="37%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></TD>
                          <TD WIDTH="16%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Position");</script> : </DIV></TD>
                          <TD WIDTH="29%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_TPOSITION")%></TD>
                        </TR>
                        <TR BGCOLOR="EFEFEF">
                          <TD><DIV ALIGN="right"><script language="javascript">swapLang("Message");</script> :</DIV></TD>
                          <TD COLSPAN="3"><%=history_di.getString("COMMENTS")%></TD>
                        </TR>
                      </TABLE>
                      <%
														}
													}
												}
												%>
                    </TD>
                  </TR>
                </TABLE>
                </FONT></TD>
              <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD>
            </TR>
            <TR>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD>
              <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD>
              <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD>
            </TR>
          </TABLE>
          <!-- End Comment -->