Password for levels?

So, I have started to make a game, I have 4 levels so far, and I thought it would be nice to have some passwords for the different levels…

I suspect that it should be done with some If/else If statement, but I’m not really good with that yet, so I’m asking for some help.

The input-text area has a var of “pass” and when you press the “OK” button, you get a new page, either the level or just back to main screen…

Hope you understand!