function showList(level_str, area_str, filter_str) {
  document.getElementById('list').innerHTML = "";
  if (level_str != "") {
    if (window.XMLHttpRequest) {
      xhr=new XMLHttpRequest();
    } else if (window.ActiveXObject) {
      xhr=new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (xhr!=null) {
      xhr.onreadystatechange = ajaxShowList;
      xhr.open("GET", "/assets/flash-maps/info/reactors.jsp?level=" + level_str + "&area=" + area_str + "&filter=" + filter_str, true);
      xhr.send(null);
    } else {
      alert("Your browser does not support XMLHTTP.");
    }
  }
}

function ajaxShowList() {
  if (xhr.readyState == 4) {
    if (xhr.status==200) {
      document.getElementById('list').innerHTML = xhr.responseText;
    }
  }
}

function showReactor(level_str, state_str, county_str, id_str) {
  if (level_str == "2") {
    fmEngine.SetVariable("_root.bShowPopup", id_str);
    fmAreaCenter(state_str + "_" + county_str);
  } else if (level_str == "3") {
    fmPOIAddEvent("onRelease", "_MC", "/assets/flash-maps/popups/reactor_info.swf", id_str);
  }
}

