Could you please edit your post and put your code in actual code tags?
Your code is already completely broken, so please copy it again from your original source. The code button opens a new popup where you should insert your code.
Not posting code properly happens that frequently that we have a sticky post in the scripting sub forum that explains it.