private static int indexOfName(String name, ArrayList list) {
		for (int i = 0, limit = list.size(); i < limit; i++) {
			if (name.equals(list.get(i).toString())) {
				return i;
			}
		}
		return -1;
	}