var strPW = "ddddpppp";

function CheckPrompt() {
    var strRes = prompt("IDを入力してください", "");
    if (strRes != null) {
        // キャンセル(null)でないときのみ処理
        if (strRes == strPW) {
            // パスワード確認
            location.href = "member.php";
        } else {
            // パスワード否認
            alert("パスワードが違います！");
        }
    }
}

