function getProducts(destination_id, product_code)
{
  if (destination_id != '-1')
  {
    $.post('/ajax/getProducts', { destination_id: destination_id.value }, function(data)
    {
      document.getElementById(product_code).options.length = 0;
      var txtVal = data.split('____');
      var tab;
      for (var i=0; i<txtVal.length; i++)
      {
        tab = txtVal[i].split('__');
        if (tab[0] && tab[1]) {
          document.getElementById(product_code).options[document.getElementById(product_code).length] = new Option(tab[1],tab[0],false,false);
        }
      }
      $('#'+product_code).show();
    });
  }
}

