When posting code, please use the highlight tags. Unformatted code is very hard to read. Also, code should be posted in the form of an SSCCE. What is the actual text and stack trace of the error?
...