Thanks Steve that works great.  Here's the full script if anyone wants it.

<script language="JavaScript">
         function printmap() {
                var w = window.open();
                var d = w.document;
                d.open();
                d.write("<h3>Printable Map</h3>");
d.write("<img name=\"scalebar_miles\" src=\"" + ms.mapserver + "?map=" + config.mapfile + "&mode=scalebar&mapext=0+0+" + (ms.extent[2] - ms.extent[0]) + "+" + (ms.extent[3] - ms.extent[1]) + "&mapsize="
                + ms.width + "+" + ms.height + "\" border=\"0\">");
                d.write("<img name=\"the_map\" src=\"" + ms.url + "\">");
                d.close();
  }
        </script>

Sam

_________________________________________________________________
Visit MSN Holiday Challenge for your chance to win up to $50,000 in Holiday cash from MSN today! http://www.msnholidaychallenge.com/index.aspx?ocid=tagline&locale=en-us

Reply via email to