<scripttype="text/javascript">
functiongetAll() {
vartab=document.getElementById("tab");
if (tab) {
varinputs=tab.getElementsByTagName("input");
varSalary_sum=0;
for (vari=0; i<inputs.length; i++) {
if (inputs[i].type=="text") {
varovalue=inputs[i].value;
if (ovalue==""||isNaN(ovalue)) {
ovalue=0;
}
else {
ovalue=parseFloat(ovalue);
Salary_sum+=ovalue;
}
}
}
vartxtSalary_sum=document.getElementById("txtSalary_sum");
if (txtSalary_sum) {
txtSalary_sum.value=Salary_sum;
}
}
}
</script>