<script language="javascript"> function getOTable(n){ //alert(od); if(n==0) { var title = document.createElement("input"); title.name = "__wf__title"+n; title.type = "hidden"; title.value = "<%= md.getWFDataValue("__wf__title0") %>"; tlbody.appendChild(title); tlbody.appendChild(createTitleRow("<%= md.getWFDataValue("__wf__title0") %>")); //create title var row1 = document.createElement("tr"); row1.appendChild(createTitleCol(swapLangr("Savings Deduct Rate")+" :")); var col = createDescCol(); col.appendChild(createInput("__wf__rateOrows"+n,"<%= md.getWFDataValue("__wf__rateOrows0") %>","10")); col.appendChild(document.createTextNode(" "+swapLangr("Register Date")+" ")); col.appendChild(createInput("__wf__regisOrows"+n,"<%= md.getWFDataValue("__wf__regisOrows0") %>","10")); row1.appendChild(col); tlbody.appendChild(row1); var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconOrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherOrows"+n,"<%//= md.getWFDataValue("__wf__befotherOrows0") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconOrows"+n,"<%= md.getWFDataValue("__wf__befconOrows0") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befnameO1rows"+n,"<%= md.getWFDataValue("__wf__befnameO1rows0") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationO1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relationO1rows"+n,"<%= md.getWFDataValue("__wf__relationO1rows0") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befotherO1rows"+n,"<%= md.getWFDataValue("__wf__befotherO1rows0") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__addO1rows"+n,"<%= md.getWFDataValue("__wf__addO1rows0") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befnameO2rows"+n,"<%= md.getWFDataValue("__wf__befnameO2rows0") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationO2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relationO2rows"+n,"<%= md.getWFDataValue("__wf__relationO2rows0") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befotherO2rows"+n,"<%= md.getWFDataValue("__wf__befotherO2rows0") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__addO2rows"+n,"<%= md.getWFDataValue("__wf__addO2rows0") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befnameO3rows"+n,"<%= md.getWFDataValue("__wf__befnameO3rows0") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationO3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relationO3rows"+n,"<%= md.getWFDataValue("__wf__relationO3rows0") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO3rows0") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__addO3rows"+n,"<%= md.getWFDataValue("__wf__addO3rows0") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==1) { var title = document.createElement("input"); title.name = "__wf__title"+n; title.type = "hidden"; title.value = "<%= md.getWFDataValue("__wf__title1") %>"; tlbody.appendChild(title); tlbody.appendChild(createTitleRow("<%= md.getWFDataValue("__wf__title1") %>")); //create title var row1 = document.createElement("tr"); row1.appendChild(createTitleCol(swapLangr("Savings Deduct Rate")+" :")); var col = createDescCol(); col.appendChild(createInput("__wf__rateOrows"+n,"<%= md.getWFDataValue("__wf__rateOrows1") %>","10")); col.appendChild(document.createTextNode(" "+swapLangr("Register Date")+" ")); col.appendChild(createInput("__wf__regisOrows"+n,"<%= md.getWFDataValue("__wf__regisOrows1") %>","10")); row1.appendChild(col); tlbody.appendChild(row1); var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconOrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherOrows"+n,"<%//= md.getWFDataValue("__wf__befotherOrows1") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconOrows"+n,"<%= md.getWFDataValue("__wf__befconOrows1") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befnameO1rows"+n,"<%= md.getWFDataValue("__wf__befnameO1rows1") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationO1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relationO1rows"+n,"<%= md.getWFDataValue("__wf__relationO1rows1") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befotherO1rows"+n,"<%= md.getWFDataValue("__wf__befotherO1rows1") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__addO1rows"+n,"<%= md.getWFDataValue("__wf__addO1rows1") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befnameO2rows"+n,"<%= md.getWFDataValue("__wf__befnameO2rows1") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationO2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relationO2rows"+n,"<%= md.getWFDataValue("__wf__relationO2rows1") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO2rows1") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__addO2rows"+n,"<%= md.getWFDataValue("__wf__addO2rows1") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befnameO3rows"+n,"<%= md.getWFDataValue("__wf__befnameO3rows1") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationO3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relationO3rows"+n,"<%= md.getWFDataValue("__wf__relationO3rows1") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO3rows1") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__addO3rows"+n,"<%= md.getWFDataValue("__wf__addO3rows1") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==2) { var title = document.createElement("input"); title.name = "__wf__title"+n; title.type = "hidden"; title.value = "<%= md.getWFDataValue("__wf__title2") %>"; tlbody.appendChild(title); tlbody.appendChild(createTitleRow("<%= md.getWFDataValue("__wf__title2") %>")); //create title var row1 = document.createElement("tr"); row1.appendChild(createTitleCol(swapLangr("Savings Deduct Rate")+" :")); var col = createDescCol(); col.appendChild(createInput("__wf__rateOrows"+n,"<%= md.getWFDataValue("__wf__rateOrows2") %>","10")); col.appendChild(document.createTextNode(" "+swapLangr("Register Date")+" ")); col.appendChild(createInput("__wf__regisOrows"+n,"<%= md.getWFDataValue("__wf__regisOrows2") %>","10")); row1.appendChild(col); tlbody.appendChild(row1); var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconOrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherOrows"+n,"<%//= md.getWFDataValue("__wf__befotherOrows2") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconOrows"+n,"<%= md.getWFDataValue("__wf__befconOrows2") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befnameO1rows"+n,"<%= md.getWFDataValue("__wf__befnameO1rows2") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationO1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relationO1rows"+n,"<%= md.getWFDataValue("__wf__relationO1rows2") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befotherO1rows"+n,"<%= md.getWFDataValue("__wf__befotherO1rows2") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__addO1rows"+n,"<%= md.getWFDataValue("__wf__addO1rows2") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befnameO2rows"+n,"<%= md.getWFDataValue("__wf__befnameO2rows2") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationO2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relationO2rows"+n,"<%= md.getWFDataValue("__wf__relationO2rows2") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO2rows2") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__addO2rows"+n,"<%= md.getWFDataValue("__wf__addO2rows2") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befnameO3rows"+n,"<%= md.getWFDataValue("__wf__befnameO3rows2") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationO3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relationO3rows"+n,"<%= md.getWFDataValue("__wf__relationO3rows2") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO3rows2") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__addO3rows"+n,"<%= md.getWFDataValue("__wf__addO3rows2") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==3) { var title = document.createElement("input"); title.name = "__wf__title"+n; title.type = "hidden"; title.value = "<%= md.getWFDataValue("__wf__title3") %>"; tlbody.appendChild(title); tlbody.appendChild(createTitleRow("<%= md.getWFDataValue("__wf__title3") %>")); //create title var row1 = document.createElement("tr"); row1.appendChild(createTitleCol(swapLangr("Savings Deduct Rate")+" :")); var col = createDescCol(); col.appendChild(createInput("__wf__rateOrows"+n,"<%= md.getWFDataValue("__wf__rateOrows3") %>","10")); col.appendChild(document.createTextNode(" "+swapLangr("Register Date")+" ")); col.appendChild(createInput("__wf__regisOrows"+n,"<%= md.getWFDataValue("__wf__regisOrows3") %>","10")); row1.appendChild(col); tlbody.appendChild(row1); var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconOrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherOrows"+n,"<%//= md.getWFDataValue("__wf__befotherOrows3") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconOrows"+n,"<%= md.getWFDataValue("__wf__befconOrows3") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befnameO1rows"+n,"<%= md.getWFDataValue("__wf__befnameO1rows3") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationO1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relationO1rows"+n,"<%= md.getWFDataValue("__wf__relationO1rows3") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befotherO1rows"+n,"<%= md.getWFDataValue("__wf__befotherO1rows3") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__addO1rows"+n,"<%= md.getWFDataValue("__wf__addO1rows3") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befnameO2rows"+n,"<%= md.getWFDataValue("__wf__befnameO2rows3") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationO2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relationO2rows"+n,"<%= md.getWFDataValue("__wf__relationO2rows3") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO2rows3") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__addO2rows"+n,"<%= md.getWFDataValue("__wf__addO2rows3") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befnameO3rows"+n,"<%= md.getWFDataValue("__wf__befnameO3rows3") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationO3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relationO3rows"+n,"<%= md.getWFDataValue("__wf__relationO3rows3") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO3rows3") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__addO3rows"+n,"<%= md.getWFDataValue("__wf__addO3rows3") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==4) { var title = document.createElement("input"); title.name = "__wf__title"+n; title.type = "hidden"; title.value = "<%= md.getWFDataValue("__wf__title4") %>"; tlbody.appendChild(title); tlbody.appendChild(createTitleRow("<%= md.getWFDataValue("__wf__title4") %>")); //create title var row1 = document.createElement("tr"); row1.appendChild(createTitleCol(swapLangr("Savings Deduct Rate")+" :")); var col = createDescCol(); col.appendChild(createInput("__wf__rateOrows"+n,"<%= md.getWFDataValue("__wf__rateOrows4") %>","10")); col.appendChild(document.createTextNode(" "+swapLangr("Register Date")+" ")); col.appendChild(createInput("__wf__regisOrows"+n,"<%= md.getWFDataValue("__wf__regisOrows4") %>","10")); row1.appendChild(col); tlbody.appendChild(row1); var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconOrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherOrows"+n,"<%//= md.getWFDataValue("__wf__befotherOrows4") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconOrows"+n,"<%= md.getWFDataValue("__wf__befconOrows4") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befnameO1rows"+n,"<%= md.getWFDataValue("__wf__befnameO1rows4") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationO1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relationO1rows"+n,"<%= md.getWFDataValue("__wf__relationO1rows4") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO1rows4") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__addO1rows"+n,"<%= md.getWFDataValue("__wf__addO1rows4") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befnameO2rows"+n,"<%= md.getWFDataValue("__wf__befnameO2rows4") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationO2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relationO2rows"+n,"<%= md.getWFDataValue("__wf__relationO2rows4") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befotherO2rows"+n,"<%= md.getWFDataValue("__wf__befotherO2rows4") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__addO2rows"+n,"<%= md.getWFDataValue("__wf__addO2rows4") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befnameO3rows"+n,"<%= md.getWFDataValue("__wf__befnameO3rows4") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationO3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relationO3rows"+n,"<%= md.getWFDataValue("__wf__relationO3rows4") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befotherO3rows"+n,"<%= md.getWFDataValue("__wf__befotherO3rows4") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__addO3rows"+n,"<%= md.getWFDataValue("__wf__addO3rows4") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } } //------------------------------------------- function getNTable(n){ if(n==0){ tlbody.appendChild(createTitleRow(swapLangr("New Beneficiary"))); //create title var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconNrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherrows"+n,"<%= md.getWFDataValue("__wf__befotherrows0") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconrows"+n,"<%= md.getWFDataValue("__wf__befconrows0") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befname1rows"+n,"<%= md.getWFDataValue("__wf__befname1rows0") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationN1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relation1rows"+n,"<%= md.getWFDataValue("__wf__relation1rows0") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befother1rows"+n,"<%= md.getWFDataValue("__wf__befother1rows0") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__add1rows"+n,"<%= md.getWFDataValue("__wf__add1rows0") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befname2rows"+n,"<%= md.getWFDataValue("__wf__befname2rows0") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationN2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relation2rows"+n,"<%= md.getWFDataValue("__wf__relation2rows0") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befother2rows"+n,"<%= md.getWFDataValue("__wf__befother2rows0") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__add2rows"+n,"<%= md.getWFDataValue("__wf__add2rows0") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befname3rows"+n,"<%= md.getWFDataValue("__wf__befname3rows0") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationN3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relation3rows"+n,"<%= md.getWFDataValue("__wf__relation3rows0") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befother3rows"+n,"<%= md.getWFDataValue("__wf__befother3rows0") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__add3rows"+n,"<%= md.getWFDataValue("__wf__add3rows0") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==1){ tlbody.appendChild(createTitleRow(swapLangr("New Beneficiary"))); //create title var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconNrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherrows"+n,"<%//= md.getWFDataValue("__wf__befotherrows1") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconrows"+n,"<%= md.getWFDataValue("__wf__befconrows1") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befname1rows"+n,"<%= md.getWFDataValue("__wf__befname1rows1") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationN1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relation1rows"+n,"<%= md.getWFDataValue("__wf__relation1rows1") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befother1rows"+n,"<%= md.getWFDataValue("__wf__befother1rows1") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__add1rows"+n,"<%= md.getWFDataValue("__wf__add1rows1") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befname2rows"+n,"<%= md.getWFDataValue("__wf__befname2rows1") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationN2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relation2rows"+n,"<%= md.getWFDataValue("__wf__relation2rows1") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befother2rows"+n,"<%= md.getWFDataValue("__wf__befother2rows1") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__add2rows"+n,"<%= md.getWFDataValue("__wf__add2rows1") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befname3rows"+n,"<%= md.getWFDataValue("__wf__befname3rows1") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationN3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relation3rows"+n,"<%= md.getWFDataValue("__wf__relation3rows1") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befother3rows"+n,"<%= md.getWFDataValue("__wf__befother3rows1") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__add3rows"+n,"<%= md.getWFDataValue("__wf__add3rows1") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); }else if(n==2){ tlbody.appendChild(createTitleRow(swapLangr("New Beneficiary"))); //create title var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconNrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); //col2.appendChild(document.createTextNode(" "+swapLangr("Detail")+" ")); //col2.appendChild(createInput("__wf__befotherrows"+n,"<%//= md.getWFDataValue("__wf__befotherrows2") %>","30")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconrows"+n,"<%= md.getWFDataValue("__wf__befconrows2") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befname1rows"+n,"<%= md.getWFDataValue("__wf__befname1rows2") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationN1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relation1rows"+n,"<%= md.getWFDataValue("__wf__relation1rows2") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befother1rows"+n,"<%= md.getWFDataValue("__wf__befother1rows2") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__add1rows"+n,"<%= md.getWFDataValue("__wf__add1rows2") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befname2rows"+n,"<%= md.getWFDataValue("__wf__befname2rows2") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationN2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relation2rows"+n,"<%= md.getWFDataValue("__wf__relation2rows2") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befother2rows"+n,"<%= md.getWFDataValue("__wf__befother2rows2") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__add2rows"+n,"<%= md.getWFDataValue("__wf__add2rows2") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befname3rows"+n,"<%= md.getWFDataValue("__wf__befname3rows2") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationN3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relation3rows"+n,"<%= md.getWFDataValue("__wf__relation3rows2") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befother3rows"+n,"<%= md.getWFDataValue("__wf__befother3rows2") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__add3rows"+n,"<%= md.getWFDataValue("__wf__add3rows2") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==3){ tlbody.appendChild(createTitleRow(swapLangr("New Beneficiary"))); //create title var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconNrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconrows"+n,"<%= md.getWFDataValue("__wf__befconrows3") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befname1rows"+n,"<%= md.getWFDataValue("__wf__befname1rows3") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationN1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relation1rows"+n,"<%= md.getWFDataValue("__wf__relation1rows3") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befother1rows"+n,"<%= md.getWFDataValue("__wf__befother1rows3") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__add1rows"+n,"<%= md.getWFDataValue("__wf__add1rows3") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befname2rows"+n,"<%= md.getWFDataValue("__wf__befname2rows3") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationN2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relation2rows"+n,"<%= md.getWFDataValue("__wf__relation2rows3") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befother2rows"+n,"<%= md.getWFDataValue("__wf__befother2rows3") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__add2rows"+n,"<%= md.getWFDataValue("__wf__add2rows3") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befname3rows"+n,"<%= md.getWFDataValue("__wf__befname3rows3") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationN3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relation3rows"+n,"<%= md.getWFDataValue("__wf__relation3rows3") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befother3rows"+n,"<%= md.getWFDataValue("__wf__befother3rows3") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__add3rows"+n,"<%= md.getWFDataValue("__wf__add3rows3") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } else if(n==4){ tlbody.appendChild(createTitleRow(swapLangr("New Beneficiary"))); //create title var row2 = document.createElement("tr"); row2.appendChild(createTitleCol(swapLangr("Benefitted Condition")+" :")); var col2 = createDescCol(); var sps1 = document.createElement('span'); sps1.id = "__befconNrow"+n; col2.appendChild(sps1); //col2.appendChild(createInput("__test",od[3],"15")); row2.appendChild(col2); tlbody.appendChild(row2); createSyss("__wf__befconrows"+n,"<%= md.getWFDataValue("__wf__befconrows4") %>",sps1.id); var row3 = document.createElement("tr"); row3.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -1 :")); var col3 = createDescCol(); col3.appendChild(createInput("__wf__befname1rows"+n,"<%= md.getWFDataValue("__wf__befname1rows4") %>","30")); col3.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp1 = document.createElement('span'); sp1.id = "relationN1"+n; col3.appendChild(sp1); row3.appendChild(col3); tlbody.appendChild(row3); createRelation("__wf__relation1rows"+n,"<%= md.getWFDataValue("__wf__relation1rows4") %>",sp1.id); var row31 = document.createElement("tr"); row31.appendChild(createTitleCol(swapLangr("Detail"))); var col31 = createDescCol(); col31.appendChild(createInput("__wf__befother1rows"+n,"<%= md.getWFDataValue("__wf__befother1rows4") %>","5")); row31.appendChild(col31); tlbody.appendChild(row31); var row4 = document.createElement("tr"); row4.appendChild(createTitleCol(swapLangr("Address")+" :")); var col4 = createDescCol(); col4.appendChild(createInput("__wf__add1rows"+n,"<%= md.getWFDataValue("__wf__add1rows4") %>","50")); row4.appendChild(col4); tlbody.appendChild(row4); var row5 = document.createElement("tr"); row5.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -2 :")); var col5 = createDescCol(); col5.appendChild(createInput("__wf__befname2rows"+n,"<%= md.getWFDataValue("__wf__befname2rows4") %>","30")); col5.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp2 = document.createElement('span'); sp2.id = "relationN2"+n; col5.appendChild(sp2); row5.appendChild(col5); tlbody.appendChild(row5); createRelation("__wf__relation2rows"+n,"<%= md.getWFDataValue("__wf__relation2rows4") %>",sp2.id); var row51 = document.createElement("tr"); row51.appendChild(createTitleCol(swapLangr("Detail"))); var col51 = createDescCol(); col51.appendChild(createInput("__wf__befother2rows"+n,"<%= md.getWFDataValue("__wf__befother2rows4") %>","5")); row51.appendChild(col51); tlbody.appendChild(row51); var row6 = document.createElement("tr"); row6.appendChild(createTitleCol(swapLangr("Address")+" :")); var col6 = createDescCol(); col6.appendChild(createInput("__wf__add2rows"+n,"<%= md.getWFDataValue("__wf__add2rows4") %>","50")); row6.appendChild(col6); tlbody.appendChild(row6); var row7 = document.createElement("tr"); row7.appendChild(createTitleCol(swapLangr("Old Beneficiary")+" -3 :")); var col7 = createDescCol(); col7.appendChild(createInput("__wf__befname3rows"+n,"<%= md.getWFDataValue("__wf__befname3rows4") %>","30")); col7.appendChild(document.createTextNode(" "+swapLangr("Relation")+" ")); var sp3 = document.createElement('span'); sp3.id = "relationN3"+n; col7.appendChild(sp3); row7.appendChild(col7); tlbody.appendChild(row7); createRelation("__wf__relation3rows"+n,"<%= md.getWFDataValue("__wf__relation3rows4") %>",sp3.id); var row71 = document.createElement("tr"); row71.appendChild(createTitleCol(swapLangr("Detail"))); var col71 = createDescCol(); col71.appendChild(createInput("__wf__befother3rows"+n,"<%= md.getWFDataValue("__wf__befother3rows4") %>","5")); row71.appendChild(col71); tlbody.appendChild(row71); var row8 = document.createElement("tr"); row8.appendChild(createTitleCol(swapLangr("Address")+" :")); var col8 = createDescCol(); col8.appendChild(createInput("__wf__add3rows"+n,"<%= md.getWFDataValue("__wf__add3rows4") %>","50")); row8.appendChild(col8); tlbody.appendChild(row8); } } </script>