private int isInt(String s) {
		int i;
		if (!s.equals("")) {
			try {
				i = Integer.parseInt(s);

			} catch (NumberFormatException exc) {
				exc.printStackTrace();
				i = -1;
			}
		} else {
			i = -1;
		}
		return i;
	}