<script type="text/javascript">
var ipb_lang_js_blanks   = "{$this->ipsclass->lang['js_blanks']}";
var ipb_lang_js_no_check = "{$this->ipsclass->lang['js_no_check']}";
var subsdesc_0 = "{$this->ipsclass->lang['subsm_no_desc']}";
var subdesc   = new Array(); <!--{SUBS.JSCRIPT}-->
var register_method = "{$this->ipsclass->vars['ipbli_usertype']}";
var allowed_chars = "{$this->ipsclass->vars['username_characters']}";
var allowed_error = "{$this->ipsclass->vars['username_errormsg']}";
</script>
<script type="text/javascript" src="jscripts/ipb_register.js"></script>
<form action="{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}" method="post" name="REG" onsubmit="return validate_reg_form(event)">
<input type="hidden" name="act" value="Reg" />
<input type="hidden" name="termsread" value="1" />
<input type="hidden" name="agree_to_terms" value="1" />
<input type="hidden" name="CODE" value="02" />
<input type="hidden" name="coppa_user" value="{$data['coppa_user']}" />
<div class="borderwrap">
	<div class="maintitle">{$this->ipsclass->lang['registration_form']}</div>
	<div class='row2' style='padding:4px'>
		<div class="errorwrap" style='margin:0px;padding-bottom:0px'><h4>{$this->ipsclass->lang['form_title_attention']}</h4><p>{$data['TEXT']}</p></div>
	</div>
	<div class="row2">
		<table class='ipbtable' cellspacing="0">
			<tr>
				<td width="50%" valign='top'>
					<fieldset class="row3">
					<legend><b>{$this->ipsclass->lang['user_name_title']}</b></legend>
<if="$this->ipsclass->vars['ipbli_usertype'] == 'username'">
<div class='input-warn-content' id='box-name'><div id='msg-name'>{$errors['username']}</div></div>
						<table class='ipbtable' cellspacing="0">
							<tr>
								<td>{$this->ipsclass->lang['user_name']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['user_name_text']}">?</a>)</span></td>
							</tr>
							<tr>
								<td>
								  <input type="text" size="50" maxlength="{$this->ipsclass->vars['max_user_name_length']}" value="{$this->ipsclass->input['UserName']}" id='reg-name' name="UserName" />
								  <img id='img-name' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' />
								</td>
							</tr>
						  </table>
</if>
<if="$this->ipsclass->vars['auth_allow_dnames'] == 1 OR $this->ipsclass->vars['ipbli_usertype'] == 'email'">
<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="{$this->ipsclass->vars['max_user_name_length']}" 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>
</if>
						
					</fieldset><br />
					
					<fieldset class="row3">
					<div class='input-warn-content' id='box-password'><div id='msg-password'>{$errors['password']}</div></div>
					<legend><b>{$this->ipsclass->lang['password_title']}</b></legend>
						<table class='ipbtable' cellspacing="0">
							<tr>
								<td width="1%" nowrap="nowrap">{$this->ipsclass->lang['password']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['password_text']}">?</a>)</span></td>
								<td width="100%">{$this->ipsclass->lang['password_confirm']} &nbsp;<span>(<a href="#" style="cursor: help;" title="{$this->ipsclass->lang['password_confirm_text']}">?</a>)</span></td>
							</tr>
							<tr>
								<td><input type="password" size="25" maxlength="32" value="{$this->ipsclass->input['PassWord']}" id='reg-password' name="PassWord" /></td>
								<td><input type="password" size="25" maxlength="32" value="{$this->ipsclass->input['PassWord_Check']}"  id='reg-password-check' name="PassWord_Check" /></td>
							    <td width='12'>
							     <img id='img-password' src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width='12' height='12' />
							    </td>
							</tr>
						</table>
					</fieldset><br />
				
					<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="150" value="{$this->ipsclass->input['EmailAddress']}"  id='reg-emailaddress' name="EmailAddress" /></td>
								<td><input type="text" size="25" maxlength="150"  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><br />
					<!--{REQUIRED.FIELDS}-->
					<!--{SUBS.MANAGER}-->
					<!--IBF.MODULES.EXTRA-->
					<!--{REG.ANTISPAM}-->
				</td>
				<td width="50%" valign="top">
					<div>
						<b>{$this->ipsclass->lang['cf_optional']}</b><br /><br />
						<table class='ipbtable' cellspacing="0">
							<tr>
								<td>
									<fieldset>
									<legend>{$this->ipsclass->lang['op_email_title']}</legend>
										<div class="desc">{$this->ipsclass->lang['op_email_text']}</div><br />
										<input type="checkbox" name="allow_admin_mail" value="1" class="checkbox" <!--[admin.checked]--> /> {$this->ipsclass->lang['op_email_ad']}<br />
										<input type="checkbox" name="allow_member_mail" value="1" class="checkbox" <!--[member.checked]--> /> {$this->ipsclass->lang['op_email_mem']}
									</fieldset><br />
							
									<fieldset>
									<legend>{$this->ipsclass->lang['op_tz_title']}</legend>
										<div class="desc">{$this->ipsclass->lang['op_tz_text']}</div><br />
										<!--{TIME_ZONE}--><br /><br />
										<!--<input type="checkbox" name="dst" value="1" class="checkbox" <!--[dst.checked]--> /> {$this->ipsclass->lang['op_tz_dst']}<br />-->
									</fieldset><br />
									<!--{OPTIONAL.FIELDS}-->
								</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td valign="middle" align="center">
					<div class="desc">{$this->ipsclass->lang['submit_text']}</div><br />
						<input class='button' type="submit" value="{$this->ipsclass->lang['submit_form']} &gt; &gt;" />
				</td>
			</tr>
		</table>
	</div>
</div>
</form>
<script type="text/javascript">
//<![CDATA[
reg_error_no_name        = "{$this->ipsclass->lang['reg_error_no_name']}";
reg_error_no_pass        = "{$this->ipsclass->lang['reg_error_no_pass']}";
reg_error_pass_nm        = "{$this->ipsclass->lang['reg_error_pass_nm']}";
reg_error_chars          = "{$this->ipsclass->lang['reg_error_chars']}";
reg_error_taken          = "{$this->ipsclass->lang['reg_error_taken']}";
reg_error_username_taken = "{$this->ipsclass->lang['reg_error_username_taken']}";
reg_error_username_none  = "{$this->ipsclass->lang['reg_error_username_none']}";
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']}";
reg_error_email_ban      = "{$this->ipsclass->lang['reg_error_email_ban']}";
reg_error_email_invalid      = "{$this->ipsclass->lang['reg_error_email_invalid']}";
reg_error_dchars_only = "{$this->ipsclass->lang['reg_error_dname_only']} {$this->ipsclass->vars['username_characters']}";
reg_error_uchars_only = "{$this->ipsclass->lang['reg_error_uname_only']} {$this->ipsclass->vars['username_characters']}";
user_display_name_max_length = parseInt( "{$this->ipsclass->vars['max_user_name_length']}" );
var got_dname = 0;
<if="$this->ipsclass->vars['auth_allow_dnames'] == 1 OR $this->ipsclass->vars['ipbli_usertype'] == 'email'">
got_dname = 1;
</if>
init_reg_form(got_dname, register_method);
//]]>
</script>