<div id="overlay" onclick="closeOpacityBox('.register-popup');"></div>
<div id="register-content">
    <h1>Register</h1>
    <p>To register, please fill in the form below. An administrator will review
your registration and you will be sent an e-mail when your registration is complete.</p>
    <form action="javascript:;" onsubmit="submitRegistration(this);" class="register-form">
        <span><b>Email<br></b></span>
        <input name="email" type="email" placeholder="E-mail" required /><br/>
        <span><b>Username <code class="blue">[0-9A-Za-z_-]+<span class="regex-explanation">Alphanumeric, underscore and dash are allowed.</span></code><br></b></span>
        <input name="username" type="text" placeholder="Username" required /><br/>
        <span><b>Password<br></b></span>
        <input name="password" type="password" placeholder="Password" required /><br/>
        <input name="password_verify" type="password" placeholder="Password (again)" required /><br/>
<?php if (isset($_REQUEST['invite_token']))
{
    echo "<input type='hidden' name='invite_token' value='{$_REQUEST['invite_token']}' />";
} ?>
        <div class="g-recaptcha" data-sitekey="6Lfk90IUAAAAAP3F_GemHpwfTKjFlDd-atycf0WF"></div>
        <input id="registerPopupButton"type="submit" name="submit" value="Register"/>
    </form>
</div>
