		function gohome()
		{
			window.location="./index.php?param=" + showMainMenu;
		}
		
		function askPermission( actionStr, nameStr )
		{
			s	= 'Are sure you want to ' + actionStr + ' ' + nameStr + '?';
			
			return window.confirm( s );
		}
		
		function getNameAndFind( parm )
		{
			if ( parm == 1 )
				getNameAndFindEvent( parm );
			else 
				getNameAndFindPerson( parm );
		}
		
		function getNameAndFindEvent( parm )
		{
			loc	= getBaseURL();
			ans	= window.prompt( 'Enter a key word from the title of the event, or the first or last name of the presenter:' );
			if ( ans != null ) {
				title	= '' + ans;
				loc	= loc + "?param=" + findEvent + "&Event=" + title;
//				window.alert( "params are " + loc );
				window.location	= loc;
			}
		}
		
		function getNameAndFindPerson( parm )
		{				
			firstName	= '';
			lastName	= '';
			loc	= getBaseURL();
			ans	= window.prompt( "Enter name of person to find:" );
			if ( ans != null ) {
				name	= '' + ans;
				inx	= name.indexOf( " " );
				if ( inx >= 0 ) {
					firstName	= name.substring( 0, inx );
					name	= name.substring( inx + 1 );
				}
				loc	= loc + "?param=" + parm + "&FirstName=" + firstName;
				loc	= loc + "&LastName=" + name;
//				window.alert( 'param is ' + loc );
				window.open( loc, "Selection Window", "width=550px, height=400px, resizable, scrollbars, status", true ); 
			}
		}


		function findPeopleField()
		{
			var	loc	= getBaseURL();
			loc	= loc + "?param=" + listPeople + " &FirstName=";
			loc	= loc + document.PersonForm.FirstName.value;
			loc	= loc +"&LastName=" + document.PersonForm.LastName.value;
			window.open( loc, "Selection Window", "width=550px, height=400px, resizable, scrollbars, status", true ); 
		}
		
		
		function clearPeopleForm()
		{
			var	loc	= '' + window.location;
			var	inx	= loc.indexOf( "?" );
			if ( inx >= 0 ) 
				loc	= loc.substring( 0, inx );
			loc	= loc + "?n=-1";
			window.location	= loc;
		}
		
		function getBaseURL()
		{
			var	loc	= './index.php'
			var	inx	= loc.indexOf( "?" );
			if ( inx >= 0 )
				loc	= loc.substring( 0, inx );
			return loc;
		}

		function notImplemented( str )
		{
			var	s	= ' section of the program has not been implemented yet.';
			if ( str != null && str != '' )
				s	= 'The ' + str + s;
			else
				s	= 'This' + s;
			window.alert( s );
		}
		
		function showHelp()
		{
			window.open( 'help.html', '_blank', 'height=400, width=400, scrollbars, resizable' );
		}
