You should always use the code button, and that vague thread titles get no attention. I shall edit your code with code tags and you can see how much better it looks.
Please tell us what the error is. You can't expect us to know which error you mean (I have found about 5 errors just looking through the code and I don't think any of them is what you mean).