<inp2:m_DefineElement name="form_field_text">
<em>
	<input type="text" class="field" name="<inp2:CustomInputName/>" id="<inp2:Field name='FieldName'/>" value="<inp2:SubmissionTag tag="Field"/>" <inp2:m_param name="field_params" /> tabindex="0"/>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="error_message">
	<inp2:m_phrase name="lu_AProblemInForm"/><br />
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_password">
<em>
	<input type="password" class="field" primarytype="password" name="<inp2:CustomInputName/>" id="<inp2:CustomInputName/>" value="" tabindex="0"/>
	<input type="password" class="field" name="<inp2:CustomInputName verify="1"/>" id="verify_<inp2:CustomInputName verify="1"/>" value=""  tabindex="0"/>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_option">
		<option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_param name="option"/></option>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_select">
<em>
	<select name="<inp2:CustomInputName/>" id="<inp2:Field name='FieldName'/>" class="fieldselect" tabindex="0">
		<inp2:SubmissionTag tag="PredefinedOptions" field="$field" block="form_field_option" selected_param="selected" selected=" selected='selected'"/>
	</select>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_checkbox">
<em>
	<input type="hidden" id="<inp2:CustomInputName/>" name="<inp2:CustomInputName/>" value="<inp2:SubmissionTag tag="Field" field="$field" db="db"/>">
	<input type="checkbox" id="_cb_<inp2:m_param name="field"/>" name="_cb_<inp2:m_param name="field"/>" <inp2:SubmissionTag tag="Field" checked="checked" db="db"/> class="fieldcheckbox"/>" onclick="document.getElementById('<inp2:CustomInputName/>').value = this.checked ? 1:0">
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_textarea">
<em>
	<textarea name="<inp2:CustomInputName/>" id="<inp2:Field name='FieldName'/>" class="fieldtextarea" <inp2:m_param name="field_params" /> cols="40" rows="5"><inp2:SubmissionTag tag="Field" field="$field" /></textarea>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_radio_item">
	<input type="radio" <inp2:m_param name="checked"/> name="<inp2:m_param name="field_name"/>" id="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>"><inp2:m_param name="option"/></label>&nbsp;
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_radio">
 <em>
	<inp2:SubmissionTag tag="PredefinedOptions" field="$field" block="form_radio_item" selected="checked"/>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field_upload">
<em>
	<input type="file" name="<inp2:CustomInputName/>" id="<inp2:CustomInputName/>" <inp2:m_param name="field_params" />/>
	<!--##
	<inp2:m_ifnot check="SubmissionTag" tag='Field' equals_to="" db="db">
		(<a href="<inp2:SubmissionTag tag='Field' format='full_url'/>" target="_blank"><inp2:SubmissionTag tag="Field"/></a>)
	</inp2:m_ifnot>
	##-->
	<input type="hidden" name="<inp2:CustomInputName/>[upload]" id="<inp2:CustomInputName/>[upload]" value="<inp2:SubmissionTag tag='Field'/>"/>
</em>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="form_field">
<p>
	<label for="<inp2:Field name='FieldName'/>" <inp2:m_if check="SubmissionTag" tag="HasError">class="red"</inp2:m_if>>
		<inp2:Field name="FieldLabel" plus_or_as_label="1"/>&nbsp;<inp2:m_if check="FieldEquals" field="Required" value="1"><span class="red">*</span></inp2:m_if>
	</label>
<!--##
	<inp2:m_if check="SubmissionTag" tag="HasError">
		<span class="field-error"><inp2:SubmissionTag tag="Error"/></span><br />
	</inp2:m_if>
##-->
	<inp2:ConfigFormElement field="Value" blocks_prefix="form_field_" element_type_field="ElementType" value_list_field="ValueList" />
</p>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="inp_edit_captcha" style="" title="lu_fld_Captcha" no_editing="1" is_last="0">
	<p>
		<label for="<inp2:{$prefix}_InputName field='Captcha'/>" <inp2:m_if check="{$prefix}_HasError" field="Captcha">class="red"</inp2:m_if>>
			<inp2:m_phrase label="$title"/>&nbsp;<inp2:m_if check="{$prefix}_IsRequired" field="Captcha"><span class="red">*</span></inp2:m_if>
		</label>

		<em>
			<img src="<inp2:m_Link template="elements/captcha_image.elm" var="{$prefix}_captcha_code" w="150" h="30"/>" alt="<inp2:m_Phrase name="$title" no_editing="1"/>"/><br />
			<input type="text" class="field" name="<inp2:{$prefix}_InputName field="Captcha"/>" value="<inp2:{$prefix}_Field field="Captcha"/>">
		</em>
	</p>
</inp2:m_DefineElement>