public AgentDeactivate(AgentPanel panel, int id) {
		
		super();
		agentDB.connect();//call to DB connect method before GUI is loaded
		this.setModal(true);//set dialog to modal
		parent = panel;//save the parent
		oldAgentId = id;//set local agentid to agentid passed from parent
		initGUI();
	}