var Affiliate = Class.create({
    initialize: function() {
    },
    getDepartureType: function() {
        return this.getOptionForLocation("departure", "type");
    },
    getDestinationType: function() {
        return this.getOptionForLocation("destination", "type");
    },
    getOptionForLocation: function(location, option) {
       return $(location) ? $F($(location).select('input[name="' + option + '"]')[0]) : false;
    }
});