?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/assets/js/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sgms/draft/assets/js/ajax.js |
function addRowToTable() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compslt = document.createElement('input'); compslt.type = 'text'; compslt.style.width = '100px'; compslt.name = 'txt_conName_'+itname; compcell.appendChild(compslt); var compcell = row.insertCell(1); var compslt = document.createElement('input'); compslt.type = 'text'; compslt.style.width = '100px'; compslt.name = 'txt_conDept_'+itname; compcell.appendChild(compslt); var compcell = row.insertCell(2); var compDesig = document.createElement('input'); compDesig.type = 'text'; compDesig.style.width= '100px'; compDesig.name = 'txt_conDesig_'+itname; compcell.appendChild(compDesig); var compcell = row.insertCell(3); var compMob = document.createElement('input'); compMob.type = 'text'; compMob.style.width = '100px'; compMob.name = 'txt_conMob_'+itname; compcell.appendChild(compMob); var compcell = row.insertCell(4); var compPho = document.createElement('input'); compPho.type = 'text'; compPho.style.width = '100px'; compPho.name = 'txt_conPho_'+itname; compcell.appendChild(compPho); var compcell = row.insertCell(5); var compEmail = document.createElement('input'); compEmail.type = 'text'; compEmail.style.width= '100px'; compEmail.name = 'txt_conEmail_'+itname; compcell.appendChild(compEmail); var hiddcell = row.insertCell(6); var HiddDesig = document.createElement('input'); HiddDesig.type = 'hidden'; HiddDesig.style.width= '100px'; HiddDesig.name = 'hid_conCnthid_'+itname; HiddDesig.id = 'hid_conCnthid_'+itname; HiddDesig.value ='hidden'; hiddcell.appendChild(HiddDesig); document.getElementById('hid_conCnt').value=itname; } function removeRowFromTable() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCnt').value=(document.getElementById('hid_conCnt').value - 1); } } function addRowToTableSales() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compTime = document.createElement('input'); compTime.type = 'text'; compTime.style.width = '60px'; compTime.name = 'txt_conTime_'+itname; compcell.appendChild(compTime); var compcell = row.insertCell(1); var compName = document.createElement('input'); compName.type = 'text'; compName.style.width = '150px'; compName.name = 'txt_conName_'+itname; compcell.appendChild(compName); var compcell = row.insertCell(2); var compPers = document.createElement('input'); compPers.type = 'text'; compPers.style.width= '100px'; compPers.name = 'txt_conPers_'+itname; compcell.appendChild(compPers); var compcell = row.insertCell(3); var compDesg = document.createElement('input'); compDesg.type = 'text'; compDesg.style.width= '100px'; compDesg.name = 'txt_conDesg_'+itname; compcell.appendChild(compDesg); var compcell = row.insertCell(4); var compTel = document.createElement('input'); compTel.type = 'text'; compTel.style.width= '80px'; compTel.name = 'txt_conTel_'+itname; compcell.appendChild(compTel); var compcell = row.insertCell(5); var compStat = document.createElement('textarea'); compStat.type = 'text'; compStat.style.width= '120px'; compStat.name = 'txt_conStat_'+itname; compcell.appendChild(compStat); document.getElementById('hid_conCnt').value=itname; } function removeRowFromTableSales() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCnt').value=(document.getElementById('hid_conCnt').value - 1); } } function addRowToTableEdu() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compCourse = document.createElement('input'); compCourse.type = 'text'; compCourse.style.width = '200px'; compCourse.name = 'txt_conCourse_'+itname; compcell.appendChild(compCourse); var compcell = row.insertCell(1); var compUty = document.createElement('input'); compUty.type = 'text'; compUty.style.width = '150px'; compUty.name = 'txt_conUty_'+itname; compcell.appendChild(compUty); var compcell = row.insertCell(2); var compYop = document.createElement('input'); compYop.type = 'text'; compYop.style.width = '100px'; compYop.name = 'txt_conYop_'+itname; compcell.appendChild(compYop); document.getElementById('hid_conCntEdu').value=itname; } function removeRowFromTableEdu() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCntEdu').value=(document.getElementById('hid_conCntEdu').value - 1); } } function addRowToTableCer() { var tbl = document.getElementById('addrowCer'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compEmp = document.createElement('input'); compEmp.type = 'text'; compEmp.style.width = '200px'; compEmp.name = 'txt_conEmp_'+itname; compcell.appendChild(compEmp); var compcell = row.insertCell(1); var compDesg = document.createElement('input'); compDesg.type = 'text'; compDesg.style.width = '150px'; compDesg.name = 'txt_conDesg_'+itname; compcell.appendChild(compDesg); var compcell = row.insertCell(2); var compPow = document.createElement('input'); compPow.type = 'text'; compPow.style.width = '100px'; compPow.name = 'txt_conPow_'+itname; compcell.appendChild(compPow); document.getElementById('hid_conCntCer').value=itname; } function removeRowFromTableCer() { var tbl = document.getElementById('addrowCer'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCntCer').value=(document.getElementById('hid_conCntCer').value - 1); } } function addRowToTableExp() { var tbl = document.getElementById('addrowExp'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compEmp = document.createElement('input'); compEmp.type = 'text'; compEmp.style.width = '200px'; compEmp.name = 'txt_conEmp_'+itname; compcell.appendChild(compEmp); var compcell = row.insertCell(1); var compDesg = document.createElement('input'); compDesg.type = 'text'; compDesg.style.width = '150px'; compDesg.name = 'txt_conDesg_'+itname; compcell.appendChild(compDesg); var compcell = row.insertCell(2); var compPow = document.createElement('input'); compPow.type = 'text'; compPow.style.width = '100px'; compPow.name = 'txt_conPow_'+itname; compcell.appendChild(compPow); document.getElementById('hid_conCntExp').value=itname; } function removeRowFromTableExp() { var tbl = document.getElementById('addrowExp'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCntExp').value=(document.getElementById('hid_conCntExp').value - 1); } } function addRowToTableCre() { var tbl = document.getElementById('CreTab'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compslt = document.createElement('input'); compslt.type = 'text'; compslt.style.width = '100px'; compslt.name = 'txt_CreYear_'+itname; compcell.appendChild(compslt); var compcell = row.insertCell(1); var compMob = document.createElement('input'); compMob.type = 'text'; compMob.style.width = '150px'; compMob.name = 'txt_CrePremium_'+itname; compcell.appendChild(compMob); document.getElementById('hid_CreCount').value=itname; } function removeRowFromTableCre() { var tbl = document.getElementById('CreTab'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_CreCount').value=(document.getElementById('hid_CreCount').value - 1); } } function addRowToTableClaims() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compDate = document.createElement('input'); compDate.type = 'text'; compDate.style.width = '100px'; compDate.name = 'txt_conDate_'+itname; compcell.appendChild(compDate); var compcell = row.insertCell(1); var compDesc = document.createElement('input'); compDesc.type = 'text'; compDesc.style.width = '150px'; compDesc.name = 'txt_conDesc_'+itname; compcell.appendChild(compDesc); var compcell = row.insertCell(2); var compRem = document.createElement('textarea'); //compRem.type = 'text'; compRem.style.width = '200px'; compRem.name = 'txt_conRem_'+itname; compcell.appendChild(compRem); document.getElementById('hid_conCnt').value=itname; } function removeRowFromTableClaims() { var tbl = document.getElementById('addrow'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCnt').value=(document.getElementById('hid_conCnt').value - 1); } } function addRowToTableClaimsSet() { var tbl = document.getElementById('addsettl'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compDescSet = document.createElement('textarea'); //compDescSet.type = ''; compDescSet.style.width = '250px'; compDescSet.name = 'txt_conDescSet_'+itname; compcell.appendChild(compDescSet); var compcell = row.insertCell(1); var compAmt = document.createElement('input'); compAmt.type = 'text'; compAmt.style.width = '200px'; compAmt.name = 'txt_conAmt_'+itname; compcell.appendChild(compAmt); document.getElementById('hid_conCnt1').value=itname; } function removeRowFromTableClaimsSet() { var tbl = document.getElementById('addsettl'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCnt').value=(document.getElementById('hid_conCnt').value - 1); } } function addRowToTableMedical() { var tbl = document.getElementById('addmed'); var lastRow = tbl.rows.length; var iteration = (lastRow-1); //alert(iteration); var itname = (lastRow); var row = tbl.insertRow(lastRow); var compcell = row.insertCell(0); var compType = document.createElement('input'); compType.type = 'text'; compType.style.width = '100px'; compType.name = 'txt_conType_'+itname; compcell.appendChild(compType); var compcell = row.insertCell(1); var compIns = document.createElement('input'); compIns.type = 'text'; compIns.style.width = '150px'; compIns.name = 'txt_conIns_'+itname; compcell.appendChild(compIns); var compcell = row.insertCell(2); var compPol = document.createElement('input'); compPol.type = 'text'; compPol.style.width = '80px'; compPol.name = 'txt_conPol_'+itname; compcell.appendChild(compPol); var compcell = row.insertCell(3); var compPlan = document.createElement('input'); compPlan.type = 'text'; compPlan.style.width = '200px'; compPlan.name = 'txt_conPlan_'+itname; compcell.appendChild(compPlan); var compcell = row.insertCell(4); var compSum = document.createElement('input'); compSum.type = 'text'; compSum.style.width = '100px'; compSum.name = 'txt_conSum_'+itname; compcell.appendChild(compSum); document.getElementById('hid_conCnt').value=itname; } function removeRowFromTableMedical() { var tbl = document.getElementById('addmed'); var lastRow = tbl.rows.length; if (lastRow > 2) { tbl.deleteRow(lastRow - 1); document.getElementById('hid_conCnt').value=(document.getElementById('hid_conCnt').value - 1); } }