Originally Posted by Old Pedant
Oh, I see.
*ALL* of THIS CODE is total trash and is doing *NOTHING* on that page except getting errors:
But it doesn't matter, because the functions work and they are actually the only code you need.
Remove all of the above code. It is doing nothing whatsoever.
Yes, that is the reason for it not working. I still don't know why it worked in Chrome.
Why are you calling three separate functions?
That results in a lot of duplication and pointless repetition which is very confusing:-
var form_field1 = Number(form.box1.value);
var form_field7 = Number(form.box1.value);
var form_field13 = Number(form.box1.value);
is really meaningless - why not give it a descriptive name such as "units"? And "hours" instead of box4? And so on for all your fields.
In short, your code could be greatly simplified and also clarified.