in reply to need help with error

Did you spell all your variables correctly? Did you specify use strict to help?