private static int getTypeNumber(String typeNameOrAbbr, int nameOrAbbr) {
		int typeNumber = -1;

		for (int i = 0; i < typeNamesAndAbbr.length; i++) {
			if (typeNameOrAbbr.equals(typeNamesAndAbbr[i][nameOrAbbr])) {
				typeNumber = i;
				break;
			}
		}
		return typeNumber;
	}