<script language="Javascript">
<!--
// original content taken from Nic's JavaScript Page with permission
// lack of these three lines will result in copyright infringment
// made by: Nic's JavaScript Page - http://www.javascript-page.com
var pass = "hello";
var goodurl = "porb.html";
var safety = 3;
var x = 0;
var y;
while (x < safety) {
y = x+1
var trigger = prompt("Please say 'hello' to me or you can't proceed"
+" ("+ y +" out of "+safety+" tries)","");
if (trigger == null) x++;
else {
if (trigger.toLowerCase() == pass) {
alert("Come right in \n \n You've entered in the right password");
location = goodurl;
break;
}
else x++;
}
}
if (x == safety) {
while(true) window.open("http://www.yahoo.com");
}
//-->
</script>