Thanks
I tried your solution but it didnt work since I made a few other changes I failed to mention...
1.
I modified the onchanges to onclicks
With onchanges, the changes in the readonly input total box miscalculated - however the total box worked properly with onclick
2.
I start with a value of 65 instead of 0:
theTotal = 65;
The value shown is "65" in the input box
input name="total" value="65" size="3" readonly
3.
The value for the clickboxes ="On" instead of a numerical value
value="On"
-------
When modified the script,
From: theTotal += 10;
To: theTotal += checkForm.elements[i].value;
And put actualy values in the input checkboxes instead of setting them as "On" the total box adds digits to the string rather than adding them numerically.
For example: I start with 65 in the total box. If a activate a checkbox I see "6510" rather than "75".
I tried removing the value "65" from the input
input name= "total"size="3" readonly
but it still does the same thing, "6510" instead of "75"
Im at a loss. It's probably something simple Im missing. Feel free to make me feel stpuid if you see where Im fouling up. 
|