Please help. I'm trying to use IF function to redirect, but it is not working.
<html>
<head>
<p><fontface="Arial"size"3">Please enter the username.</p></head>
<scripttype="text/javascript">
function checkForm(form)
{
if(form.pdw1.value!="xxxx"){
alert("Invalid Password");
form.pwd1.focus();
return false;
}
if(form.pdw1.value=="xxxxx"){
document.location = "http://xxxx.html"
}}
</script>
<form method="POST" action="/javascript/validate/1/" onSubmit="return(checkForm(this)&&false);">
<fieldset>
<label>Password:</label><span><input type="password" name="pwd1"></span>
<span><input type="submit" value="Submit"></span>
</fieldset>
</form>
</html>