Hii Melvinoyh!!
1>>total=wp+ln+la+*myForm.brkID<%=c%>.value <--is this correct or not?
above one is incorrect
total=(wp+ln+la)*(myForm.brkID<%=c%>.value)
also take care about parseInt(number,radix)
2><%for(int c=0; c<wp.size(); c++){%>
where is correspoding "}" closing brackes
3>If brkID is part of for loop then
use document.getElementById,or getElementByName method to iterate all the brkID1,2....n field values.
4>Since your wp,ln,la values are also dynamic ,so pass the counter in ur case(<%=c%>) to the function and calculate the requried sum .
Hope this will help you
Cheers :)
vinod
|