function calculate3() {
var sum = 0;
for (var i = 1; i <= document.getElementById("txtsum2").value; i++) {
if (document.getElementById("txtlb" + i).value != '') {
sum = parseFloat(sum) + parseFloat(document.getElementById("txtlb" + i).value);
document.getElementById("qtysum3").value = sum
}
}
}
</script>