Java and JavaScript are two completely different things. This is JavaScript not Java! anyway...
Without the full source code i cannot run it and see if it works and i normally code Java not JavaScript so cannot garantee any of this solution, but...
should probably be:
Code:
if (Pass == 1234) {
You may also want to try putting " around the 1234
also in the body of your first two if statements there are no semicolons at the end of the line.