public static JPanel EditClientObjectCard (){
		
			
			System.out.println("EditClientObjectCard - flag");
			//System.out.println("Active Select: " + Globals.ActiveSel);
			
			
			try{
				Globals.ActiveCustomer = Globals.ATA.CustomerArray[Globals.ActiveClientObjID];				
			}
			catch(ArrayIndexOutOfBoundsException e){
				Globals.ActiveCustomer = new Customer();
			}
			
			
			// Globals.cards.add(EditClientObjectCard(), Globals.EDITCLIENTPANEL); use this to update a page when required.
			
		
			
			JPanel card = new JPanel();
			
			JPanel part0 = new JPanel(); // Top details.
			JPanel partA1 = new JPanel(); // ID: 
			JPanel partA2 = new JPanel(); // Last Name. Client Name.
			JPanel partB = new JPanel(); // Default Adults
			JPanel partC = new JPanel(); // Default Children
			JPanel partD = new JPanel(); // Current $ on account.
			JPanel partE = new JPanel(); // Number of FLights
			JPanel partZ = new JPanel(); // Submit buttons.
			
			
			part0.setPreferredSize(new Dimension(800,35)); // 25 is good for text boxes buttons needs at least 35.
			partA1.setPreferredSize(new Dimension(800,35)); 
			partA2.setPreferredSize(new Dimension(800,35)); // 25 is good for text boxes buttons needs at least 35.
			partB.setPreferredSize(new Dimension(800,35)); // Adult
			partC.setPreferredSize(new Dimension(800,35));
			partD.setPreferredSize(new Dimension(800,35));
			partE.setPreferredSize(new Dimension(800,35));
			partZ.setPreferredSize(new Dimension(800,35));
					
		
			part0.add( new JLabel("Change the revelent infomation for updating the Client"));
			
			JLabel jlbID = new JLabel("Client ID: (locked)");
			final JLabel jtxID = new JLabel(String.valueOf(Globals.ActiveCustomer.id));
			
			partA1.add(jlbID);
			partA1.add(jtxID);
			
			JLabel jlbName = new JLabel("Client Last Name: (Required)");
			final JTextField jtxName = new JTextField(Globals.ActiveCustomer.CustomerCallName,20);
			
			
			partA2.add(jlbName);
			partA2.add(jtxName);
		
			JLabel jlbAdult = new JLabel("Number of Default Adults: (Must be a Number) ");
			
			final JTextField jtxAdult = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultadultSeats),20);
			
			partB.add(jlbAdult);
			partB.add(jtxAdult);
			
			JLabel jlbChild = new JLabel("Number of Default Children: (Must be a Number)");
			final JTextField jtxChild = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultchildSeats),20);
			
			partC.add(jlbChild);
			partC.add(jtxChild);
			
			JLabel jlbCost = new JLabel("Amount Spent on account (Must be a Number) $");
			final JTextField jtxCost = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultchildSeats),20);
			
			partD.add(jlbCost);
			partD.add(jtxCost);
			
			JLabel jlbFlight = new JLabel("Number of Flights (Must be a Number)");
			final JTextField jtxFlight = new JTextField(String.valueOf(Globals.ActiveCustomer.DefaultchildSeats),20);
			
			partE.add(jlbFlight);
			partE.add(jtxFlight);
			
		
			
			
			//ActiveObject.numFlights
			
			
			
			//ActiveObject.Cost
			
			
			
			JButton jbtU = new JButton("Update");
			JButton jbtA = new JButton("Apply");
			JButton jbtR = new JButton("Return");
			
			jbtU.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e) {
					
					
					System.out.println("Flag Action Press - Sumbit");
					// Checks to see if the data is legal.
					
					boolean DataSafe = true;
					String Name = jtxName.getText();
					String Adult = jtxAdult.getText();
					String Child = jtxChild.getText();
					String Cost = jtxCost.getText();
					String Flights = jtxFlight.getText();
		
					if (Name.equals("")){
						System.out.println("Name Error");
						DataSafe = false;
					}
				
		
					try{
						int AdultInput = Integer.parseInt(Adult);
						int ChildInput = Integer.parseInt(Child);
						double CostInput = Double.parseDouble(Cost);
						double FLightInput = Double.parseDouble(Flights);
						
						//System.out.println (AdultInput+ChildInput);
					}
					catch (NumberFormatException badstring){
						System.out.println("Number error");
						DataSafe = false;
					}
					
					if (DataSafe = true){
						
						int AdultInput = Integer.parseInt(Adult);
						int ChildInput = Integer.parseInt(Child);
						double CostInput = Double.parseDouble(Cost);
						int FLightInput = Integer.parseInt(Flights);
						
						Globals.ActiveCustomer.CustomerCallName = Name;
						Globals.ActiveCustomer.numFlights = FLightInput;
						Globals.ActiveCustomer.Cost = CostInput;
						Globals.ActiveCustomer.DefaultchildSeats = ChildInput;
						Globals.ActiveCustomer.DefaultadultSeats = AdultInput;
						
						// update ATA here.
						
						System.out.println("ActiveObj: " + Globals.ActiveSel);
						TravelGUI.ATAControl.EditCustomerObject(Globals.ActiveCustomer, Globals.ActiveClientObjID);
						
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.LISTPANEL);
						
						
						
					}
					// System.out.println(DataSafe);
					
				}
			});
			
			jbtA.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					
					
					System.out.println("Flag Action Press - Sumbit");
					// Checks to see if the data is legal.
					
					boolean DataSafe = true;
					String Name = jtxName.getText();
					String Adult = jtxAdult.getText();
					String Child = jtxChild.getText();
					String Cost = jtxCost.getText();
					String Flights = jtxFlight.getText();
		
					if (Name.equals("")){
						System.out.println("Name Error");
						DataSafe = false;
					}
				
		
					try{
						int AdultInput = Integer.parseInt(Adult);
						int ChildInput = Integer.parseInt(Child);
						double CostInput = Double.parseDouble(Cost);
						double FLightInput = Double.parseDouble(Flights);
						
						//System.out.println (AdultInput+ChildInput);
					}
					catch (NumberFormatException badstring){
						System.out.println("Number error");
						DataSafe = false;
					}
					
					if (DataSafe = true){
						
						int AdultInput = Integer.parseInt(Adult);
						int ChildInput = Integer.parseInt(Child);
						double CostInput = Double.parseDouble(Cost);
						int FLightInput = Integer.parseInt(Flights);
						
						Globals.ActiveCustomer.CustomerCallName = Name;
						Globals.ActiveCustomer.numFlights = FLightInput;
						Globals.ActiveCustomer.Cost = CostInput;
						Globals.ActiveCustomer.DefaultchildSeats = ChildInput;
						Globals.ActiveCustomer.DefaultadultSeats = AdultInput;
						
						// update ATA here.
						TravelGUI.ATAControl.EditCustomerObject(Globals.ActiveCustomer, Globals.ActiveClientObjID);
						
						
						
						
						
					}
					// System.out.println(DataSafe);
					
				}
			});
		
			jbtR.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					System.out.println("Flag Action Press - Return");
					
					CardLayout cl = (CardLayout)(Globals.cards.getLayout());
					cl.show(Globals.cards, Globals.LISTPANEL);
				}
			});
		
			partZ.add(jbtU);
			partZ.add(jbtA);
			partZ.add(jbtR);
			
			card.add(part0);
			card.add(partA1);
			card.add(partA2);
			card.add(partB);
			card.add(partC);
			card.add(partD);
			card.add(partE);
			card.add(partZ);
			
			return card;
			
		}