<script language="Javascript">
<!--
var goodURL = "advpassword2.html"
alert("To access the following document, you must pass a "
+"members-only, authorization test.\n \n At the appropriate "
+"time, enter in your username and password.")
var username = prompt("Enter in your username","")
var password = prompt("Enter in your password","")
if (username == null || password == null) {
alert("Authenification failed!!!")
history.back();
}
else {
var combo = username + password
var total = combo.toLowerCase()
if (total == "mynamemypass" || total == "name2pass2") {
alert("You passed authenification! Come right in")
location = goodURL
}
else {
alert("Authenification failed!!!")
history.back();
}
}
//-->
</script>