}
	private void initializeFields(IWContext iwc) {		//TODO: remove javascript popups - put red text containing error		// messages...		iwrb = getResourceBundle(iwc);		//step one fields begin		runDisDropdownField = (RunDistanceDropdownDouble) getStyleObject(new RunDistanceDropdownDouble(), STYLENAME_INTERFACE);		runDisDropdownField.setPrimaryLabel(primaryDDLable);		runDisDropdownField.setSecondaryLabel(secondaryDDLable);		if (iwc.isParameterSet(IWMarathonConstants.GROUP_TYPE_RUN)) {			runDisDropdownField.setSelectedValues(iwc.getParameter(IWMarathonConstants.GROUP_TYPE_RUN), "");		}		nameField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_NAME), STYLENAME_INTERFACE);		nameField.setAsAlphabeticText(iwrb.getLocalizedString("run_reg.name_err_msg", "Your name may only contain alphabetic characters"));		nameField.setAsNotEmpty(iwrb.getLocalizedString("run_reg.name_not_empty", "Name field cannot be empty"));		nameField.setInFocusOnPageLoad(true);		nameField.setWidth(Table.HUNDRED_PERCENT);		Collection countries = getRunBiz(iwc).getCountries();		nationalityField = (DropdownMenu) getStyleObject(new DropdownMenu(IWMarathonConstants.PARAMETER_NATIONALITY), STYLENAME_INTERFACE);		countryField = (DropdownMenu) getStyleObject(new DropdownMenu(IWMarathonConstants.PARAMETER_COUNTRY), STYLENAME_INTERFACE);		SelectorUtility util = new SelectorUtility();		if (countries != null && !countries.isEmpty()) {			nationalityField = (DropdownMenu) util.getSelectorFromIDOEntities(nationalityField, countries, "getName");			countryField = (DropdownMenu) util.getSelectorFromIDOEntities(countryField, countries, "getName");		}		if (iwc.getCurrentLocale().equals(LocaleUtil.getIcelandicLocale())) {			nationalityField.setSelectedElement("104");			countryField.setSelectedElement("104");		}		nationalityField.setWidth(Table.HUNDRED_PERCENT);		countryField.setWidth(Table.HUNDRED_PERCENT);		ssnISField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_SSN_IS), STYLENAME_INTERFACE);		ssnISField.setAsIcelandicSSNumber(iwrb.getLocalizedString("run_reg.ssn_is_err_msg", "Your ssn is not a valid Icelandic ssn"));		ssnISField.setAsNotEmpty(iwrb.getLocalizedString("run_reg.ssnIS_not_empty", "ssnIS may not be empty"));		ssnISField.setLength(10);		ssnField = (DateInput) getStyleObject(new DateInput(IWMarathonConstants.PARAMETER_SSN), STYLENAME_INTERFACE);		//TODO: set the ssnField as either dateInput or set a error check on		// the TextInput...		ssnField.setAsNotEmpty("Date of birth can not be empty");		genderField = (DropdownMenu) getStyleObject(new DropdownMenu(IWMarathonConstants.PARAMETER_GENDER), STYLENAME_INTERFACE);		genderField.addMenuElement(IWMarathonConstants.PARAMETER_MALE, iwrb.getLocalizedString(IWMarathonConstants.RR_MALE, "Male"));		genderField.addMenuElement(IWMarathonConstants.PARAMETER_FEMALE, iwrb.getLocalizedString(IWMarathonConstants.RR_FEMALE, "Female"));		addressField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_ADDRESS), STYLENAME_INTERFACE);		addressField.setWidth(Table.HUNDRED_PERCENT);		postalField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_POSTAL), STYLENAME_INTERFACE);		postalField.setMaxlength(7);		nameField.setLength(7);		cityField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_CITY), STYLENAME_INTERFACE);		cityField.setWidth(Table.HUNDRED_PERCENT);		telField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_TEL), STYLENAME_INTERFACE);		telField.setAsIntegers(iwrb.getLocalizedString("run_reg.tel_err_msg", "Phonenumber must be integers"));		telField.setWidth(Table.HUNDRED_PERCENT);		mobileField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_MOBILE), STYLENAME_INTERFACE);		mobileField.setAsIntegers(iwrb.getLocalizedString("run_reg.mob_err_msg", "Mobilephonenumber must be integers"));		mobileField.setWidth(Table.HUNDRED_PERCENT);		emailField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_EMAIL), STYLENAME_INTERFACE);		emailField.setAsEmail(iwrb.getLocalizedString("run_reg.email_err_msg", "Not a valid email address"));		emailField.setWidth(Table.HUNDRED_PERCENT);		tShirtField = (DropdownMenu) getStyleObject(new DropdownMenu(IWMarathonConstants.PARAMETER_TSHIRT), STYLENAME_INTERFACE);		small = new SelectOption(iwrb.getLocalizedString("run_reg.small", "Small"), IWMarathonConstants.PARAMETER_TSHIRT_S);		medium = new SelectOption(iwrb.getLocalizedString("run_reg.medium", "Medium"), IWMarathonConstants.PARAMETER_TSHIRT_M);		large = new SelectOption(iwrb.getLocalizedString("run_reg.large", "Large"), IWMarathonConstants.PARAMETER_TSHIRT_L);		xlarge = new SelectOption(iwrb.getLocalizedString("run_reg.xlarge", "Larger"), IWMarathonConstants.PARAMETER_TSHIRT_XL);		xxlarge = new SelectOption(iwrb.getLocalizedString("run_reg.xxlarge", "Largest"), IWMarathonConstants.PARAMETER_TSHIRT_XXL);		tShirtField.addOption(small);		tShirtField.addOption(medium);		tShirtField.addOption(large);		tShirtField.addOption(xlarge);		tShirtField.addOption(xxlarge);		//step one fields end		//step two fields begin		ownChipField = (RadioButton) getStyleObject(new RadioButton(IWMarathonConstants.PARAMETER_CHIP, IWMarathonConstants.PARAMETER_OWN_CHIP), STYLENAME_CHECKBOX);		buyChipField = (RadioButton) getStyleObject(new RadioButton(IWMarathonConstants.PARAMETER_CHIP, IWMarathonConstants.PARAMETER_BUY_CHIP), STYLENAME_CHECKBOX);		rentChipField = (RadioButton) getStyleObject(new RadioButton(IWMarathonConstants.PARAMETER_CHIP, IWMarathonConstants.PARAMETER_RENT_CHIP), STYLENAME_CHECKBOX);		chipNumberField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_CHIP_NUMBER), STYLENAME_INTERFACE);		groupCompetitionField = (CheckBox) getStyleObject(new CheckBox(IWMarathonConstants.PARAMETER_GROUP_COMP), STYLENAME_CHECKBOX);		groupNameField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_GROUP_NAME), STYLENAME_INTERFACE);		groupNameField.setWidth("50%");		bestTimeField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_BEST_TIME), STYLENAME_INTERFACE);		bestTimeField.setWidth("50%");		goalTimeField = (TextInput) getStyleObject(new TextInput(IWMarathonConstants.PARAMETER_GOAL_TIME), STYLENAME_INTERFACE);		goalTimeField.setWidth("50%");		//step two fields end		backGreen = getStyleLink(new Link(iwrb.getLocalizedString("run_reg.back", "Back")), STYLENAME_BLUE_TEXT);		backGreen.setAsBackLink();		backBlue = getStyleLink(new Link("&gt;&gt;"), STYLENAME_GREEN_TEXT);		backBlue.setAsBackLink();	}