		function start_progress_icon()
		{
			//document.stjohns_logo.src = progress_logo.src;
		}
		
		function stop_progress_icon()
		{
			//document.stjohns_logo.src = regular_logo.src;
		}
		
		function swap_trip_icon(theform, theimage)
		{
			if(theimage.src == mytrip_add.src)
			{
				theimage.src = mytrip_remove.src;
				theform.doAction.value = "add"; // this gets set just before the form is submitted
			}
			else
			{
				theimage.src = mytrip_add.src;
				theform.doAction.value = "remove"; // this gets set just before the form is submitted
			}
			
			theform.submit();
		}
		
		function zoom(level)
		{
			//start_progress_icon();
			
			document.mapform.zoom_level.value = level;
			
			document.mapform.submit();
		}
		
		function pan(direction)
		{
			//start_progress_icon();
			
			document.mapform.pan_direction.value = direction;
			
			document.mapform.submit();
		}
		
		function page(start_num)
		{
			//start_progress_icon();
			document.proxform.search.value=0;
			document.proxform.page_start.value = start_num;
			
			document.proxform.submit();
		}
		
		function open_morepage(url)
		{
			var bNewWindow = false;
			
			if(!window.parent.opener)
			{
				// opera - parent gone - need new one
				bNewWindow = true;
			}
			else if(window.parent.opener.closed)
			{
				// ie - parent gone - need new one
				bNewWindow = true;
			}
			else
			{
				// parent still exists
				bNewWindow = false;
			}
			
			if(bNewWindow)
			{
				newParent = window.open(url);
				window.parent.opener = newParent;
			}
			else
			{
				window.parent.opener.location = url;			
			}
			
			window.parent.opener.focus();			
		}
		
		function prox_search()
		{
			//start_progress_icon();
			
			document.proxform.submit();
		}
		
		function print_window(pageSource)
		{
			leWindow = window.open(pageSource, 'PrintMap', 'toolbar=no,width=600,height=550,status=no,resize=no,resizable=no,menubar=no,x=20,y=30,left=20,top=30'); 
			leWindow.focus();
		} 