public String getDatosHistorial(String clave, beansHistorial hist){
		if(clave.trim().equals("downline"))
			return hist.getDownline().getNick();
		if(clave.trim().equals("upline"))
			return hist.getUpline().getNick();
		if(clave.trim().equals("contacto"))
			return hist.getContacto().getNick();
		if(clave.trim().equals("codigo"))
			return Integer.toString(hist.getId());
		if(clave.trim().equals("fecha"))
			return hist.getDate();
		return "null";
	}