// JavaScript Document
function ajaxList(level, old_area, new_area) {
	
		if (window.XMLHttpRequest) 	{
			xhr=new XMLHttpRequest()
		} else if (window.ActiveXObject) {
			xhr=new ActiveXObject("Microsoft.XMLHTTP")
		}
			
		if (xhr!=null) {
			xhr.onreadystatechange = ajaxListResult;
			xhr.open("GET", "/maps/008_LONELY/fmASMap/info/cities.php?level=" + level + "&old_area=" + old_area + "&new_area=" + new_area, true);
			xhr.send(null);
		} else {
			alert("Your browser does not support XMLHTTP.")
		}
	}
	
function ajaxListResult() {
		if (xhr.readyState == 4) {
			//if (xhr.status==200) { document.getElementById('list').innerHTML = xhr.responseText;  }
		}
	}
	
function areaSelect(level, id_str) {
		fmEngine.SetVariable("_root.outsideLevel", level);
		fmEngine.SetVariable("_root.outsideArea", id_str);
		fmEngine.SetVariable("_root.outsideAction", "centerArea");
		fmEngine.TCallLabel("_root.outside_mc", "outsideAction");
	}
