<script language='javascript'>
    function SwitchMember(myObj)
    {
        if (myObj.checked){
            $('billingblock').style.display="none";
            $('billingblockmember').style.display="";
            $('memberinfo').style.display="";
            $('accountinfoblock').style.display="none";
            if (document.getElementById('accessCodeSection')) {
                $('accessCodeSection').style.display="none";
            }
        }else{
            $('billingblock').style.display="";
            $('billingblockmember').style.display="none";
            $('memberinfo').style.display="none";
            $('accountinfoblock').style.display="";
            if (document.getElementById('accessCodeSection')) {
                $('accessCodeSection').style.display = "";
            }
        }
    }

    function changeAccessCodeImg()
    {
      var randomimage = Math.random();
      document.images.captcha.src = "modules/clients/captcha.php?" + randomimage + "";
    }
</script>

<div id="memberinfo" style="display:{MEMBERINFO_STYLE}">
    <table border="0" width="100%" align="center">
        <tr align="center" bgcolor="white"><td width="100%" align="center" class="step3tdbg" valign="top" colspan="2">[l]Please enter your profile's E-mail address and password[/l]<div id="membervalid"></div></td></tr>
        <tr align="center"><td width="35%" align="right" class="step3tdbg" valign="top">[l]E-mail[/l]:&nbsp;&nbsp;</td><td width="65%" align="left"><input type="text" name="member_email" value="{MEMBER_EMAIL}" class="txtbox" onkeypress="return noenter(event);"></td></tr>
        <tr align="center"><td width="35%" align="right" class="step3tdbg" valign="top">[l]Password[/l]:&nbsp;&nbsp;</td><td width="65%" align="left"><input type="password" name="member_password" value="{MEMBER_PASSWORD}" class="txtbox" onkeypress="return noenter(event);"></td></tr>
    </table>
    
    <table align="center">
        <tr align="center"><td  align="center" width="70%" height="25"><a style="display:visibility" id="linkForgotPassword" href="javascript:hideshowCommon($('forgotpassword'),'toggle0')"><font color="Red">[l]Forgot Password?[/l]</font></a></td></tr> 
        </tr>
    </table>
    <table align="center" border="0" cellpadding="0" cellspacing="0">
        <tr a align="center">
            <td align="center">
                <div id="message"></div> 
            </td>
        </tr>
    </table>
</div>
<div id="forgotpassword" style="display:{MEMBERINFO_STYLE}">
    <table width="100%"%" border=0 align="center" cellpadding="1" cellspacing="1">
        <tr align="center" bgcolor="white">
            <td width="100%" align="center" class="step3tdbg" valign="top" colspan="2">[l]Please enter your profile's E-mail to retrieve your password[/l]</td>
        </tr>
        <tr align="center">
            <td width="100%" class="step3tdbg" align="center" height="35%" valign="middle" ><input id=femail name=femail type=text class="txtbox" size=20></td>
        </tr>
        <tr align="center"> 
            <td width="100%" align="center" height="25" valign="middle">
            <input onclick="javascript:hideshowCommon($('forgotpassword'),'toggle0');passwordRequest('femail')" type="button" value="[lh]SUBMIT[/lh]" class="button_medium"></td>           
        </tr>  
        <tr align="center" valign="middle"> 
            <td height="20" colspan=3><font color=#006699>[l]Your IP will be logged for security reasons[/l]</font></td>
        </tr>
    </table>
</div>


<div id="accountinfoblock" style="display:{ACCOUNTINFO_STYLE}">
    <table width="100%" cellpadding="4" cellspacing="1">
        {DISPLAYPROFILECUSTOMFIELDS}
        <tr align="center">
            <td width="100%" align="center" class="orangetitle" colspan=2>
                [l]Please enter your preferred password for this account.[/l]
            </td>
        </tr>
        <tr align="center">
            <td width="35%" align="right" class="step3tdbg">
                [l]Account Password[/l]:
            </td>
            <td width="65%" align="left">
                <input type="textbox" class="txtbox" name="new_password" size="20" value="{NEW_PASSWORD}" onkeypress="return noenter(event)">
                <input type="hidden" name="r_new_password" value="[lh]Password[/lh]">
            </td>
        </tr>
    </table>
</div>
<!-- BEGIN DYNAMIC BLOCK: domaindata -->
<div id="domainCredentials">
    <table width="100%" cellpadding="4" cellspacing="1">
        <tr align="center">
            <td width="100%" align="center" class="orangetitle" colspan=2>
                [l]Please enter your preferred Username and Password for your Domain account.[/l]
            </td>
        </tr>
        <tr align="center">
            <td width="35%" align="right" class="step3tdbg">
                [l]Domain Username[/l]:
            </td>
            <td width="65%" align="left">
                <input type="textbox" class="required" id="new_domain_username" name="new_domain_username" size="20" value="{NEW_DOMAIN_USERNAME}" onkeypress="return noenter(event)">
                <input type="hidden" name="r_new_domain_username" value="[lh]Domain Username[/lh]">
            </td>
        </tr>
        <tr align="center">
            <td width="35%" align="right" class="step3tdbg">
                [l]Domain Password[/l]:
            </td>
            <td width="65%" align="left">
                <input type="textbox" class="required" id="new_domain_password" name="new_domain_password" size="20" value="{NEW_DOMAIN_PASSWORD}" onkeypress="return noenter(event)">
                <input type="hidden" name="r_new_domain_password" value="[lh]Domain Password[/lh]">
            </td>
        </tr>
    </table>
</div>
<!-- END DYNAMIC BLOCK: domaindata -->
<!-- BEGIN DYNAMIC BLOCK: request_access_code -->
<div id="accessCodeSection">
    <table width="100%" cellpadding="4" cellspacing="1">
        <tr align="center">
            <td width="35%" align="right" class="step3tdbg">
                [l]Access code picture[/l]:
            </td>
            <td width="65%" align="left">
                <img name="captcha" id="antiflood" src="modules/clients/captcha.php" border="0">&nbsp;&nbsp;
                <a href="javascript:void(0);" onclick="changeAccessCodeImg();return false;" style="text-decoration:none">
                    <img src="templates/{TEMPLATE}/images/refresh.gif" border="0" alt="[lh]Request a new access code picture[/lh]" title="[lh]Request a new access code picture[/lh]">
                </a>
            </td>
        </tr>
        <tr align="center">
            <td width="35%" align="right" class="step3tdbg">
                [l]Please enter the access code[/l]:
            </td>
            <td width="65%" align="left">
                <input type="textbox" class="txtbox" name="accesscode" size="20" onkeypress="return noenter(event)">
                    {ENTERACCODE}
            </td>
        </tr>
        <input type=hidden name=r_accesscode value="[lh]Access code[/lh]">
    </table>
</div>
<!-- END DYNAMIC BLOCK: request_access_code -->
