Originally posted by Ron Newman:
To start with, you have many identical statements
Why not call this just once, after you've figured out what the tax will be?
D'oh good point... *one quick edit later* Ahhh much better. Thanks Ron
Also, I don't see the variable "tax" actually declared anywhere.