var strPW = "guest";

function CheckPrompt() {
     var strRes = prompt("パスワードを入力してください", "");
	if (strRes != null) {
		if (strRes == strPW) {
			location.href = "jssamp/menu_pg1.html";
     	} else {
			alert("パスワードが違います！");
     	}
	}
}

function CheckPW(pw) {
	if (pw == strPW) {
		location.href = "jssamp/menu_pg1.html";
	} else {
		alert("パスワードが違います！");
	}
}

function CheckWord(pw) {
	location.href = "jssamp/" + pw + ".html";
}
