/*******************************************************************************
 Called by the dynamic tools.  This switches which tool is shown, and
 which is currently the active tool (in the "tool" hidden input in the mapparams
 file.
******************************************************************************/
function changeTool(tool, imgIndex){
	var oldTool = document.mapparams.cmd.value;
	var oldIndex = document.mapparams.img.value; 
	if (oldIndex != 0)
		document.images[oldIndex].src = "../RTSupport/" + oldTool + "_off.jpg";
	document.images[imgIndex].src = "../RTSupport/" + tool + "_on.jpg";
	document.mapparams.img.value = imgIndex;
	document.mapparams.cmd.value = tool;
}
/*******************************************************************************
 Called by the map arrow graphics around the map image.  Resets parameters and
 submits the form.
******************************************************************************/
function moveMap(tool){
	showRetrieveMap();
	document.mapparams.cmd.value = tool;
	document.mapparams.submit();
}

