I am looking for some javascript code that will allow a user to input a six character code into a text box. If the code that is entered matches a predetermined code then I want the user to go to page a if it does not match the predetermined code then I want them to go to page b when they press the submit button. Also if no code is entered in the text box when they press the submit button I want them to go the page b.

Can someone help me with this.

Thanks in advance