public void buttonPress(int function) {
		if(function == 1)
		{
			new EventGUI(myDay,combo.getSelectedIndex(),gui);
			gui.reformat();
			this.hide();
		}
		if(function == 2)
		{
			if(myDay.getEvents().size() != 0)
				myDay.getEvents().remove(0);
			gui.reformat();
			this.hide();
		}
		if(function == 3)
		{
			gui.reformat();
			this.hide();
		}
		if(function == 4)
		{
			new EventGUI(myDay,gui);
			gui.reformat();
			this.hide();
		}

	}