public static void BookFlightObject(
				String SelectedFlightType,
				int AdultSeats,
				int ChildSeats
				) {

			try{
				Globals.ActiveCustomer = Globals.ATA.CustomerArray[Globals.ActiveClientObjID];				
			}
			catch(ArrayIndexOutOfBoundsException e){
				Globals.ActiveCustomer = new Customer();
			}						
			try{
				Globals.ActiveBusinessFlight = Globals.ATA.BusFlightArray[Globals.ActiveFlightObjID];	
				Globals.ActiveEconomyFlight = Globals.ATA.EcoFlightArray[Globals.ActiveFlightObjID];
			}
			catch(ArrayIndexOutOfBoundsException e){
				Globals.ActiveBusinessFlight = new BusinessFlight();
				Globals.ActiveEconomyFlight = new EconomyFlight();
				Globals.ActiveEconomyFlight.TravelDate = new Date();
				Globals.ActiveBusinessFlight.TravelDate = new Date();
			}
			
			
			Itinerary InputItinerary = new Itinerary();
			
			
			Double TotalPrice = 0.0;
			
			if (SelectedFlightType == "Economical"){
				// eco
				TotalPrice = Globals.ATA.EcoFlightArray[Globals.ActiveFlightObjID].MakeBooking(Globals.ATA.CustomerArray[Globals.ActiveClientObjID]);
				System.out.println("Total Price is: " + TotalPrice );
				
				
			}						
			else if (SelectedFlightType == "Business"){
				// bus
				TotalPrice = Globals.ATA.BusFlightArray[Globals.ActiveFlightObjID].MakeBooking(Globals.ATA.CustomerArray[Globals.ActiveClientObjID]);
				System.out.println("Total Price is: " + TotalPrice );
			}
			
				
				
			
			
			
			
			System.out.println("Writing to object...");
			//InputItinerary.Customerid = SelectedCustomerID;
			InputItinerary.adultSeats = AdultSeats;
			InputItinerary.childSeats = ChildSeats;
			
			InputItinerary.DateBooked = Globals.ActiveBusinessFlight.TravelDate;
			InputItinerary.Flightid = Globals.ActiveBusinessFlight.FlightNumber;
			InputItinerary.FlightType = SelectedFlightType;

			InputItinerary.flightcost = TotalPrice;
			InputItinerary.FlightFrom = Globals.ActiveBusinessFlight.origin;
			InputItinerary.FlightTo = Globals.ActiveBusinessFlight.destination;
				
			
			Itinerary[] ActiveArray = new Itinerary[Globals.ATA.CustomerArray[Globals.ActiveClientObjID].BookingsLog.length+1];
			
			for (int i = 0;i < Globals.ATA.CustomerArray[Globals.ActiveClientObjID].BookingsLog.length ;i++){
				ActiveArray[i] = Globals.ATA.CustomerArray[Globals.ActiveClientObjID].BookingsLog[i];
			}
			
			// Bookings log updated...
			ActiveArray[Globals.ATA.CustomerArray[InputItinerary.Customerid].BookingsLog.length] = InputItinerary;
			Globals.ATA.CustomerArray[Globals.ActiveClientObjID].BookingsLog = ActiveArray;
			Globals.ATA.CustomerArray[Globals.ActiveClientObjID].Cost = TotalPrice + Globals.ATA.CustomerArray[Globals.ActiveClientObjID].Cost;
			Globals.ATA.CustomerArray[Globals.ActiveClientObjID].numFlights ++;
		    System.out.println("... Complete.");

			
		}