function password() {
  var testV = 1;
  var pass1 = prompt('请输入密码( ):','');
  while (testV < 3) {
  if (pass1 == "welcome"){
  alert('密码正确!');
  location.href="http://zhezhile.51.net";
  break;
  } 
  testV+=1;
  if((pass1 = prompt('密码错误!请重新输入:'))=="welcome"){
  alert('密码正确!');
  location.href="http://zhezhile.51.net";
  break;
  }
  }
  return "no";

if (password()=="no")
  document.write("您没有访问该网站的权限!请回吧!!!");