<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi guys,</DIV>
<DIV>I am trying to run this dbox demo on my localhost. i don't have website yet but i want to run it on my home pc. How do i do that? I am using MS4W latest version. </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>This is the mapfile:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#<BR>#Start of map file, created by AmeiN! for ArcGis 02/06/2006, 2:06:22 PM<BR>#<BR>#<BR>MAP<BR>NAME 'Permits'<BR>STATUS ON</DIV>
<DIV>#PROJECTION<BR>#&nbsp;&nbsp; 'init=epsg:HTML'<BR>#END<BR>&nbsp;<BR>SIZE 650 500<BR>EXTENT 179285.663523 4471528.000000 758248.492727 4822132.500000<BR>UNITS meters<BR>SHAPEPATH ''<BR>SYMBOLSET'E:\MS4W\Apache\htdocs\symbols.sym'<BR>FONTSET 'E:\MS4W\Apache\htdocs\fontset.txt'<BR>CONFIG PROJ_LIB "E:\ms4w\proj\nad\"</DIV>
<DIV>IMAGECOLOR 255 255 255<BR>IMAGETYPE jpeg<BR>&nbsp;<BR>#<BR>#Start of web interface definition<BR>#<BR>&nbsp;<BR>WEB</DIV>
<DIV>TEMPLATE 'E:\MS4W\Apache\htdocs\SampleBox\Sample.html'<BR>IMAGEPATH 'E:\ms4w\tmp\ms_tmp\'<BR>IMAGEURL '/ms_tmp/' #Replace 'JasperMaps' with your website name.</DIV>
<DIV>END #HEADER<BR>&nbsp;<BR>#<BR># Start of querymap<BR>#</DIV>
<DIV>QUERYMAP<BR>&nbsp; SIZE 660 580<BR>&nbsp; STATUS ON<BR>&nbsp; STYLE selected<BR>&nbsp; COLOR 255 0 0<BR>&nbsp; STYLE hilite<BR>End<BR>&nbsp;</DIV>
<DIV>#<BR>#Start of legend<BR>#<BR>&nbsp;<BR>LEGEND<BR>STATUS on<BR>POSITION lr<BR>KEYSIZE 18 12<BR>#TEMPLATE 'legend.html'<BR>LABEL<BR>&nbsp;COLOR 0 0 0<BR>&nbsp;TYPE TRUETYPE<BR>&nbsp;FONT Arial <BR>&nbsp;SIZE 9<BR>&nbsp;END # END LABEL<BR>END&nbsp;&nbsp; #LEGEND</DIV>
<DIV>#<BR># Start of scalebar<BR>#<BR>&nbsp;<BR>SCALEBAR<BR>STATUS embed<BR>POSITION ll<BR>&nbsp;STYLE 0<BR>&nbsp; INTERVALS 2<BR>&nbsp; IMAGECOLOR&nbsp; 255 255 255<BR>&nbsp; LABEL<BR>&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp; SIZE SMALL<BR>&nbsp; END&nbsp; #LABEL<BR>SIZE 200 3<BR>OUTLINECOLOR 0 0 0<BR>COLOR&nbsp; 0 0 0<BR>BACKGROUNDCOLOR&nbsp; 255 255 255<BR>UNITS FEET<BR>END&nbsp;&nbsp; #SCALEBAR</DIV>
<DIV><BR>#<BR># Start of layer definitions #<BR>#</DIV>
<DIV>&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp; NAME 'County'<BR>&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp; DATA 'E:\IowaLayers\wcounty.shp'<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wms_title' 'wcounty'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; TRANSPARENCY 100<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 'proj=longlat'<BR>&nbsp;&nbsp;&nbsp; 'ellps=WGS84'<BR>&nbsp;&nbsp;&nbsp; 'datum=WGS84'<BR>&nbsp;&nbsp;&nbsp; 'no_defs'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; MINSCALE 600<BR>&nbsp;&nbsp;&nbsp; #MAXSCALE 250000<BR>&nbsp;&nbsp;&nbsp; LABELITEM 'CO_NAME'<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'wcounty'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0
 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 255 127<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;&nbsp; LABEL <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE medium<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 1<BR>&nbsp;&nbsp;&nbsp;&nbsp; END <BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END</DIV>
