There are quite a few syntax errors and other problems. I'm surprised you wrote such a lot of code without discovering the simple ones?!? (did you copy it from somewhere? :D)

Maybe you could refer...