<script type="text/javascript" src="jscripts/ipb_register.js"></script>
<form action="{$this->ipsclass->base_url}act=reg&amp;CODE=complete_login_do&amp;key=$key&amp;mid=$mid" method="POST" onsubmit="return validate_complete_login_form(event)">
<input type="hidden" name="termsread" value="1" />
<input type="hidden" name="agree_to_terms" value="1" />
<div class="borderwrap">
	<div class="maintitle">{$this->ipsclass->lang['clogin_title']}</div>
	<div class="subtitle">{$this->ipsclass->lang['clogin_text']}</div>
	<div class="tablepad">
<if="$this->ipsclass->vars['auth_allow_dnames'] == 1">
<fieldset class="row3">
	  <legend><b>{$this->ipsclass->lang['user_name_title']}</b></legend>
		  <div class='input-warn-content' id='box-dname'><div id='msg-dname'>{$errors['dname']}</div></div>
		  <table class='ipbtable' cellspacing="0">
			<tr>
				<td>{$this->ipsclass->lang['dname_name']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['dname_text']}">?</a>)</span></td>
			</tr>
			<tr>
				<td>
					<input type="text" size="50" maxlength="64" value="{$this->ipsclass->input['members_display_name']}" id='reg-members-display-name' name="members_display_name" />
					<img id='img-members-display-name' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' />
				</td>
			</tr>
		 </table>
	  </fieldset>
</if>
<if="! $reg['partial_email_ok']">
	  <fieldset class="row3">
	  <div class='input-warn-content' id='box-emailaddress'><div id='msg-emailaddress'>{$errors['email']}</div></div>
	  <legend><b>{$this->ipsclass->lang['email_address_title']}</b></legend>
		  <table class='ipbtable' cellspacing="0">
			  <tr>
				  <td width="1%" nowrap="nowrap">{$this->ipsclass->lang['email_address']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['email_address_text']}">?</a>)</span></td>
				  <td width="100%">{$this->ipsclass->lang['email_address_confirm']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['email_address_confirm_text']}">?</a>)</span></td>
			  </tr>
			  <tr>
				  <td><input type="text" size="25" maxlength="50" value="{$this->ipsclass->input['EmailAddress']}"  id='reg-emailaddress' name="EmailAddress" /></td>
				  <td><input type="text" size="25" maxlength="50"  value="{$this->ipsclass->input['EmailAddress_two']}" id='reg-emailaddress-two' name="EmailAddress_two" /></td>
				  <td width='12'>
					<img id='img-emailaddress' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' />
				  </td>
			  </tr>
		  </table>
	  </fieldset>
</if>
<if="$required_fields != ''">
$required_fields
</if>
	</div>
	<div align='center' style='padding:4px' class='darkrow3'><input class='button' type="submit" value="{$this->ipsclass->lang['clogin_submit']} &gt; &gt;" /></div>
</div>
</form>
<script type="text/javascript">
//<![CDATA[
reg_error_no_name        = "{$this->ipsclass->lang['reg_error_no_name']}";
reg_error_chars          = "{$this->ipsclass->lang['reg_error_chars']}";
reg_error_taken          = "{$this->ipsclass->lang['reg_error_taken']}";
reg_error_email_missing  = "{$this->ipsclass->lang['reg_error_email_missing']}";
reg_error_email_nm       = "{$this->ipsclass->lang['reg_error_email_nm']}";
reg_error_email_taken    = "{$this->ipsclass->lang['reg_error_email_taken']}";
var got_dname = 0;
<if="$this->ipsclass->vars['auth_allow_dnames'] == 1">
got_dname = 1;
</if>
reg_email_ok             = parseInt("{$reg['partial_email_ok']}");
var member_id            = parseInt("{$mid}");
init_complete_login_form();
//]]>
</script>