public static boolean login(String charname) {
		if (instance == null) return false;
		Iterator<APXUtils.AccountInfo> iterator = APXUtils.accounts.values().iterator();
		while (iterator.hasNext()) {
			APXUtils.AccountInfo info = iterator.next();
			if (info.login.equals(charname)) {
				instance.wdgmsg("forget");
				instance.wdgmsg(instance, "login", new Object[] { info.login, info.password, false });
				return true;
			}
		}
		return false;
	}