/* 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 == "Teacher")  //Note: Replace "HappySmart" with your own password
 {
  //alert("Password Correct")
  location.href= "http://faculty.kutztown.edu/schaeffe/Jeopardy/jeopardy123.html" //Note: Replace this URL with your own
 }
 else
 {
 alert("Password Incorrect. Try again, or go away!")
 }
}

document.write('<form><input type=button value="Login" onClick="checkPassword()">')

//Script ends
