<input type="hidden" name="__wf__at1" value="1">
										<input type="hidden" name="__wf__at2" value="1">
										<input type="hidden" name="__wf__at3" value="1">
										<input type="hidden" name="__wf__at4" value="1">
										<input type="hidden" name="__wf__at5" value="1">
										<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>
				          </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>
						  </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>
						<%// if(stp.equals("2")){  %>
				
					<% 
					//}else { //else ---------------------------------------------------------------------					
					 %>
					 
					   <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><script language="javascript">//SearchDWR.searchAll(new Array("mwelfare","welid,tdesc,edesc,whouse,docgid"," iseducation = '0'","welid","langon"),selectwelfare);</script>
						    <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" readonly 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"  readonly 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" readonly  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" readonly  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"  readonly 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" readonly  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" readonly  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"  readonly 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" readonly  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" readonly  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"><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" readonly  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"  readonly 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" readonly  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" readonly 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" readonly  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" readonly  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" readonly  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" readonly  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"  readonly 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"  readonly 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" readonly  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" readonly  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"  readonly 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"  readonly 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"  readonly 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"  readonly 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" readonly  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"  readonly 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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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"  readonly 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" readonly  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" readonly  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" readonly  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" readonly  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"  readonly 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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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" readonly  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>
					 
					 <% //} //end else if------------------------------------------------------------ %>
					 
					 
									</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>
           					<!-- WF Command -->
           					<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="#EFEFEF">
												<TD WIDTH="26%" BGCOLOR="#0099CC" ALIGN="right" CLASS="txt01"><SCRIPT LANGUAGE="JavaScript">swapLang("Command");</SCRIPT> :</TD>
												<TD WIDTH="74%" BGCOLOR="#EFEFEF">
													<INPUT TYPE="radio" NAME="wf_command" VALUE="send" CHECKED>
													<SCRIPT LANGUAGE="JavaScript">swapLang("Send");</SCRIPT>
													<INPUT TYPE="radio" NAME="wf_command" VALUE="abort">
													<SCRIPT LANGUAGE="JavaScript">swapLang("Reject");</SCRIPT>
												</TD>
											</TR>
											<TR BGCOLOR="#EFEFEF">
												<TD WIDTH="26%" BGCOLOR="#0099CC" ALIGN="right" CLASS="txt01"><SCRIPT LANGUAGE="JavaScript">swapLang("Comments");</SCRIPT> :</TD>
												<TD WIDTH="74%" BGCOLOR="#EFEFEF">
													<TEXTAREA  NAME='comments' COLS='50' ROWS='4' WRAP=''></TEXTAREA>
												</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 WF Command -->
           					<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>
          <TABLE WIDTH="95%" BORDER="0" CELLSPACING="1" CELLPADDING="0" CLASS="txt01">
            <TR CLASS="txt01">
              <TD><DIV ALIGN="right"><A HREF="JavaScript:GoWFM2();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A></DIV></TD>
            </TR>
          </TABLE>
          <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()  && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){
    										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 -->