function authUser(form) { if (form.Username.value=="pms") { if (form.Password.value=="roisdor") {     location="success.html" } else {     location="unauthorized.html"    } } else {     location="unauthorized.html"    } } 