<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->registration}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/validator.js"></script>
</head>
<body>
{$header}
<br />
<form action="member.php" method="post" id="registration_form"><input type="text" style="visibility: hidden;" value="" name="regcheck1" /><input type="text" style="visibility: hidden;" value="true" name="regcheck2" />
{$regerrors}
<div class="tborder">
<div class="thead">
<strong>{$lang->registration}</strong>
</div>
<div class="trow1" style="padding: 10px 300px 10px 300px;">
<div class="username" style="overflow:hidden;">
<p class="left" style="margin:0px; margin-top:5px;"><span class="smalltext"><label for="username">{$lang->username}</label></span></p>
<p class="right" style="margin:0px;"><input type="text" class="textbox" name="username" id="username" style="width: 100%" value="{$username}" /></p>
</div><br />
<div class="password" style="overflow:hidden; margin-bottom: -27px;">
{$passboxes}
</div><br />
<div class="mail1" style="overflow:hidden;">
<p class="left" style="margin:0px; margin-top:5px;"><span class="smalltext"><label for="email">{$lang->email}</label></span></p>
<p class="right" style="margin:0px;"><input type="text" class="textbox" name="email" id="email" style="width: 100%" maxlength="50" value="{$email}" /></p>
</div>
<div class="mail2" style="overflow:hidden;">
<p class="left" style="margin:0px; margin-top:7px;"><span class="smalltext"><label for="email2">{$lang->confirm_email}</label></span></p>
<p class="right" style="margin:0px;"><input type="text" class="textbox" name="email2" id="email2" style="width: 100%" maxlength="50" value="{$email2}" /></p>
</div><br />
<p><span> </span></p>
<p>{$hiddencaptcha}</p>
</div>
{$requiredfields}
{$regimage}
</div>
<br />
<div align="center">
<input type="hidden" name="step" value="registration" />
<input type="hidden" name="action" value="do_register" />
<input type="submit" class="button" name="regsubmit" value="{$lang->submit_registration}" />
</div>
</form>
<script type="text/javascript">
<!--
regValidator = new FormValidator('registration_form');
regValidator.register('username', 'notEmpty', {failure_message:'{$lang->js_validator_no_username}'});
regValidator.register('email', 'regexp', {match_field:'email2', regexp:'^([a-zA-Z0-9_\\.\\+\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$', failure_message:'{$lang->js_validator_invalid_email}'});
regValidator.register('email2', 'matches', {match_field:'email', status_field:'email_status', failure_message:'{$lang->js_validator_email_match}'});
{$validator_extra}
regValidator.register('username', 'ajax', {url:'xmlhttp.php?action=username_availability', loading_message:'{$lang->js_validator_checking_username}'}); // needs to be last
// -->
</script>
{$footer}
</body>
</html>