/*
*	Method called by the FlightMap object when the timetable button is clicked
*	within the route info panel.
*	@param		dptCode		String 3 letter code of the source airport/city
*	@param		arvCode		String 3 letter code of the destination airport/city
*	@param		carCode		String 2 letter code of the carrier airline
*	@param		charter		Boolean true if the route is a charter route
*	@param		viaCodes	Array of via city codes
*/
function gotoTimetable( dptCode, arvCode, carCode, charter, viaCodes ){
    alert("dptCode=" + dptCode + 
        ", arvCode=" + arvCode + 
        ", carCode=" + carCode + 
        ", charter=" + charter + 
        ", viaCodes=" + viaCodes
    );
}

/**
*   Secondary method called by the flightmaps application when a timetable button
*   is clicked. With this method a single parameter object is passed which contains
*   named properties, this saves having to have an ever growing list of params
*   and the associated risk of this getting difficult to manage.
*
*   @param  params  An Object with the following properties that can be accessed
*                   using dot syntax:
*                
*                   dptCode
*                   arvCode
*                   carCode
*                   charter
*                   viaCodes
*                   language
*                   customerCode
*                   customerSubCode
*                   productCode
*/
function gotoTimetableWithParams( params ){
    var str = "";
    for (var prop in params){
        str += prop + "=" + params[prop] + ", ";
    }
    alert(str);
}