function CheckIt() {
var cPassword = document.forms[0].password.value;
var cNextPage = "shirley.htm";

if (cPassword == "shirley" ||
cPassword == "Shirley" ||
cPassword == "bob" ||
cPassword == "Bob") {
document.location.href = cNextPage;
} else {
alert('Wrong password, please try again');
}
}

