  var countries1 = new Array();
  var counties1 = new Array();
  var cities1 = new Array();

  countries1[0] = new Array();
  counties1[0] = new Array();
  cities1[0] = new Array();

  function fillcountry1(region_id,countryId,countyId,cityId) {

    country_select = document.getElementById(countryId);

    country_select.length = 0;
    if(countryId.indexOf("To") >= 0)
    {
        country_select.options[0] = new Option( "---Destination----", "0", 1, 1 );
    }
    else
    {
        country_select.options[0] = new Option( "---Departure----", "0", 1, 1 );
    }
    if ( !countries1[region_id] ) {
      fillcounty1(0,countyId,cityId);
      return;
    }

    for( i=0; i<countries1[region_id].length; i++ ) {
      country_select.options[i+1] = new Option( countries1[region_id][i][1], countries1[region_id][i][0] );
    }

    country_select.options[0].selected = true;

    fillcounty1(0,countyId,cityId);
  }

  function fillcounty1(country_id,countyId,cityId) {

    county_select = document.getElementById(countyId);

    county_select.length = 0;
    county_select.options[0] = new Option( "---Select----", "0", 1, 1 );

    if ( !counties1[country_id] ) {
      fillcity1(0,cityId);
      return;
    }

    for( i=0; i<counties1[country_id].length; i++ ) {
      county_select.options[i+1] = new Option( counties1[country_id][i][1], counties1[country_id][i][0] );
    }

    county_select.options[0].selected = true;

    fillcity1(0,cityId);
  }

  function fillcity1(county_id,cityId) {

    city_select = document.getElementById(cityId);
    city_select.length = 0;

    city_select.options[0] = new Option( "---Select----", "0", 1, 1 );

    if ( !cities1[county_id] ) {
      return;
    }

    for( i=0; i<cities1[county_id].length; i++ ) {
      city_select.options[i+1] = new Option( cities1[county_id][i][1], cities1[county_id][i][0] );
    }

    city_select.options[0].selected = true;
  }