

function refreshMap() {
	// do nothing for now
	// reload iframe with new query for grp
	var mapiFrame = document.getElementById("MapFrame");
	var Box = document.getElementById("ShowListingsBox");

	mapwidth = parseInt(mapiFrame.style.width);
	mapheight = parseInt(mapiFrame.style.height);
	
	var SelectedGrp = Box.options[Box.selectedIndex].value;
	var URL = "http://" + website_host + "/bin/listing_map.php?acnt=" + acnt + "&grp=" + escape(SelectedGrp) + "&ZKEY=" + ZKEY + "&w=" + mapwidth + "&h=" + mapheight + "&domain=" + domain; 
	
	//alert(URL);
frames["MapFrame"].location.replace(URL);
}

// toggles map size between small and large
function mapSizeToggle() {
	var mapiFrame = document.getElementById("MapFrame");
	//var map = frames["mapiFrame"].document.getElementById("map"); // can't access across domains
	var mapSizeBtn = document.getElementById("MapSizeBtn");
	
	//	need to change the height of both the iframe and the map div (within the iframe page)
	if (mapSize == "small") {
		mapiFrame.style.height = 400 +"px";
		//map.style.height = 400 +"px";
		mapSize = "large";
		mapSizeBtn.innerHTML = "make map smaller";
		refreshMap();
	} else {
		mapiFrame.style.height = 200 +"px";
		//map.style.height = 200 +"px";
		mapSize = "small";
		mapSizeBtn.innerHTML = "make map larger";
		refreshMap();
	}
}
