button6.html

    <head><title>button6.html</title>
    <script src=../window.js></script>
    <script src=../examples.js></script>
    </head>
    <body>
    <script>

    w = new win(100,100,400,400,"button5")
    w.setServerURL(MSURL)
    w.setVar("map",MSMAP)

    function submitWin() {
        w.setVar("mapsize",w.contentWidth + " " + w.contentHeight)
        w.setVar("mapext","-20000000 -10000000 20000000 10000000")
        w.submit()
    }

    w.setExecOnResize(submitWin)

    function setProjection(b) {
        var projString="proj=" + b.projName + ",ellps=clrk66"
        w.setVar("map_projection",projString)
        submitWin()
    }

    m = new menu()
    m.realSticky(true)
    m.showAt(10,10)
    b1 = new button("Miller",setProjection)
    b1.projName = "mill"
    m.addButton(b1)
    b2 = new button("Sinusoidal",setProjection)
    b2.projName = "sinu"
    m.addButton(b2)
    </script>