  function ActivateZoomIn() {
  //Used by SingleClick Client except Basic Viewer
  //imgPrefix is optional... used by Chameleon Interface
	//if (imgPrefix == null) {
	//	imgPrefix = "";
	//	}	
    setToolImage('ZOOMIN','22'); 
    document.frmNavigation.Cmd.value = 'ZOOMIN';
    document.frmNavigation.target="";
    document.frmNavigation.action = 'map.asp';
  }
  
  function ActivateZoomOut() {
  //Used by SingleClick Client except Basic Viewer
  //imgPrefix is optional... used by Chameleon Interface
	//if (imgPrefix == null) {
	//	imgPrefix = "";
	//	}	
    setToolImage('ZOOMOUT','2'); 
    document.frmNavigation.Cmd.value = 'ZOOMOUT';
    document.frmNavigation.target="";
    document.frmNavigation.action = 'map.asp';
  }
  
  function ActivatePan() {
  //Used by SingleClick Client except Basic Viewer
  //imgPrefix is optional... used by Chameleon Interface
	//if (imgPrefix == null) {
	//	imgPrefix = "";
	//	}	
    setToolImage('PAN','2'); 
    document.frmNavigation.Cmd.value = 'PAN';
    document.frmNavigation.target="";
    document.frmNavigation.action = 'map.asp';
  }
  
  function ActivateIdentify(targetwin) {
  //Used by SingleClick Client except Basic Viewer
  //imgPrefix is optional... used by Chameleon Interface
	//if (imgPrefix == null) {
		//imgPrefix = "";
		//}	
    setToolImage('IDENTIFY','2'); 
    document.frmNavigation.Cmd.value = 'IDENTIFY';
    document.frmNavigation.target = targetwin;
    document.frmNavigation.action = 'identify.asp';
  }

  
function PopOut(sURL,sTitle,iHeight,iWidth,ynScroll,ynResize) {

var objWin;
  objWin = window.open(sURL, sTitle, "height="+iHeight+",width="+iWidth+",scrollbars="+ynScroll+",resizable="+ynResize+"");
  if (parseInt(navigator.appVersion) >=4) objWin.window.focus();

}


function setToolImage(tool, mode) {
	//Used by Graphical Button Clients.
	//prefix is an optional argument to the image file name.
	//if (prefix == null) {
	//	prefix = "";
	//	}
	var imageFile = 'images/'+ tool + mode + '.gif';	

	// Dull all images first.
	document.ZOOMIN.src = 'images/zoomin1.gif';
	document.ZOOMOUT.src = 'images/zoomout1.gif';
	document.PAN.src = 'images/pan1.gif';
	document.IDENTIFY.src = 'images/identify1.gif';

	//Then brighten the passed tool.
	if (tool == "ZOOMIN") {
		document.ZOOMIN.src = imageFile;
		}
	if (tool == "ZOOMOUT") {
		document.ZOOMOUT.src = imageFile;
		}
	if (tool == "PAN") {
		document.PAN.src = imageFile;
		}
	if (tool == "IDENTIFY") {
		document.IDENTIFY.src = imageFile;
		}
}

function ProcessLink(sURL) {
		document.body.style.cursor = "wait";
		document.location = sURL;
}
