var useElevationService=true;function setElevationTool(){var isOk;var j;if(hasLayer("measureBox")){hideLayer("measureBox");};hideLayer("xBoxTop");hideLayer("xBoxLeft");hideLayer("xBoxRight");hideLayer("xBoxBottom");panning=false;zooming=false;selectBox=false;shapeSelectBuffer=false;toolMode=1081;if(canQuery){if(isIE){document.all.theTop.style.cursor="crosshair";theCursor=document.all.theTop.style.cursor;};modeBlurb="USGS Elevation Query";}else{alert(msgList[46]);};showGeocode=false;drawSelectBoundary=false;if(useTextFrame){parent.TextFrame.document.location=appDir+"getElevation.htm";};hideLayer("measureBox");};function getElevation(e){var theX=mouseX;var theY=mouseY;getMapXY(theX,theY);var remoteHost_URL='http://gisdata.usgs.gov';if(document.domain=="ims.cr.usgs.gov"||document.domain=="gisdata.usgs.gov"||document.domain=="imsdemo.usgs.gov"){remoteHost_URL='';};if((useExternalWindow)||(!useTextFrame)){window.open(remoteHost_URL+"/XMLWebServices/Elevation_Result.aspx?X="+mapX+"&Y="+mapY+"&RETURNURL=http://"+hostName+appDir+"getElevation.htm","Elevation_Service","width=425,height=300,scrollbars=yes,resizable=yes");}else{parent.TextFrame.document.location=remoteHost_URL+"/XMLWebServices/Elevation_Result.aspx?X="+mapX+"&Y="+mapY+"&RETURNURL=http://"+hostName+appDir+"getElevation.htm";}}

