<!-- //if using inline remove this line
//<script language=javascript> //if using inline remove the //'s from begining of this line

// To us as an include don't use the < script > tags and insert
// <script src="pgps.js"></script> into the head section of the page.
// be sure to include this file in the same directory as the protected page.
// This is ONLY ment to be a DETERENT it is NOT solid protection.

//*********************************
//*********************************
//** Pretty Good Password Script **
//**                             **
//** by Zachary McCullough       **
//** Copyright 2003              **
//** Access Cafe Networks, Inc.  **
//** http://www.AccessCafe.net   **
//** zachary@accesscafe.net      **     
//**                             **     
//** Free to use as long as this **     
//** Notice is included intact.  **     
//**                             **     
//** Three tries then redirect.  **
//**                             **
//*********************************     
//*********************************

var _passdata="nothing";//Clear the Values.

var mellon="IDEA72006"	//This is your password. Must be enclosed in quotes. I suggest that you bury this line 
var mellon2="IDEA72006"	//in one of your other include files and delete this line and note from your code.
					
getit();				//prompts for password immediately. You could call this function from an on click event...	

function getit(){
		if(document.cookie==mellon||_passdata==mellon2){return true;}

	//You can change the text inside the FIRST set of quotes.
	_passdata = prompt("This page requires a password. Please enter it below. ***Attempt 1 of 3***", document.cookie);
	if(_passdata==mellon||_passdata==mellon2){
		//The following thank you line can be commented out (add // before the alert like so: //alert...
		document.cookie = _passdata;
		//alert("Thank you.");
		}
	else {
		//You can change the text inside the FIRST set of quotes.
		_passdata = prompt("This page requires a password. Please enter it below. ***Attempt 2 of 3***","");
		if(_passdata==mellon||_passdata==mellon2){
			//The following thank you line can be commented out (add // before the alert like so: //alert...
			document.cookie = _passdata;
			//alert("Thank you.");
			}
		else {
			//You can change the text inside the FIRST set of quotes.
			_passdata = prompt("This page requires a password. Please enter it below. ***Attempt 3 of 3***","");
			if(_passdata==mellon||_passdata==mellon2){
				//The following thank you line can be commented out (add // before the alert like so: //alert...
				document.cookie = _passdata;
				//alert("Thank you.");
				}
			else {
				//You can change the text inside the quotes.
				alert("We're sorry. Please check your password.");
				//Type the FULL path to the site/page you wish to redirect FAILED attempts to.
				document.location.href="http://www.katelarsen.com";
			}
		}
	}
}
// </script> //if using inline remove the //'s from begining of this line
//if using inline remove the following line
-->