function check_pw() { var pw = document.form1.word1.value; if(pw =="33_41") { location.href = "index33.html"; } else { alert("パスワードが違います"); } } 