Code
<script language="JavaScript">
<!--hide
var password;
var pass1="bob"; <------------------ Replace "PASSWORD" with the actual password
password=prompt('enter password',' ');
if (password==pass1)
alert('correct password');
else
{
window.location="change this to a url";
}
//-->
</script>