// JavaScript Document
function getdestinations(val) {
  xmlHttp=GetXmlHttpObject();
  var url="../data/data.php";
  //send for destination
  var to_send = "a=get_destinations&airport="+val;
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.open("POST",url,true);
  xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlHttp.send(to_send);
  function stateChanged() {
    if (xmlHttp.readyState==4 && xmlHttp.status == 200)
      document.getElementById('destination_sel').innerHTML = xmlHttp.responseText;
  }
}
 function getpaxranges(val) { 
   xmlHttp2=GetXmlHttpObject();
  var url="../data/data.php";
  //send for pax ranges
  var to_send = "a=get_pax_ranges&airport="+val;
  xmlHttp2.onreadystatechange=stateChanged2;
  xmlHttp2.open("POST",url,true);
  xmlHttp2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlHttp2.send(to_send);
  function stateChanged2() {
    if (xmlHttp2.readyState==4 && xmlHttp2.status == 200)
    document.getElementById('pax_range_sel').innerHTML = xmlHttp2.responseText;
  }
}