@Override
	public void actionPerformed(ActionEvent arg0) {
		if(arg0.getActionCommand().equals("create"))
		{
			int authLevel = 0;
			if(cManager.isSelected())
				authLevel = 1;
			int result = timeMan.addEmployee(tFName.getText(), tLName.getText(), new String(tPassword.getPassword()), authLevel);
			if(result < 1)
			{
				if(result == -1)
					JOptionPane.showMessageDialog(null, "Employee " + tFName.getText() + " " + tLName.getText() + " already has an entry in the database.");
				if(result == -2)
					JOptionPane.showMessageDialog(null, "The specified password has already been taken, please choose a new one");
			}
			else
			{
				JOptionPane.showMessageDialog(null, "Employee " + tFName.getText() + " " + tLName.getText() + " has successfully been added to the database.");
				this.setVisible(false);
				if(parent.getLoginStatus())
					parent.adminPane.setVisible(true);
				else
					parent.completeSetup();
			}
		}
		else if(arg0.getActionCommand().equals("cancel"))
		{
			clear();
			this.setVisible(false);
			parent.adminPane.setVisible(true);
		}
		//((ActionListener) this.getParent()).actionPerformed(arg0);
	}