This is a Java forum, and JavaScript is a completely different thing.

That being said, the problem is you're closing your if statement with a semicolon instead of opening it with an opening...