//<![CDATA[
            var ajax = new sack();
            
            function setFlightChildAge(childCount)
            {
                // if ajax is launched hide included getRooms file
                ajax.onLoading = showWaitMessageFlightChild;
                // Specifying which file to get
                ajax.requestFile = '/includes/getFlightChildAge.php?childCount='+childCount+'&only=true';
                // Specify function that will be executed after file has been found
                ajax.onCompletion = createFlightChildAge;
                // Execute AJAX function
                ajax.runAJAX();
            }
            
            function setFlightInfantAge(infantCount)
            {
                // if ajax is launched hide included getRooms file
                ajax.onLoading = showWaitMessageFlightInfant;
                // Specifying which file to get
                ajax.requestFile = '/includes/getInfantAge.php?infantCount='+infantCount+'&type=flight&only=true';
                // Specify function that will be executed after file has been found
                ajax.onCompletion = createFlightInfantAge;
                // Execute AJAX function
                ajax.runAJAX();
            }
            
            function createFlightChildAge()
            {
                document.getElementById('flightChildAges').innerHTML = ajax.response;
            }
            
            function createFlightInfantAge()
            {
                document.getElementById('flightInfantAges').innerHTML = ajax.response;
            }
            
            function showWaitMessageFlightChild()
            {
                document.getElementById('flightChildAges').innerHTML = 'Loading... Please wait';
            }
    
            function showWaitMessageFlightInfant()
            {
                document.getElementById('flightInfantAges').innerHTML = 'Loading... Please wait';
            }
        //]]>
