I am making an unsecured html login using a javascript switch, but instead of using a switch i would like the script to verify the username and password from an xml file and then if it exists and its the right password it redirects to the desired page, but if it isn't the right password it displays an error message. Any help?