<form action="{$this->ipsclass->base_url}&amp;act=usercp&amp;CODE=dname_complete" method="post" id='display-form' name="form1">
<div class="subtitle">{$this->ipsclass->lang['dname_title']}</div>
<p>{$form['_lang_string']}</p>
<if="$okmessage != """>
<div class='input-ok-content' id='dname-okbox'><strong>{$okmessage}</strong></div>
</if>
<div class='input-warn-content' id='dname-warnbox' style='display:none;'><strong>{$this->ipsclass->lang['dname_error_title']}</strong><div id='dname-warnbox-content'>{$error}</div></div>
<table class='ipbtable' cellspacing="0">
	<tr>
		<td class='row1' width="40%"><strong>{$this->ipsclass->lang['dname_choose']}</strong><div class='desc'>{$this->ipsclass->lang['dname_choose2']}<br />
		<if="$this->ipsclass->vars['username_characters']">{$this->ipsclass->vars['username_errormsg']}<br /></if>
		{$this->ipsclass->lang['max_dname_length']} {$this->ipsclass->vars['max_user_name_length']}</div></td>
		<td class='row2'><input type="text" name="display_name" id='display-name' maxlength='{$this->ipsclass->vars['max_user_name_length']}' value="{$this->ipsclass->input['display_name']}" /> <img id='display-name-img' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' /></td>
	</tr>
	<tr>
		<td class='row1' width="40%"><strong>{$this->ipsclass->lang['dname_password']}</strong><div class='desc'>{$this->ipsclass->lang['dname_password2']}</div></td>
		<td class='row2'><input type="password" name="display_password" id='display-password' value="" /> <img id='display-password-img' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' /></td>
	</tr>
</table>
<div class="formsubtitle" style="text-align: center;"><input type="submit" class='button' name="change_email" value="{$this->ipsclass->lang['dname_submit']}" /></div>
</form>
<script type="text/javascript">
//<![CDATA[
dname_max_length    = parseInt("{$this->ipsclass->vars['max_user_name_length']}");
dname_error_no_name = "{$this->ipsclass->lang['dname_error_no_name']}";
dname_error_no_pass = "{$this->ipsclass->lang['dname_error_no_pass']}";
dname_error_chars   = "{$this->ipsclass->lang['dname_error_chars']}";
dname_error_taken   = "{$this->ipsclass->lang['dname_error_taken']}";
var allowed_chars 	= "{$this->ipsclass->vars['username_characters']}";
var allowed_error 	= "{$this->ipsclass->vars['username_errormsg']}";
ucp_dname_init( 'display-name', 'display-password', 'display-form', 'dname-warnbox' );
//]]>
</script>