<div id="selSignUp">
<div class="clsCommonTopAnalystRoundedCorner">
  <!--rounded corners-->
  <h2 class="clsInboxReadHeading">{$LANG.signup_title}</h2>
   <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">


	{include file='../general/information.tpl'}  <div class="clsInboxReadTbl">
{if $myobj->isShowPageBlock('form_signup')}
    <form name="form_signup" id="selFormSignup" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">

          <div class="clsSignupAccount">
            <table class="clsCommonTable" summary="{$LANG.common_form_tbl_summary}">
              <tr>
                <td colspan="2"><div class="AskQuestionSubHead">{$LANG.common_account_details}</div></td>
              </tr>
              <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('name')}">
                  <label for="name">{$common_username}</label>
                  <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('signup_user_name', 'name')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('name')}">
				<span>
                  <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('name')}" name="name" id="name" maxlength="{$CFG.admin.username_max_size}"  tabindex="{smartyTabIndex}" value="{$myobj->getFormField('name')}" /> {$myobj->getFormFieldElementErrorTip('name')}</span></td>
              </tr>
              <tr>
                    <td class="{$myobj->getCSSFormLabelCellClass('display_name')}">
                      <label for="display_name">{$common_display_name}</label>
                      <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('display_name')}</td>
                    <td class="{$myobj->getCSSFormFieldCellClass('display_name')}">
                      <span><input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('display_name')}" name="display_name" id="display_name" maxlength="{$CFG.admin.display_name_max_size}" title="{$myobj->ShowToolTip('display_name')}"  tabindex="{smartyTabIndex}" value="{$myobj->getFormField('display_name')}" /> {$myobj->getFormFieldElementErrorTip('display_name')}</span></td>
              </tr>
              <tr>
                    <td class="{$myobj->getCSSFormLabelCellClass('email')}"><label for="email">
                      {$LANG.common_your_email}</label>
                      <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('signup_email', 'email')}</td>
                    <td class="{$myobj->getCSSFormFieldCellClass('email')}">
                     <span> <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('email')}" name="email" id="email" title="{$myobj->ShowToolTip('email')}" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('email')}" /> {$myobj->getFormFieldElementErrorTip('email')}</span></td>
              </tr>
              <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('password')}">
                  <label for="password">{$signup_password}</label>
                  <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('password')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('password')}">
                  <span><input type="password" class="clsTextBox {$myobj->getCSSFormFieldElementClass('signup_password', 'password')}" name="password" id="password" title="{$myobj->ShowToolTip('password')}" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('password')}" /> {$myobj->getFormFieldElementErrorTip('password')}</span></td>
             </tr>
              <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('confirm_password')}">
                  <label for="confirm_password">{$LANG.common_confirm_password}</label>
                  <span class="clsMandatory">*</span>{$myobj->ShowHelpTip('confirm_password')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('confirm_password')}">
                 <span><input type="password" class="clsTextBox {$myobj->getCSSFormFieldElementClass('confirm_password')}" name="confirm_password" id="confirm_password" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('confirm_password')}" /> {$myobj->getFormFieldElementErrorTip('confirm_password')}</span></td>
             </tr>
             <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('gender')}" >
                  <label for="sex_male">{$LANG.common_gender}</label>{$myobj->ShowHelpTip('gender')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('gender')}">{$myobj->getFormFieldErrorTip('gender')}
                    <input type="radio" name="gender" id="sex_male" class="clsCheckRadio" value="Male" tabindex="{smartyTabIndex}"  {$myobj->isCheckedRadio('gender','Male')} /><label for="sex_male">{$LANG.common_male_option}</label>
                    <input type="radio" name="gender" id="sex_female" class="clsCheckRadio"  tabindex="{smartyTabIndex}" value="Female" {$myobj->isCheckedRadio('gender','Female')} /><label for="sex_female">{$LANG.common_female_option}</label>
                </td>
             </tr>
              <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('bio')}"><label for="bio">
                  {$LANG.common_bio}</label>{$myobj->getFormFieldErrorTip('bio')} {$myobj->ShowHelpTip('bio')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('bio')}">
                  <p>{$LANG.common_allowed_htmltags} {$htmlspecialchars}</p>
                  <span>
				  <textarea class="clsSignupTextArea" name="bio" id="bio" tabindex="{smartyTabIndex}" maxlength="{$CFG.admin.bio_count}" onFocus="updatelength(this);" onKeyUp="updatelength(this);">{$myobj->getFormField('bio')}</textarea></span>
				  <div id="ss" class="clsZeroColour"><span> {$LANG.header_remainig} : </span> <span class="clsCharacterLimit">{literal}<script language="javascript" type="text/javascript">var c = bio_count - document.getElementById('bio').value.length;document.write(c);</script>{/literal}</span></div>

                </td>
             </tr>
             {if chkIsPaymentAllowed('payment')}
			 <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('payment_plan')}">
                  <label for="payment_plan">{$LANG.payment_plan}</label><span id="selCompulsoryField">*</span>
                  {$myobj->ShowHelpTip('payment_plan')}</td>
                <td class="{$myobj->getCSSFormFieldCellClass('payment_plan')}">
                  <select name="payment_plan" id="payment_plan" class="clsTextBox {$myobj->getCSSFormFieldElementClass('payment_plan')}" tabindex="{smartyTabIndex}" onChange="billingFormUpdate(this.value,'{$CFG.site.url}signup.php');"  onBlur="manualLiveValidation(this);return false;"/>
			   <option value="">{$LANG.select_plan}</option>
			   {$myobj->generalPopulateArray($myobj->populatePaymentPlansList, $myobj->getFormField('payment_plan'))}
			   </select>
			   <br><a href="{$CFG.site.url}{$CFG.admin.index.anova_module}/paymentUpgrade.php" target="_blank">{$LANG.view_plan_details}</a>
			   {$myobj->getFormFieldElementErrorTip('payment_plan')}</td>
			   {literal}
			   <script type="text/javascript">
			    billingFormUpdate('{/literal}{$myobj->getFormField('payment_plan')}{literal}','{/literal}{$CFG.site.url}signup.php{literal}');
			   </script>
			    {/literal}
             </tr>
	             {if $CFG.admin.payment_method eq 'pro'}
					 <tr>
			             <td colspan="2" id="billInfo" style="display:none;">
			             {include file='paymentInfo.tpl' type='signup'}
			             </td>
		             </tr>
	             {/if}
             {/if}

      	  	{if $CFG.signup.captcha}
	        	{if $CFG.admin.module.recaptcha}
					{if $CFG.signup.re_captcha and $CFG.captcha.public_key and $CFG.captcha.private_key}
		            <tr>
						<td class="{$myobj->getCSSFormLabelCellClass('captcha')}">
							<label for="captcha">{$LANG.signup_captcha}</label>
							{$myobj->ShowHelpTip('captcha')}
						</td>
						<td class="clsOverwriteRecaptcha {$myobj->getCSSFormLabelCellClass('captcha')}">
							{literal}
							<script>
								var RecaptchaOptions = { tabindex : {/literal}{smartyTabIndex}{literal}	};
							</script>
							{/literal}
							{$myobj->recaptcha_get_html()}
							{$myobj->getFormFieldElementErrorTip('recaptcha_response_field')}
						</td>
					</tr>
					{/if}
				{else}
		            <tr>
		                <td class="{$myobj->getCSSFormLabelCellClass('captcha')}"><label for="captcha">{$LANG.signup_captcha}</label><span class="clsMandatory">*</span>{$myobj->ShowHelpTip('captcha')}</td>
		                <td class="clsSignupImage {$myobj->getCSSFormFieldCellClass('captcha')}">
		                   <span> <input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('captcha')}" name="captcha" id="captcha" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('captcha')}" /> {$myobj->getFormFieldElementErrorTip('captcha')}</span><br/><img id="captchaImage" src="{$CFG.site.url}captchaSignup.php" alt="{$LANG.signup_captcha_alt}" title="{$LANG.signup_captcha_title}" />
		                    <p><a href="#" onClick="return changeCaptchaImage()">{$LANG.new_code}</a></p>
		                </td>
		            </tr>
		            {literal}
		            	<script type="text/javascript">
		            		needLiveValidation('captcha',Array('Presence'));
		            	</script>
		            {/literal}
		        {/if}
        	{/if}
             <tr>
                <td class="{$myobj->getCSSFormLabelCellClass('terms')}"></td>
                <td class="{$myobj->getCSSFormFieldCellClass('terms')}">
                  <input type="checkBox" class="clsCheckRadio {$myobj->getCSSFormFieldElementClass('terms')}" onclick="chkAccecpted(this)" name="terms" id="terms" title="{$myobj->ShowToolTip('terms')}" tabindex="{smartyTabIndex}" value="1" {$myobj->isCheckedCheckBox('terms')} />
                  <label for="terms"><a target="_blank" href="{$terms_condition}">{$LANG.agree_terms_service}</a><span class="clsMandatory">*</span></label>
                  <span class="LV_validation_message LV_invalid" id="selTerms">
				  {if $myobj->getFormFieldElementErrorTip('terms')}
                  	Required!
                  {/if}
				  </span>
				</td>
              </tr>
              <tr>
                <td class="clsFormFieldCellDefault">&nbsp;</td>
                <td class="{$myobj->getCSSFormFieldCellClass('submit')}">
				<div class="clsSubmitLeft">
					<div class="clsSubmitRight">
                    <input type="submit" class="clsSubmitButton" name="signup_submit" id="submit" tabindex="{smartyTabIndex}" value="{$LANG.common_submit}" />
            		</div></div>
					 <p class="clsLogin">
						<!--<span class=""><a href="{$forgot_password_url}">{$LANG.forgot_password}</a></span>-->
						<span class=""><a href="{$login_url}">{$LANG.already_member}</a></span>
					  </p>
				  </td>
              </tr>
            </table>
          </div>

      </form>

    {literal}
        <script type="text/javascript">
            needLiveValidation('name',Array('Presence','Length|3|30'));
            needLiveValidation('display_name',Array('Presence','Length|3|30'));
            needLiveValidation('email',Array('Presence','Email'));
            needLiveValidation('password',Array('Presence','Length|4|30'));
            needLiveValidation('confirm_password',Array('Presence','Confirmation|password'));{/literal}
            {if $CFG.admin.module.payment}
            	{literal}needLiveValidation('payment_plan',Array('Presence'));{/literal}
			{/if}
			{literal}
        </script>
    {/literal}
{/if}
{if $myobj->isShowPageBlock('block_paynow_submit')}
{include file='buynowButton.tpl' type='signup'}
{/if} </div>
  </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
</div>
</div>