if (action == ACTION_STEP_FOUR) { if (runner != null && runner.isOwnChip() && runner.getChipNumber().length() != 7) { getParentPage().setAlertOnLoad(localize("run_reg.must_fill_in_chip_number", "You have to fill in a valid chip number (seven characters).")); action = ACTION_STEP_THREE; } }
	private int parseAction(IWContext iwc) throws RemoteException {		int action = isIcelandic ? ACTION_STEP_ONE : ACTION_STEP_TWO;				if (iwc.isParameterSet(PARAMETER_ACTION)) {			action = Integer.parseInt(iwc.getParameter(PARAMETER_ACTION));		}		try {			runner = collectValues(iwc);		}		catch (FinderException fe) {			getParentPage().setAlertOnLoad(localize("run_reg.user_not_found_for_personal_id", "No user found with personal ID."));			action = ACTION_STEP_ONE;		}		if (action == ACTION_STEP_THREE) {			if (runner != null && !runner.getDistance().isUseChip()) {				int fromAction = Integer.parseInt(iwc.getParameter(PARAMETER_FROM_ACTION));				if (fromAction == ACTION_STEP_FOUR) {					action = ACTION_STEP_TWO;				}				else if (fromAction == ACTION_STEP_TWO) {					action= ACTION_STEP_FOUR;				}			}		}		return action;	}