function logOn() {
//Copyright 2004 Thomas R. McDonnell
var password = "1946";
var message = "Enter your Password for the Members-Only section of the website.\nIf you need your password resent to you, contact us at 415.485.1654.";
var tryagain = "Incorrect password; try again.\nIf you need your password resent to you, contact us at 415.485.1654.";
var answer= prompt(message,"");
for (i=0; i<2; i++){			//3 tries to get the password right
	if (answer == null) {		//If the Cancel button is clicked
	history.back(); return; }	//Go back to the last page visited
	else if (answer != password) {	//If the password given is wrong
	answer = prompt(tryagain,""); }	//Display the tryagain prompt 
	else
	return;				//Exit the function, and display the members-only page.
	}
location.replace("nonmember.html");	//After 3 failures, sent to the nonmember page.
}
logOn();