
function bindAjax(inputname) {

    var val = $('#'+inputname).val();
    var type = $("input[@name='typ']:checked").val();    

    $.ajax({
      url: "http://www.tui-reisecenter.rs/components/search_control/ajax/get_combo.php",
      cache: false,
      type: "GET",
      data: ({
        relation_id : val,
        typ : type
      }),
      success: function(html){
        $('#destination_box').hide().html(html).fadeIn('slow');
      }
    });

}
