function sumtotal(){
var tot = 0;
var sum = 0;
for(j=0;j < document.frmbegcomplete['txtpricetotal[]'].length;j++)
{
sum.value = sum.value + parseInt(eva("document.frmbegcomplete.txtpricetotal"+i+".value"));
document.frmbegcomplete.txtsumtotal.value=sum;
}
}