//Position cursor to text field.
document.pform.pword.focus()

//Function to check password.
function checkWord() {
	//If you remove .toUpperCase() from line below, visitor must type
	//password n all uppercase letters, or it won't be accepted.
	if (document.pform.pword.value.toUpperCase() == "PEACE")
	{
		location.href="photos/protected.html"
		}else{
		alert ("SORRY THAT'S WRONG")
	}
}