public static JPanel BookObjectCard (){
			
			
			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();
			}
			
			
			
			
			
			JPanel card = new JPanel();
						
			JPanel part0 = new JPanel(); // Top details.
			JPanel partA = new JPanel(); // Client name for booking.
			JPanel partB = new JPanel(); // Flight ID
			JPanel partC = new JPanel(); // Default Children
			JPanel partD1 = new JPanel(); // Flight Details. ID
			JPanel partD2 = new JPanel(); // Flight Details. COST
			JPanel partD3 = new JPanel(); // Flight Details. FROM
			JPanel partD4 = new JPanel(); // Flight Details. TO
			JPanel partD5 = new JPanel(); // Flight Details. 
			JPanel partD6 = new JPanel(); // Flight Details.
			JPanel partE = new JPanel(); // Flight Type
			JPanel partZ = new JPanel(); // Submit buttons.
			
			
			part0.setPreferredSize(new Dimension(800,35)); // 25 is good for text boxes buttons needs at least 35.
			partA.setPreferredSize(new Dimension(800,35)); // 25 is good for text boxes buttons needs at least 35.
			partB.setPreferredSize(new Dimension(800,35));
			partC.setPreferredSize(new Dimension(800,35));
			partD1.setPreferredSize(new Dimension(800,35));
			partD2.setPreferredSize(new Dimension(800,35));
			partD3.setPreferredSize(new Dimension(800,35));
			partD4.setPreferredSize(new Dimension(800,35));
			partD5.setPreferredSize(new Dimension(800,35));
			partE.setPreferredSize(new Dimension(800,35));
			partZ.setPreferredSize(new Dimension(800,35));
			
			part0.add( new JLabel("Welcome to the booking system."));

			JLabel jlbClientID = new JLabel("Client Name: ");
			final JLabel jtxClientID = new JLabel(String.valueOf(Globals.ActiveCustomer.CustomerCallName));
						
			partA.add(jlbClientID);
			partA.add(jtxClientID);
			
			JLabel jlbAdultNum = new JLabel("Number of Adults: ");
			final JTextField jtxAdultNum = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultadultSeats), 20);
			
			partB.add(jlbAdultNum);
			partB.add(jtxAdultNum);
			
			JLabel jlbChildNum = new JLabel("Number of Children: ");
			final JTextField jtxChildNum = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultchildSeats),20);
			
			partC.add(jlbChildNum);
			partC.add(jtxChildNum);
			
			JLabel jlbFlightDetail = new JLabel("Flight Details: Id Number: ");
			JLabel jtxFlightDetail = new JLabel(String.valueOf(Globals.ActiveEconomyFlight.FlightNumber));
			
			JLabel jtxFlightDetail2 = new JLabel("Ticket Cost: " + String.valueOf(Globals.ActiveEconomyFlight.FlightNumber));
			JLabel jtxFlightDetail3 = new JLabel("Date: " + String.valueOf(Globals.ActiveEconomyFlight.TravelDate));
			JLabel jtxFlightDetail4 = new JLabel("Origin: " + String.valueOf(Globals.ActiveEconomyFlight.origin));
			JLabel jtxFlightDetail5 = new JLabel("Destination: " + String.valueOf(Globals.ActiveEconomyFlight.destination));
			
			
			partD1.add(jlbFlightDetail);
			partD1.add(jtxFlightDetail);
			partD2.add(jtxFlightDetail2);
			partD3.add(jtxFlightDetail3);
			partD4.add(jtxFlightDetail4);
			partD4.add(jtxFlightDetail5);
			
			
			JLabel jlbFlightType = new JLabel("Flight Type: ");
			String[] FlightTypes = { "Economical", "Business",};
			final JComboBox TypeList = new JComboBox(FlightTypes);
			TypeList.setSelectedIndex(0);
			
			partE.add(jlbFlightType);
			partE.add(TypeList);
			//partD.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
			
			
			
			JButton jbtS = new JButton("Sumbit");
			JButton jbtR = new JButton("Return");
			
			jbtS.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e) {
					
					String SelectedFlightType = (String) TypeList.getSelectedItem();
					int AdultSeats = Integer.parseInt(jtxAdultNum.getText()) ;
					int ChildSeats = Integer.parseInt(jtxChildNum.getText()) ;
					
					
					ATAControl.BookFlightObject(SelectedFlightType, AdultSeats, ChildSeats);
					
					CardLayout cl = (CardLayout)(Globals.cards.getLayout());
					cl.show(Globals.cards, Globals.LISTPANEL);
				}
			});
			
			jbtR.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e) {
					CardLayout cl = (CardLayout)(Globals.cards.getLayout());
					cl.show(Globals.cards, Globals.LISTPANEL);
				}
			});
			
			partZ.add(jbtS);
			partZ.add(jbtR);
			
			card.add(part0);
			card.add(partA);
			card.add(partB);
			card.add(partC);
			card.add(partD1);
			card.add(partE);
			card.add(partD2);
			card.add(partD3);
			card.add(partD4);
			card.add(partD5);
			card.add(partZ);
			
			
			
			
			return card;
		}