First if you’re posting code you should be kind enough to post in a manner so people can easily read it:
The second thing is if you’re getting an error in your script, don’t make people guess where it is. The error says the specific line number the error occurs, so why not tell us?