<DIV>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME 'Highways'<BR>&nbsp;&nbsp;&nbsp; TYPE LINE<BR>&nbsp;&nbsp;&nbsp; DATA 'E:\IowaLayers\highway.shp'<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wms_title' 'highway'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; TRANSPARENCY 100<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 'proj=longlat'<BR>&nbsp;&nbsp;&nbsp; 'ellps=WGS84'<BR>&nbsp;&nbsp;&nbsp; 'datum=WGS84'<BR>&nbsp;&nbsp;&nbsp; 'no_defs'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'highway'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 241 45 105<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END</DIV>
<DIV>&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; NAME 'Towns'<BR>&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp; DATA 'E:\IowaLayers\incorp.shp'<BR>&nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'wms_title' 'incorp'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; TRANSPARENCY 100<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 'proj=utm'<BR>&nbsp;&nbsp;&nbsp; 'zone=15'<BR>&nbsp;&nbsp;&nbsp; 'ellps=clrk66'<BR>&nbsp;&nbsp;&nbsp; 'datum=NAD27'<BR>&nbsp;&nbsp;&nbsp; 'units=m'<BR>&nbsp;&nbsp;&nbsp; 'no_defs'<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'incorp'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 6 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 168
 100 185<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END</DIV>
<DIV>&nbsp;<BR>END #End of Mapfile</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is the template: </DIV>
<DIV>&lt;html&gt;<BR>&nbsp; &lt;head&gt;&lt;title&gt;My First Template (dBox)&lt;/title&gt;&lt;/head&gt;</DIV>
<DIV>&lt;!-- Walter Zorn Javascript Graphics Library --&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/third_party/walter_zorn/wz_jsgraphics.js"&gt;&lt;/script&gt;</DIV>
<DIV>&lt;!-- Condensed cross-browser.com x.js library --&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/third_party/x/x_dhtml.js"&gt;&lt;/script&gt;</DIV>
<DIV>&lt;!-- SDL Libraries --&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/utilities/utils.js"&gt;&lt;/script&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/mapserver/dbox.js"&gt;&lt;/script&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/mapserver/dcontainer.js"&gt;&lt;/script&gt;<BR>&lt;script language="JavaScript" src="../dbox/src/javascript/mapserver/mapserv.js"&gt;&lt;/script&gt;</DIV>
<DIV>&lt;script language="javascript"&gt;</DIV>
<DIV>&nbsp; function Extent(minx, miny, maxx, maxy) {<BR>&nbsp;&nbsp;&nbsp; this.minx = minx;<BR>&nbsp;&nbsp;&nbsp; this.miny = miny;<BR>&nbsp;&nbsp;&nbsp; this.maxx = maxx;<BR>&nbsp;&nbsp;&nbsp; this.maxy = maxy;<BR>&nbsp; }</DIV>
<DIV>&nbsp; config = new Object();<BR>&nbsp; //config.ms_executable = "<A href="http://localhost/cgi-bin/mapserv">http://localhost/cgi-bin/mapserv</A>";<BR>&nbsp; config.ms_executable = "<A href="http://localhost/cgi-bin/mapserv.exe">http://localhost/cgi-bin/mapserv.exe</A>";<BR>&nbsp; //config.mapfile = "/home/lime/public_html/2006/test.map";<BR>&nbsp; config.mapfile = "E:\\MS4W\\mapdocs\\IowaSample.map";&nbsp; <BR>&nbsp; config.minscale = 5000;<BR>&nbsp; config.maxscale = 10000000;<BR>&nbsp; //config.app_extent = new Extent(125105.727952, 4785412.819496, 788393.592828, 5488749.153129);<BR>&nbsp; config.app_extent = new Extent(200000.00, 4440000.00, 750000.00, 4830000.00);<BR>&nbsp; config.ref_extent = new Extent(180527.00, 4472149.00, 757628.00, 4821512.00);<BR>&nbsp; config.refsizex = 243;<BR>&nbsp; config.refsizey = 147;<BR>&nbsp; config.reference_image = "Iowa.jpg";<BR>&nbsp; config.mapsizex = 650;<BR>&nbsp; config.mapsizey = 500;</DIV>
<DIV>&nbsp; // the DHTML main mapping window (note the significance of the name "main" here and the anchor image/div in the main body of the page)<BR>&nbsp; var main = new dBox("main");<BR>&nbsp; main.color = "red";<BR>&nbsp; main.thickness = 2;<BR>&nbsp; main.verbose = true;&nbsp; <BR>&nbsp; main.useBusyMessage();</DIV>
<DIV>&nbsp; // the DHTML reference map<BR>&nbsp; var reference = new dBox("reference");<BR>&nbsp; reference.box = false;</DIV>
<DIV>&nbsp; var ms = new Mapserv(config.ms_executable, config.mapfile, config.app_extent.minx, config.app_extent.miny, config.app_extent.maxx, config.app_extent.maxy, config.mapsizex, config.mapsizey);<BR>&nbsp; ms.queryfile = config.mapfile;<BR>&nbsp; ms.minscale = config.minscale;<BR>&nbsp; ms.maxscale = config.maxscale;<BR>&nbsp; ms.setUnits(MAPSERV_UNITS_FEET);</DIV>
<DIV>&nbsp; // add the reference map<BR>&nbsp; ms.referencemap = new Mapserv("reference", config.mapfile, config.ref_extent.minx, config.ref_extent.miny, config.ref_extent.maxx, config.ref_extent.maxy, config.refsizex, config.refsizey);</DIV>
<DIV>//<BR>&nbsp; // drawing callback, calling ms.draw will invoke this function after building appropriate URLs<BR>&nbsp; // <BR>&nbsp; ms.setHandler(MAPSERV_DRAW, ms_draw);<BR>&nbsp; function ms_draw() {<BR>&nbsp;&nbsp;&nbsp; // update the maps (reference first)<BR>&nbsp;&nbsp;&nbsp; reference.setImage(ms.referencemap.url);<BR>&nbsp;&nbsp;&nbsp; main.setImage(ms.url);</DIV>
<DIV>&nbsp;&nbsp;&nbsp; // update the scalebar&nbsp;&nbsp;&nbsp; <BR>//&nbsp;&nbsp;&nbsp; document.scalebar_miles.src = ms.mapserver + "?map=" + config.mapfile + "&amp;mode=scalebar&amp;mapext=0+0+" + (ms.extent[2] - ms.extent[0]) + "+" + (ms.extent[3] - ms.extent[1]) + "&amp;mapsize=" + ms.width + "+" + ms.height;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; // debug<BR>&nbsp;&nbsp;&nbsp; var e = document.getElementById("debug");<BR>&nbsp;&nbsp;&nbsp; if(e) e.innerHTML = "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a target=new href='" + ms.url + "'&gt;open current image in a new window&lt;/a&gt;";</DIV>
<DIV>&nbsp; }</DIV>
<DIV>&nbsp; //<BR>&nbsp; // querying callback<BR>&nbsp; //<BR>&nbsp; ms.setHandler(MAPSERV_QUERY, ms_query);<BR>&nbsp; function ms_query() {<BR>&nbsp;&nbsp;&nbsp; querywin = window.open(ms.url, 'querywin');<BR>&nbsp;&nbsp;&nbsp; querywin.focus();<BR>&nbsp; }</DIV>
<DIV>&nbsp; // called from jBox/dBox when the user initiates change<BR>&nbsp; reference.setHandler(DBOX_SETBOX, reference_setbox);<BR>&nbsp; function reference_setbox(minx, miny, maxx, maxy) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ms.applyReference(minx, miny); // no box dragging in the reference map<BR>&nbsp;&nbsp;&nbsp; ms.draw();<BR>&nbsp; }</DIV>
<DIV>&nbsp; main.setHandler(DBOX_SETBOX, main_setbox);<BR>&nbsp; function main_setbox(minx, miny, maxx, maxy) {<BR>&nbsp;&nbsp;&nbsp; if(ms.mode == 'map') {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(minx != maxx &amp;&amp; miny != maxy)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.applyBox(minx, miny, maxx, maxy);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.applyZoom(minx, miny);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.draw();&nbsp; // builds draw URL and calls draw callback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; } else if(ms.mode != 'map') {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.applyBoxQuery(minx, miny, maxx, maxy);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.applyPointQuery(minx, miny);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.query(); // builds query URL and calls query callback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;
 }<BR>&nbsp; }</DIV>
