Please help. What is wrong? I am getting a Syntax Error.
Are you sure that your error is between lines 14, and 34? It's possible that the error occurred before that because I cannot see any syntax error in the lines you have provided.
I would check your curly brackets, it seems you might be off by one... unless its not in your screen capture
I'd agree with @lolman could you post the rest of the code? Because these lines seem to be correct.