<html><div style='background-color:'><DIV class=RTE>Hello People,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I have 4 input boxes, 3 so I can enter numeric values in(c1, c2, c3), and the 4th to display the total.(total1)</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I have put onblur actions on each of the 3 boxes like such: onBlur="addNumbers();"</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>My function is:</DIV>
<DIV class=RTE>---------------------------------------------</DIV>
<DIV class=RTE>function addNumbers() { <BR> <BR> var x1, y1, z1</DIV>
<DIV class=RTE> var x = parseInt(frmAIMSsignup.c1.value);<BR> var y = parseInt(frmAIMSsignup.c2.value);<BR> var z = parseInt(frmAIMSsignup.c3.value);<BR> <BR> if (x != 'NaN')<BR> {<BR> x1 = x;<BR> }<BR> else<BR> {<BR> x1 = 0;<BR> }<BR> if (y != 'NaN')<BR> {<BR> y1 = y;<BR> }<BR> else<BR> {<BR> y1 = 0;<BR> }<BR> if (z != 'NaN')<BR> {<BR> z1 = z;<BR> }<BR> else<BR> {<BR> z1 = 0;<BR> }</DIV>
<DIV class=RTE> var totcol1 = x1 + y1 + z1;<BR><BR> <BR> frmAIMSsignup.total1.value = totcol1; <BR>} </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE></script></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>---------------------------------------------</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I am adding then OK, except when no numeric value is in the input box. I simply want to be able to add up the 3 boxes when any of them change, but also catch when nothing has been entered.i.e. when the value is undefined.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Does anyone have any ideas. I would appreciate any help.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Many Thanks,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Al...</DIV></div></html>