<DIV>&nbsp; // various event handlers called by jBox/dBox<BR>&nbsp; main.setHandler(DBOX_MOUSEMOVE, main_mousemove);<BR>&nbsp; function main_mousemove(x, y) {<BR>&nbsp;&nbsp;&nbsp; var text = '';<BR>&nbsp;&nbsp;&nbsp; var utmx = Number(ms.extent[0] + x*ms.cellsize);<BR>&nbsp;&nbsp;&nbsp; var utmy = Number(ms.extent[3] - y*ms.cellsize);</DIV>
<DIV>&nbsp;&nbsp;&nbsp; text = "&amp;nbsp;UTM Coordinates:&nbsp; x =" + Math.round(utmx) + " and y = " + Math.round(utmy);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; var e = document.getElementById("coords");<BR>&nbsp;&nbsp;&nbsp; if(e) e.innerHTML = text;<BR>&nbsp; }<BR>&nbsp; <BR>&nbsp; main.setHandler(DBOX_MOUSEEXIT, clear_coords);<BR>&nbsp; main.setHandler(DBOX_MOUSEENTER, clear_coords);<BR>&nbsp; function clear_coords() { var e = document.getElementById("coords"); if(e) e.innerHTML = '&amp;nbsp;'; }</DIV>
<DIV>main.setHandler(DBOX_MEASURE, main_measure);<BR>&nbsp; function main_measure(s, t, n, a) {&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; var text = '&amp;nbsp;Distance: ' + Math.round(t*ms.cellsize) + " m. (" + n + " points)";<BR>&nbsp;&nbsp;&nbsp; var e = document.getElementById("measure");<BR>&nbsp;&nbsp;&nbsp; if(e) e.innerHTML = text;<BR>&nbsp; }</DIV>
<DIV>&nbsp; main.setHandler(DBOX_AREA, main_area);<BR>&nbsp; function main_area(a, d, l, n) {&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; var text = '&amp;nbsp;Area: ' + Math.round(a*ms.cellsize*ms.cellsize) + " sq. m. Distance: " + Math.round(l*ms.cellsize) +&nbsp; " m. (" + n + " points)";<BR>&nbsp;&nbsp;&nbsp; var e = document.getElementById("measure");<BR>&nbsp;&nbsp;&nbsp; if(e) e.innerHTML = text;<BR>&nbsp; }</DIV>
<DIV>&nbsp; //<BR>&nbsp; // Browser specific event handlers<BR>&nbsp; //<BR>&nbsp; window.onresize = function() {<BR>&nbsp;&nbsp;&nbsp; main.sync();<BR>&nbsp;&nbsp;&nbsp; reference.sync();<BR>&nbsp; }</DIV>
<DIV>&nbsp; window.onload = function() {<BR>&nbsp;&nbsp;&nbsp; main.initialize();<BR>&nbsp;&nbsp;&nbsp; reference.initialize();<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; ms.draw();<BR>&nbsp; }</DIV>
<DIV>&lt;/script&gt;</DIV>
<DIV>&nbsp; &lt;body&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;form name=mapserv&gt;<BR>&nbsp;&nbsp;&nbsp; Menu: &lt;a href="javascript:ms.setExtent(config.app_extent.minx, config.app_extent.miny, config.app_extent.maxx, config.app_extent.maxy); ms.draw()"&gt;reset&lt;/a&gt; | &lt;a href="javascript:ms.draw()"&gt;refresh&lt;/a&gt; | &lt;a href="/~lime/2006/"&gt;live build home&lt;/a&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;p&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;table border=2&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;&lt;td valign=top&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&lt;script language="javascript"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //document.write("&lt;img id=\"main\" src=\"<A href="http://localhost/graphics/white_pixel.gif\">http://localhost/graphics/white_pixel.gif\</A>" height=\"" + config.mapsizey + "\" width=\"" + config.mapsizex + "\"&gt;");<BR>&nbsp;document.write("&lt;img id=\"main\" src=\"../White_pixel.gif\" height=\"" + config.mapsizey + "\" width=\"" + config.mapsizex + "\"&gt;");<BR>&lt;/script&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- scalebar --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script language="javascript"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // document.write("&lt;img align=\"right\" name=\"scalebar_miles\" src=\"" + ms.mapserver + "?map=" + config.mapfile + "&amp;mode=scalebar&amp;mapext=0+0+" + (ms.extent[2] - ms.extent[0]) + "+" + (ms.extent[3] - ms.extent[1]) + "&amp;mapsize=" + ms.width + "+" + ms.height + "\" border=\"0\"&gt;");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- end scalebars --&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;/td&gt;&lt;td valign=top&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;Mode:&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="mode" type="radio" value="nquery" onClick="ms.mode='nquery'"&gt; query&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="mode" type="radio" value="map" onClick="ms.mode='map'" checked&gt; browse</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;Zoom:&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="zoomdir" type="radio" value="1" onClick="ms.zoomdir=this.value"&gt; in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="zoomdir" type="radio" value="0" onClick="ms.zoomdir=this.value" checked&gt; pan<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="zoomdir" type="radio" value="-1"&nbsp; onClick="ms.zoomdir=this.value"&gt; out&lt;/p&gt;<BR>&lt;p&gt;<BR>&nbsp; &amp;nbsp;&amp;nbsp;Measure: &lt;a href="javascript:main.lineOn()"&gt;On&lt;/a&gt;/&lt;a href="javascript:main.lineOff()"&gt;Off&lt;/a&gt;&lt;br&gt;<BR>&nbsp; &amp;nbsp;&amp;nbsp;Area: &lt;a href="javascript:main.polyOn()"&gt;On&lt;/a&gt;/&lt;a href="javascript:main.polyOff()"&gt;Off&lt;/a&gt;<BR>&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;Layers:&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="layer" type="checkbox" value="Towns" onClick="ms.setLayer(this.value,
 this.checked)"&gt; Towns&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="layer" type="checkbox" value="Highways" onClick="ms.setLayer(this.value, this.checked)"&gt; Highways&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name="layer" type="checkbox" value="County" onClick="ms.setLayer(this.value, this.checked)" &gt; County&lt;br&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img name=legend src="<A href="http://localhost/graphics/white_pixel.gif">http://localhost/graphics/white_pixel.gif</A>"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;</DIV>
<DIV>&lt;script language="javascript"&gt;<BR>&nbsp; document.write("&lt;img id=\"reference\" src=\"" + config.reference_image + "\" width=\"" + config.refsizex + "\" height=\"" + config.refsizey + "\" /&gt;");<BR>&lt;/script&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/td&gt;&lt;/tr&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/table&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;div id="coords"&gt;&amp;nbsp;&lt;/div&gt;&lt;br&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;div id="measure" class="small"&gt;&amp;nbsp;&lt;/div&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;/form&gt;</DIV>
<DIV>&nbsp; &lt;/body&gt;<BR>&lt;/html&gt;</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>