Maybe you will have to show us the actual page.
Anyway, this is bogus:
Code:
document.getElementById("grandTotal").innerHTML =
document.getElementById("grandTotal").innerHTML + churchTotal;
That will *NOT* add the NUMBERS. It will append the strings.
Maybe you could use
Code:
document.getElementById("grandTotal").innerHTML =
Number(document.getElementById("grandTotal").innerHTML) + churchTotal;
BUt I'm just having a hard time following the logic of the code.
I don't see why you need the isNaN() checks in there. When will the values being checked ever NOT be numbers??