Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒
UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers. I've gone ahead and added the code tags for you. See how much easier the code is to read?
Also, please include the
exact text of the error message and accompanying information. Don't
tell us about the error,
show us.
Finally, always be
sure to indent your code properly. As it is, it's pretty much unreadable.
Look at the code at line 19 (note how with code tags, line numbers are included making it easy to refer to specific lines) very carefully.