/* Start Directions for Hidden Password script

1. Save this script as HiddenPassword.js
2. Create new HTML file and include: <HTML><BODY>
<SCRIPT LANGUAGE="JavaScript" SRC="HiddenPassword.js"></SCRIPT></BODY></HTML>
3. Save HTML file as HiddenPassword.html

End Directions for Hidden Password script */ 

//Script begins

function checkPassword()
{
	
	
password=prompt('Enter password:',"");
 if (password == "metal") //Note: Replace with your own password
 {
  alert("Password Correct");
  location.href= "http://www.ncsu.edu/aif/asm/2002yb.htm"
//Note: Replace this URL with your own
 }
 else
 {
 alert("Password Incorrect");
 }
}

document.write('<form><input type=button value="Yearbook" onClick="checkPassword()">');

//Script ends
