// Things to change on this js file
// 1. Path to cgi-bin directory
// 2. Path to static maps directory

function viewMap(map, region) {
	url = "viewmap.php?theMap=" + map + "&location=" + region;
	window.open(url,'','menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600')
	}

<!-- Preload bullet image -->
    
    if (document.images) {
       bulletOn = new Image(); bulletOn.src = "./images/bullet_red.gif";
       bulletOff = new Image(); bulletOff.src = "./images/bullet_white.gif";
       
       bullet2On = new Image(); bullet2On.src = "./images/spacer_red.gif";
       bullet2Off = new Image(); bullet2Off.src = "./images/spacer_blue.gif";
    }

    <!-- Toggle bullets On or Off -->
    
    function imgOn(e) {
             if (document.images) {
             e.src = bulletOn.src
             }
    }

    function imgOff(e) {
             if (document.images) {
             e.src = bulletOff.src
             }
    }
    
    function bullOn(e) {
             if (document.images) {
             e.src = bullet2On.src
             }
    }

    function bullOff(e) {
             if (document.images) {
             e.src = bullet2Off.src
             }
    }
        
    <!-- Load appropriate stylesheet -->
    
            if (navigator.appName == "Netscape")
               {document.write ("<link rel='stylesheet' type='text/css' href='fdrs_ns.css'>")}
            else 
               {document.write ("<link rel='stylesheet' type='text/css' href='fdrs_ie.css'>")}
               


       
    function showMap(e) {
             document.getMapForm.location.value = e
             document.getMapForm.submit()
             }

	function interpFDRS () {
		     index = document.mapForm.interpType.selectedIndex
             pick = document.mapForm.interpType.options[index].value
             
               if (pick != "") {
                  window.location.href = pick + ".html"
				  }
			 }
	
	// function to view static maps
	function viewStatic (type) {

		if (type == "wsxn_sm") {
			img = "indo-wmowxstndist-small.gif";
			}
			else if (type == "topo_sm") {
				img = "indo-elevation-small.gif";
				}
			else if (type == "fuel_sm") {
				img = "sum-fueltypes-small.gif";
				}
			else if (type == "wsxn_lg") {
				img = "indo-wmowxstndist-big.gif";
				}
			else if (type == "topo_lg") {
				img = "indo-elevation-big.gif";
				}
			else if (type == "fuel_lg") {
				img = "sum-fueltypes-big.gif";
				}
				
	   // 2. Change this path to the static maps directory
	   
			window.open ("http://www.fdrs.or.id/maps/static/" + img, "", "Width=670, Height=525, scrollbars=yes, toolbar=no, resizable=yes")
		} 

	// You will need to change the path below and above!
	
	function MM_openBrWindow(theURL,winName,features) {
		path = "http://www.fdrs.or.id/"; 
  		window.open(path+theURL,winName,features);
	}	