{error}
<!-- BEGIN DYNAMIC BLOCK: noClients -->
<BR>&nbsp;&nbsp;&nbsp;<img src="../images/sub_dot.gif"><font class=body7green>[l]Client database is empty[/l]</font>
<!-- END DYNAMIC BLOCK: noClients -->
<!-- BEGIN DYNAMIC BLOCK: addClient -->
<br>&nbsp;&nbsp;&nbsp;<img src="../images/sub_dot.gif">&nbsp;[l]To add a client please click[/l]
<a href="index.php?fuse=clients&amp;view=AddClient">[l]here[/l]</a>
<!-- END DYNAMIC BLOCK: addClient -->

<!-- BEGIN DYNAMIC BLOCK: profile -->
<script language="javascript" type="text/javascript" src="{RELATIVE_PATH}javascript/modules/clients.js?version={VERSION}" ></script>
<script language="javascript" type="text/javascript"><!--hide it---
function OpenShowCCWindow(){
    if (document.forms['customerdata'].elements['viewpassphrase'].value==""){
        alert(lang('You will need to enter your passphrase before viewing the entire credit card number.'));
        return;
    }

    var mywin = window.open('','cewindow','scrollbars=no,menubar=no,location=no,width=200,height=10,resizable=no');
    var passphrase = encodeURIComponent(document.forms['customerdata'].elements['viewpassphrase'].value);
    mywin.location.href = "index.php?fuse={fuse}&pp=" + passphrase + "&view=ViewCCNumber";
    mywin.focus();
}

function replaceString(oldS,newS,fullS) {
  for (var i=0; i<fullS.length; i++) {
     if (fullS.substring(i,i+oldS.length) == oldS) {
        fullS = fullS.substring(0,i)+newS+fullS.substring(i+oldS.length,fullS.length);
     }
  }
  return fullS;
}

function fixaddress(myfield) {
  myfield.value =  replaceString(" ","",myfield.value);
  myfield.value = myfield.value.toLowerCase();
}

function checkPassword(form){
    if ((form.confirm_password.value !="") && (form.new_password.value !="")){
        if (form.confirm_password.value != form.new_password.value){
            alert(lang("Your confirmation password does not match your new password"));
            return (false);
        }
    }else{
        if ((form.confirm_password.value !="") || (form.new_password.value !="")){
            alert(lang("You must fill all password fields if you wish to change this password"));
            return (false);
        }
    }
    return (true);
}

function showHideRecurring(value) {
    usingRecurring = $('use_recurring');
    if (value == 'paypal') {
        usingRecurring.style.display = 'block';
    } else {
        usingRecurring.style.display = 'none';
    }
}

function checkStatus(form) {
    <!-- BEGIN DYNAMIC BLOCK: checkStatusFunction -->
    if (form.status.value != form.old_status.value) {
        form.packageaction.value=0;
        form.packageplugin.value=0;
        switch(form.status.value){
            case '1':
                if (form.old_status.value == -1) {
                    var resp = confirm(lang("Do you wish to unsuspend this clients suspended packages as well?"));
                    if (resp) {
                        form.packageaction.value=1;
                        if (form.packagewithplugin.value == 1) {
                            var resp2 = confirm(lang("Do you want to unsuspend the packages using their respective server plugins?"));
                            if (resp2) {
                                form.packageplugin.value=1;
                            }
                        }
                    }
                }
                break;
            case '-1':
                var resp = confirm(lang("Do you wish to suspend this clients active packages as well?"));
                if (resp) {
                    form.packageaction.value=1;
                    if (form.packagewithplugin.value == 1) {
                        var resp2 = confirm(lang("Do you want to suspend the packages using their respective server plugins?"));
                        if (resp2) {
                            form.packageplugin.value=1;
                        }
                    }
                }
                break;
            case '-2':
            case '-3':
                var resp = confirm(lang("Do you wish to cancel this clients packages as well?"));
                if (resp) {
                    form.packageaction.value=1;
                    if (form.packagewithplugin.value == 1) {
                        var resp2 = confirm(lang("Do you want to cancel the packages using their respective server plugins?"));
                        if (resp2) {
                            form.packageplugin.value=1;
                        }
                    }
                }
                break;
        }
    }
    <!-- END DYNAMIC BLOCK: checkStatusFunction -->
}

if (document.images) {
    pic1= new Image(167,14);
    pic1.src="{RELATIVE_PATH}images/loading.gif";
}
//-->
</script>
<table border=0>
<!-- BEGIN DYNAMIC BLOCK: updateCustomerForm -->
    <form method=post name=customerdata action="index.php?fuse=clients&action=UpdateCustomer" onKeyUp="highlight(event)" onClick="highlight(event)">
    <input type=hidden name=id value="{customerId}">
    <input type=hidden name=userid value="{customerId}">
    <input type=hidden name=packageaction value=0 />
    <input type=hidden name=packageplugin value=0 />
    <!-- BEGIN DYNAMIC BLOCK: packageWithPluginVar -->
    <input type=hidden name=packagewithplugin value={packageWithPlugin} />
    <!-- END DYNAMIC BLOCK: packageWithPluginVar -->
<!-- END DYNAMIC BLOCK: updateCustomerForm -->

<!-- BEGIN DYNAMIC BLOCK: saveNewClientForm -->
    <form method=post name=customerdata action="index.php?fuse=clients&action=SaveNewClient" onKeyUp="highlight(event)" onClick="highlight(event)">
        <tr>
            <td colspan=2>
                <br>&nbsp;&nbsp;&nbsp;
                <b>[l]Add your new customer profile in the fields below[/l].</b><br>  &nbsp;&nbsp;&nbsp;
                <b><font color=red>[l]Note[/l].</font>:</b>
                [l]The fields highlighted in red are required before submitting this customer's profile.[/l]<br><Br>
            </td>
        </tr>
<!-- END DYNAMIC BLOCK: saveNewClientForm -->
</table>
<table>
    <tr>
        <td valign="top">
            {titleHeader}
            <div class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px;">
                <div class="viewHead2">
                    <br style="clear: both;">
                </div>
                <!-- BEGIN DYNAMIC BLOCK: userIdBlock -->
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]User ID[/l]: </span>
                </span>
                <span style="float: left;width:280px;height:15px;">
                    <strong>{userId}</strong>
                    <!-- BEGIN DYNAMIC BLOCK: view_as_customer -->
                    &nbsp;&nbsp;<a href="index.php?fuse=clients&action=ViewAsClientGateway">([l]view as client[/l])</a>
                    <!-- END DYNAMIC BLOCK: view_as_customer -->
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <!-- END DYNAMIC BLOCK: userIdBlock -->

                <!-- BEGIN DYNAMIC BLOCK: customerGroups -->
                    <span style="float: left; width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                        <span class='rowlabel'>[l]Groups[/l]: </span>
                    </span>
                    <span style="float: left;width:280px">
                        <select name=customerGroup width="200px">
                        <!-- BEGIN DYNAMIC BLOCK: groupOption -->
                            <option value="{groupValue}" {groupSelected} >{groupLabel}</option>
                        <!-- END DYNAMIC BLOCK: groupOption -->
                        </select>
                    </span>
                    <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <!-- END DYNAMIC BLOCK: customerGroups -->

                <!-- BEGIN DYNAMIC BLOCK: customerStatus -->
                     <span style="float: left; width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                        <span class='rowlabel'>[l]Status[/l]: </span>
                    </span>
                     <span style="float: left;width:280px">
                         <select name=status id='status'>
                            <!-- BEGIN DYNAMIC BLOCK: pendingStatus -->
                            <option size=30 value=1 {pendingSelected} >[l]Pending[/l]</option>
                            <!-- END DYNAMIC BLOCK: pendingStatus -->
                            <!-- BEGIN DYNAMIC BLOCK: activeStatus -->
                            <option size=30 value=1 {activeSelected} >[l]Active[/l]</option>
                            <!-- END DYNAMIC BLOCK: activeStatus -->
                            <!-- BEGIN DYNAMIC BLOCK: inactiveStatus -->
                            <option size=30 value=-1 {inactiveSelected} >[l]Inactive[/l]</option>
                            <!-- END DYNAMIC BLOCK: inactiveStatus -->
                            <!-- BEGIN DYNAMIC BLOCK: cancelledStatus -->
                            <option size=30 value=-2 {cancelledSelected} >[l]Cancelled[/l]</option>
                            <!-- END DYNAMIC BLOCK: cancelledStatus -->
                            <!-- BEGIN DYNAMIC BLOCK: fraudStatus -->
                            <option size=30 value=-3 {fraudSelected} >[l]Fraud[/l]</option>
                            <!-- END DYNAMIC BLOCK: fraudStatus -->
                         </select>
                         <input name=old_status id=old_status type=hidden value='{status}' />
                     </span>
                     <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <!-- END DYNAMIC BLOCK: customerStatus -->

                <!-- BEGIN DYNAMIC BLOCK: customerStatusHidden -->
                    <input name=old_status id=old_status type=hidden value='{customerStatus}' />
                    <input name=status type=hidden value='{customerStatus}' />
                <!-- END DYNAMIC BLOCK: customerStatusHidden -->

                <!-- BEGIN DYNAMIC BLOCK: customFields -->
                    <span style="float: left; width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                        <span class='rowlabel'>{rowLabel}: </span>
                    </span>
                    <span style="float: left;width:280px;">
                    <!-- BEGIN DYNAMIC BLOCK: typeLanguage -->
                    <select name='CT_{fieldId}' class=body {disabled} >
                        <!-- BEGIN DYNAMIC BLOCK: typeLanguageOption -->
                        <option size="30" value="{typeLanguageOptionValue}" {typeLanguageOptionSelected} >{typeLanguageOptionLabel}</option>
                        <!-- END DYNAMIC BLOCK: typeLanguageOption -->
                    </select>
                    <!-- END DYNAMIC BLOCK: typeLanguage -->
                    <!-- BEGIN DYNAMIC BLOCK: typeTextarea -->
                    <textarea name='CT_{fieldId}' class=body cols='{fieldWidth}' {disabled} >{value}</textarea>
                    <!-- END DYNAMIC BLOCK: typeTextarea -->
                    <!-- BEGIN DYNAMIC BLOCK: typeDropdown -->
                    <select name="CT_{fieldId}" {disabled} >
                        <!-- BEGIN DYNAMIC BLOCK: typeDropdownOption -->
                        <option size="30" value="{typeDropdownOptionValue}" {typeDropdownOptionSelected} >{typeDropdownOptionLabel}</option>
                        <!-- END DYNAMIC BLOCK: typeDropdownOption -->
                    </select>
                    <!-- END DYNAMIC BLOCK: typeDropdown -->
                    <!-- BEGIN DYNAMIC BLOCK: typeCountry -->
                    <select name="CT_{fieldId}" {disabled} >
                        {countryOptions}
                    </select>
                    <!-- END DYNAMIC BLOCK: typeCountry -->
                    <!-- BEGIN DYNAMIC BLOCK: typeYesNo -->
                    <select name="CT_{fieldId}" {disabled} >
                        <option value=1 {yesSelected} >[l]Yes[/l]</option>
                        <option value=0 {noSelected} >[l]No[/l]</option>
                    </select>{allowEmailHelp}
                    <!-- END DYNAMIC BLOCK: typeYesNo -->
                    <!-- BEGIN DYNAMIC BLOCK: typeDate -->
                    <input type="hidden" name="CTT_{fieldId}" id="CTT_{fieldId}" value="{typeDateConstant}" />
                    <input type="text" name="CT_{fieldId}" id="CT_{fieldId}" value="{value}" {readOnly} />&nbsp;&nbsp;
                        <!-- BEGIN DYNAMIC BLOCK: canEditDate -->
                        <img id="calButton_{fieldId}" src="../images/dynCalendar.gif" style="cursor:pointer" />
                        <link rel="stylesheet" type="text/css" href="../newedge/javascript/jscalendar/calendar-win2k-cold-1.css" />
                        <script type="text/javascript">
                            Calendar.setup({
                                inputField      : 'CT_{fieldId}',
                                ifFormat        : '{dateFormat}',
                                showsTime       : false,
                                button          : 'calButton_{fieldId}',
                                weekNumbers     : false,
                                step            : 1
                            });
                        </script>
                        <!-- END DYNAMIC BLOCK: canEditDate -->
                    <!-- END DYNAMIC BLOCK: typeDate -->
                    <!-- BEGIN DYNAMIC BLOCK: typeSimple -->
                    <input class="{cssClass}" type="text" name="CT_{fieldId}" size="{fieldWidth}" value="{value}" />
                    <!-- END DYNAMIC BLOCK: typeSimple -->
                    <!-- BEGIN DYNAMIC BLOCK: typeLabel -->
                    {value}
                    <!-- END DYNAMIC BLOCK: typeLabel -->
                    <!-- BEGIN DYNAMIC BLOCK: organization -->
                    &nbsp;<input type=checkbox name=isOrganization {checkedIsOrganization} >{organizationHelp}
                    <!-- END DYNAMIC BLOCK: organization -->
                    <!-- BEGIN DYNAMIC BLOCK: organizationHidden -->
                    <input type="hidden" name="isOrganization" value="on" />
                    <!-- END DYNAMIC BLOCK: organizationHidden -->
                    </span>
                    <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                    <!-- BEGIN DYNAMIC BLOCK: someOtherHiddenFields -->
                    <input type="hidden" name="{fieldName}" value="{fieldValue}" />
                    <!-- END DYNAMIC BLOCK: someOtherHiddenFields -->
                <!-- END DYNAMIC BLOCK: customFields -->
                </div>
                <div class="viewFormFooter" style="width:400px;padding-bottom:0px;"></div>
                <!-- BEGIN DYNAMIC BLOCK: additionalEmailOptions -->
                <br>
                <table border=0 cellpadding=0 cellspacing=0>
                    <tr>
                        <td>
                            <a name="generalProperties"></a>
                            {sectionHeader}
                            <script language="JavaScript" type="text/javascript">
                                if (get_cookie("altemail")=="collapse"){
                                    document.write ("<div id=\"altcontact\" style=\"display:\">");
                                    document.images['toggle0'].src="../images/collapse.gif";
                                }else{
                                    document.write ("<div id=\"altcontact\" style=\"display:none\">");
                                    document.images['toggle0'].src="../images/expand.gif";
                                }
                            </script>
                            <table width=400 cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td align=center>
                                        <table width=100% cellpadding=0 cellspacing=2 border=0>
                                            <tr class=secondarycolor>
                                                <td>&nbsp;&nbsp;</td>
                                                <td>[l]E-mail[/l]</td>
                                                <td align=center>
                                                    &nbsp;&nbsp;{notificationsHelp}
                                                </td>
                                                <!-- BEGIN DYNAMIC BLOCK: billingColumn -->
                                                <td align=center>
                                                    &nbsp;&nbsp;{billingHelp}
                                                </td>
                                                <!-- END DYNAMIC BLOCK: billingColumn -->
                                                <td align=center>
                                                    &nbsp;&nbsp;{supportHelp}
                                                </td>
                                                <td align=center>
                                                    &nbsp;&nbsp;{deleteEmailHelp}
                                                </td>
                                            </tr>
                                            <!-- BEGIN DYNAMIC BLOCK: altEmailRow -->
                                            <tr>
                                                <td>&nbsp;&nbsp;</td>
                                                <td>{altEmail}</td>
                                                <td align=center>
                                                    <input type=checkbox name=sendnotifications_{altEmailId} {sendNotifications} {disabled} >
                                                </td>
                                                <!-- BEGIN DYNAMIC BLOCK: altEmailRowBillingColumn -->
                                                <td align=center>
                                                    <input type=checkbox name=sendinvoice_{altEmailId} {sendInvoice} {disabled} >
                                                </td>
                                                <!-- END DYNAMIC BLOCK: altEmailRowBillingColumn -->
                                                <td align=center>
                                                    <input type=checkbox name=support_{altEmailId} {support} {disabled} >
                                                </td>
                                                <td align=center>
                                                    <input type=checkbox name=delete_{altEmailId} {disabled} />
                                                </td>
                                            </tr>
                                            <!-- END DYNAMIC BLOCK: altEmailRow -->
                                            <!-- BEGIN DYNAMIC BLOCK: newAltEmail -->
                                            <tr>
                                                <td>
                                                    &nbsp;&nbsp;
                                                </td>
                                                <td>
                                                    <input type="text" name="newaltemail" autocomplete="off">&nbsp;{newAltEmailHelp}
                                                </td>
                                                <td align=center>
                                                    <input type=checkbox name=newnotify>
                                                </td>
                                                <!-- BEGIN DYNAMIC BLOCK: newAltEmailBilling -->
                                                <td align=center>
                                                    <input type=checkbox name=newinvoice>
                                                </td>
                                                <!-- END DYNAMIC BLOCK: newAltEmailBilling -->
                                                <td align=center>
                                                    <input type=checkbox name=newsupport>
                                                </td>
                                                <td align=center></td>
                                            </tr>
                                            <!-- END DYNAMIC BLOCK: newAltEmail -->
                                            <!-- BEGIN DYNAMIC BLOCK: noNewAltEmail -->
                                            <tr>
                                                <td colspan=6 align=center>
                                                    <font color=red>[l]There are no alternate E-mails created for this account[/l]</font>
                                                </td>
                                            </tr>
                                            <!-- END DYNAMIC BLOCK: noNewAltEmail -->
                                        </table>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    </table>
                    <!-- END DYNAMIC BLOCK: additionalEmailOptions -->

                    <!-- BEGIN DYNAMIC BLOCK: billing -->
                    <br /><br />
                    {billingHeader}
                    <!-- BEGIN DYNAMIC BLOCK: toggleBillingSection -->
                    <script language="JavaScript" type="text/javascript">
                        if (get_cookie("customerbilling")=="collapse"){
                            document.write ("<div id=\"billingsection\" style=\"display:\">");
                            document.images['toggle2'].src="../images/collapse.gif";
                        }else{
                            document.write ("<div id=\"billingsection\" style=\"display:none\">");
                            document.images['toggle2'].src="../images/expand.gif";
                        }
                    </script>
                    <!-- END DYNAMIC BLOCK: toggleBillingSection -->
                    <!-- BEGIN DYNAMIC BLOCK: billingAdminOnly -->
                    <br>
                    <table border=0 width=400>
                        <tr class="{className1}">
                            <td width=167>&nbsp;&nbsp;&nbsp;[l]Taxable[/l]:</td>
                            <td align=left>
                                <select name=taxable>
                                    <option value=1 {taxableYesSelected} >[l]Yes[/l]</option>
                                    <option value=0 {taxableNoSelected} >[l]No[/l]</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="{className2}">
                            <td>&nbsp;&nbsp;&nbsp;[l]Currency[/l]:</td>
                            <td valign=top>
                                {currencyDropdown}&nbsp;&nbsp;{currencySymbol}
                            </td>
                        </tr>
                        <tr class="{className3}">
                            <td width=167>&nbsp;&nbsp;&nbsp;[l]Payment Type[/l]:</td>
                            <td>
                                <select name=paymenttype class=body  onChange="CheckForCCDisplay(this.options[this.selectedIndex].value); showHideRecurring(this.options[this.selectedIndex].value);">
                                    <!-- BEGIN DYNAMIC BLOCK: paymentTypeOption -->
                                    <option value="{paymentTypeOptionValue}" {paymentTypeOptionSelected} >{paymentTypeOptionLabel}</option>
                                    <!-- END DYNAMIC BLOCK: paymentTypeOption -->
                                </select>&nbsp;&nbsp;{paymentTypeHelp}
                            </td>
                        </tr>
                    </table>
                    <div id="use_recurring" style="display:{displayRecurring}">
                        <table width="400" border="0" >
                            <tr class="{className4}" >
                                <td width="167">&nbsp;&nbsp;&nbsp;[l]Use Recurring Subscription[/l]:</td>
                                <td>
                                    <input type="radio" name="recurring_paypal" value="0" {recurringPaypalNo} />[l]No[/l]&nbsp;&nbsp;
                                    <input type="radio" name="recurring_paypal" value="1" {recurringPaypalYes} />[l]Yes[/l]&nbsp;&nbsp;
                                    {paypalRecurringHelp}
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!-- END DYNAMIC BLOCK: billingAdminOnly -->

                    <div id=nocreditcardinfo style="display:{noDisplayCC}" >
                        <br>
                        <table width=400>
                            <tr>
                                <td align=center>
                                    <font class=red>[l]We do not store credit card information<br>for your selected payment type[/l]</font>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id=creditcardinfo style="display:{displayCC}">
                        <table border=0 width="400">
                            <tr class="{className5}">
                                <td width=167 valign=top>&nbsp;&nbsp;&nbsp;[l]Credit Card Number[/l]:</td>
                                <!-- BEGIN DYNAMIC BLOCK: CCSection -->
                                <td valign=top>
                                    <!-- BEGIN DYNAMIC BLOCK: isPassphrased -->
                                        <!-- BEGIN DYNAMIC BLOCK: ccIsThere -->
                                            <!-- BEGIN DYNAMIC BLOCK: canEditCC -->
                                            <table cellpadding=0 cellspacing=0>
                                                <tr>
                                                    <td>
                                                        xxxxxxxxxxxxx {lastFour}&nbsp;&nbsp;&nbsp;
                                                        <!-- BEGIN DYNAMIC BLOCK: canPassphrase -->
                                                        <font color=red>{passphraseHelp}</font>
                                                        <div id="passphrasediv" style="display:none">
                                                            <input type=password name='viewpassphrase'>&nbsp;&nbsp;
                                                            <input type=button name=viewentirecc value='[l]view[/l]' onClick='OpenShowCCWindow();'>
                                                        </div>
                                                        <!-- END DYNAMIC BLOCK: canPassphrase -->
                                                        <!-- BEGIN DYNAMIC BLOCK: deleteCC -->
                                                        <div>
                                                            <input type=checkbox name='deletecc' />[l]Delete Credit Card[/l]
                                                        </div>
                                                        <!-- END DYNAMIC BLOCK: deleteCC -->
                                                   </td>
                                                </tr>
                                            </table>
                                            <!-- END DYNAMIC BLOCK: canEditCC -->
                                            {cantEditCC}
                                        <!-- END DYNAMIC BLOCK: ccIsThere -->
                                        <!-- BEGIN DYNAMIC BLOCK: ccIsNotThere -->
                                        <input type=text name=ccnumber size=30>
                                        <input type=hidden name=c_ccnumber value="{requiredMsg}" />
                                        <input type=hidden name=r_ccnumber value="{ccRequiredMsg}" />
                                        <!-- END DYNAMIC BLOCK: ccIsNotThere -->
                                    <!-- END DYNAMIC BLOCK: isPassphrased -->

                                    <!-- BEGIN DYNAMIC BLOCK: isNotPassphrased -->
                                        <!-- BEGIN DYNAMIC BLOCK: thereIsCC -->
                                            <!-- BEGIN DYNAMIC BLOCK: CCEditable -->
                                            <table cellpadding=0 cellspacing=0>
                                                <tr>
                                                    <td>
                                                        <!-- BEGIN DYNAMIC BLOCK: passphraseable -->
                                                        {someHelp}
                                                        <div id="passphrasediv" style="display:none">
                                                            <input type=password name=passphrase>
                                                        </div>
                                                        <!-- END DYNAMIC BLOCK: passphraseable -->
                                                        <!-- BEGIN DYNAMIC BLOCK: awaitingValidation -->
                                                        <font color=red>[l]Awaiting Validation[/l]</font>
                                                        <!-- END DYNAMIC BLOCK: awaitingValidation -->
                                                        <!-- BEGIN DYNAMIC BLOCK: deleteCC2 -->
                                                        <div>
                                                            <input type=checkbox name='deletecc' />[l]Delete Credit Card[/l]
                                                        </div>
                                                        <!-- END DYNAMIC BLOCK: deleteCC2 -->
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- END DYNAMIC BLOCK: CCEditable -->
                                            <!-- BEGIN DYNAMIC BLOCK: awaitingValidation2 -->
                                            <font color=red>[l]Awaiting Validation[/l]</font>
                                            <!-- END DYNAMIC BLOCK: awaitingValidation2 -->
                                        <!-- END DYNAMIC BLOCK: thereIsCC -->
                                        <!-- BEGIN DYNAMIC BLOCK: thereIsNoCC -->
                                        <input type=text name=ccnumber size=30>
                                        <input type=hidden name=c_ccnumber value="{requiredMsg}" />
                                        <input type=hidden name=r_ccnumber value="{ccRequiredMsg}" />
                                        <!-- END DYNAMIC BLOCK: thereIsNoCC -->
                                    <!-- END DYNAMIC BLOCK: isNotPassphrased -->
                                </td>
                            </tr>
                            <!-- BEGIN DYNAMIC BLOCK: changeCC -->
                            <tr class="{className6}">
                                <td width=167>
                                    &nbsp;&nbsp;&nbsp;[l]New Credit Card Number[/l]:
                                </td>
                                <td>
                                    <input type=text name=ccnumber size=30>
                                    <input type=hidden name=c_ccnumber value="{requiredMsg}" />
                                    <input type=hidden name=r_ccnumber value="">&nbsp;&nbsp;{helpCCChange}
                                </td>
                            </tr>
                            <!-- END DYNAMIC BLOCK: changeCC -->
                                <!-- END DYNAMIC BLOCK: CCSection -->
                                <!-- BEGIN DYNAMIC BLOCK: emptyCCSection -->
                                <td><input type=text name=ccnumber size=30 value={ccnumber}></td>
                                <input type=hidden name=c_ccnumber value="{requiredMsg}" />
                                <input type=hidden name=r_ccnumber value="{ccRequiredMsg}">
                            </tr>
                                <!-- END DYNAMIC BLOCK: emptyCCSection -->
                                <tr class="{className7}">
                                    <td width=167>&nbsp;&nbsp;&nbsp;[l]Expiration Month[/l]:</td>
                                    <td>
                                        <select type=text name=ccmonth>
                                            <!-- BEGIN DYNAMIC BLOCK: monthOptions -->
                                            <option value="{monthOptionsValue}" {monthOptionsSelected} >{monthOptionsLabel}</option>
                                            <!-- END DYNAMIC BLOCK: monthOptions -->
                                        </select>
                                    </td>
                                </tr>
                                <tr class="{className8}">
                                    <td width=167>&nbsp;&nbsp;&nbsp;[l]Expiration Year[/l]:</td>
                                    <td>
                                        <select type=text name=ccyear>
                                            <!-- BEGIN DYNAMIC BLOCK: yearOptions -->
                                            <option value="{yearOptionsValue}" {yearOptionsSelected} >{yearOptionsLabel}</option>
                                            <!-- END DYNAMIC BLOCK: yearOptions -->
                                        </select>
                                    </td>
                                </tr>
                                <tr class="{className9}">
                                    <td width=167>&nbsp;&nbsp;&nbsp;[l]Accepting[/l]:</td>
                                    <td>
                                        <img src="../images/visa_logo.gif" style="display:{visaStyle}" id=visa_logo>
                                        <img src="../images/mastercard_logo.gif" style="display:{mastercardStyle}" id=mastercard_logo>
                                        <img src="../images/americanexpress_logo.gif" style="display:{americanexpressStyle}" id=americanexpress_logo>
                                        <img src="../images/discover_logo.gif" style="display:{discoverStyle}" id=discover_logo>
                                        <input type=hidden name=validcc value='{visabit}{mcbit}{amexbit}{discbit}' />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <!-- END DYNAMIC BLOCK: billing -->

                    <!-- BEGIN DYNAMIC BLOCK: adminSection -->
                    <br /><br />
                    {adminHeader}
                        <!-- BEGIN DYNAMIC BLOCK: toggleAdminSection -->
                        <script language="JavaScript" type="text/javascript">
                            if (get_cookie("customeradmin")=="collapse"){
                                document.write ("<div id=\"adminsection\" style=\"display:\">");
                                document.images['toggle1'].src="../images/collapse.gif";
                            }else{
                                document.write ("<div id=\"adminsection\" style=\"display:none\">");
                                document.images['toggle1'].src="../images/expand.gif";
                            }
                        </script>
                        <!-- END DYNAMIC BLOCK: toggleAdminSection -->
                    <br />
                    <table border=0 width=400>
                        <tr class="{className10}">
                            <td width=167>&nbsp;&nbsp;&nbsp;[l]Date Created[/l]:</td>
                            <td>
                                <input class='{className}' type=text size=12 MAXLENGTH=10 name="dateActivated" id="dateActivated" value='{dateActivated}' >&nbsp;&nbsp;
                                <img id="calButton" src="../images/dynCalendar.gif" style="cursor:pointer"/>
                                <link rel="stylesheet" type="text/css" href="../newedge/javascript/jscalendar/calendar-win2k-cold-1.css" />
                                <script type="text/javascript">
                                    Calendar.setup({
                                    inputField      : 'dateActivated',
                                    ifFormat        : '{dateFormat}',
                                    showsTime       : false,
                                    button          : 'calButton',
                                    weekNumbers     : false,
                                    step            : 1
                                    });
                                </script>
                            </td>
                        </tr>
                        <input type=hidden name=r_dateActivated value="[l]Date Created[/l]" />
                        <script>
                             function CheckForCCDisplay(selObj){
                                var inarray=0;
                                // possible plugins that require cc information
                                validpluginsforcc = new Array({pluginsList});
                                {availableCCArray}
                                //for loop to take a look and see if the selected plugin accepts cc information
                                for (x=0;x<{arraycount};x++){
                                  if (selObj==validpluginsforcc[x]) inarray=1;
                                }

                                visabit=0;mcbit=0;amexbit=0;discoverbit=0;

                                //if inarray is 1 then we need to show credit card information
                                if (inarray==1) {
                                         if (pluginsforcc[selObj][{cCREDITVISA}]==1){ visabit=1;$('visa_logo').style.display="";}
                                         else $('visa_logo').style.display="none";
                                         if (pluginsforcc[selObj][{cCREDITMC}]==1){ mcbit=1;$('mastercard_logo').style.display="";}
                                         else $('mastercard_logo').style.display="none";
                                         if (pluginsforcc[selObj][{cCREDITAMEX}]==1){ amexbit=1;$('americanexpress_logo').style.display="";}
                                         else $('americanexpress_logo').style.display="none"
                                         if (pluginsforcc[selObj][{cCREDITDISC}]==1){ discoverbit=1;$('discover_logo').style.display="";}
                                         else $('discover_logo').style.display="none";
                                    //   document.forms['customerdata'].elements['c_ccnumber'].value='Invalid Credit Card Number'; 
                                         <!-- BEGIN DYNAMIC BLOCK: forceCCRequirement -->
                                         if(document.forms['customerdata'].elements['r_ccnumber']!=null) document.forms['customerdata'].elements['r_ccnumber'].value=lang('Credit Card Required');
                                         <!-- END DYNAMIC BLOCK: forceCCRequirement -->
                                         $('creditcardinfo').style.display="";
                                         $('nocreditcardinfo').style.display="none";
                                    }else{
                                         if(document.forms['customerdata'].elements['c_ccnumber']!=null) document.forms['customerdata'].elements['c_ccnumber'].value='';
                                         if(document.forms['customerdata'].elements['r_ccnumber']!=null) document.forms['customerdata'].elements['r_ccnumber'].value='';
                                         $('creditcardinfo').style.display="none";
                                         $('nocreditcardinfo').style.display="";
                                    }

                                    document.forms['customerdata'].elements['validcc'].value=""+visabit+mcbit+amexbit+discoverbit+"";
                             }
                         </script>

                         <!-- BEGIN DYNAMIC BLOCK: lastSeen -->
                         <tr class="{className11}">
                            <td>&nbsp;&nbsp;&nbsp;[l]Last Seen[/l]:</td>
                            <td>{lastSeenPretty}</td>
                         </tr>
                         <!-- END DYNAMIC BLOCK: lastSeen -->
                    <!-- END DYNAMIC BLOCK: adminSection -->
                    {closingTags}
                    <table width="400" border="0">
                        <!-- BEGIN DYNAMIC BLOCK: changePassword -->
                        <tr>
                            <td colspan=2>
                                &nbsp;&nbsp;&nbsp;
                                <hr width=100%>
                                <!-- BEGIN DYNAMIC BLOCK: changePasswordNote -->
                                <font class=body7red>&nbsp;&nbsp;&nbsp;&nbsp;[l]NOTE:  Supply only if you want this password changed[/l]</font>
                                <!-- END DYNAMIC BLOCK: changePasswordNote -->
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;&nbsp;&nbsp;[l]New Password[/l]:</td>
                            <td><input class={class} type=password name=new_password size=30 autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td>&nbsp;&nbsp;&nbsp;[l]Confirm password[/l]:</td>
                            <td><input class={class} type=password name=confirm_password size=30 autocomplete="off"></td>
                        </tr>
                        <tr>
                            <td colspan=2><hr width=100%></td>
                        </tr>
                        <!-- END DYNAMIC BLOCK: changePassword -->
                        <!-- BEGIN DYNAMIC BLOCK: passwordButtons1 -->
                        <input type=hidden name=r_new_password value="Password">
                        <input type=hidden name=r_confirm_password value="[l]Confirmation Password[/l]">
                        <tr>
                            <td colspan=1 align=left>
                                <br>
                                <input type=submit class=button_large value='[l]add client[/l]' onclick='if (checkPassword(form)) check(form,form.elements.length);return false;' class=body>
                            </td>
                        <!-- END DYNAMIC BLOCK: passwordButtons1 -->
                        <!-- BEGIN DYNAMIC BLOCK: passwordButtons2 -->
                        <tr>
                            <td colspan=1 align=left>
                                <br>
                                <input type=submit class=button_medium value='[l]update[/l]' onclick='if (checkPassword(form)) checkStatus(form);check(form,form.elements.length);return false;' class=body>
                            </td>
                        <!-- END DYNAMIC BLOCK: passwordButtons2 -->
                        <input type=hidden name=removeArray value='{queryString1}'>
                        <input type=hidden name=customTagsArray value='{queryString2}'>
                        <input type=hidden name=altEmailsArray value='{queryString3}'>
                    </form>
                    <form method=post action="index.php?fuse=clients&action=DeleteClient" >
                        <input type=hidden name=deleteid value="{customerId}">
                        <input type=hidden name=deletewithplugin value=0>
                        <input type=hidden name=nextaction value=ViewActiveUsers>
                        <td align=right>
                            <!-- BEGIN DYNAMIC BLOCK: deleteCustomerButton -->
                            <br>&nbsp;&nbsp;&nbsp;
                            <input type=button class=button_medium value='[l]delete[/l]' onClick='deleteCustomer(this.form); return false;' class=body>
                            <!-- END DYNAMIC BLOCK: deleteCustomerButton -->
                        </td>
                    </tr>
                    </form>
                    <!-- BEGIN DYNAMIC BLOCK: activateUser -->
                    <script type="text/javascript">
                        function showPckActivationOptions(check)
                        {
                           if (check.checked) {
                               if (isIE)var display = 'block';
                               else var display = 'table-row';
                           } else {
                               var display = 'none';
                           }
                          $('sendEmailDiv').style.display= display;
                          $('trServerAct').style.display= display;
                          $('trRegistrarAct').style.display= display;
                        }
                    </script>
                    <form method=post action="index.php?fuse=clients&action=ActivatePendingCustomer">
                        <input type=hidden name=nextaction value="ShowCustomerData">
                        <tr>
                            <td colspan=2>
                                <input type=hidden name=activateid value="{customerId}" />
                                <!-- BEGIN DYNAMIC BLOCK: activationSection -->
                                    <!-- BEGIN DYNAMIC BLOCK: activationSubsection -->
                                        <!-- BEGIN DYNAMIC BLOCK: activateUserButton -->
                                        <input type='submit' class='button_large' value='[l]Activate User[/l]' />
                                        <!-- END DYNAMIC BLOCK: activateUserButton -->
                                        <br/><br/>
                                        <div id='activateUsersPackagesSpan'>
                                            <input type='checkbox' name='activatepackages' style='position:relative;top:2px;' value='1' onClick='showPckActivationOptions(this);' />&nbsp;&nbsp;{helpActivatePackages}
                                        </div>
                                        <div id='sendEmailDiv' style='display:none;'>
                                            <input type='checkbox' name='sendwelcomeemail' style='position:relative;top:2px;' checked='true' />&nbsp;&nbsp;{helpSendWelcome}
                                        </div>
                                        <span id='trServerAct' style='display:none'>
                                            <div id='TriggerServerDiv' style='display:{isServerVisible}' >
                                                <input type='checkbox' name='serverplugin' style='position:relative;top:2px;' checked='true' />&nbsp;&nbsp;{helpServerActivate}
                                            </div>
                                        </span>
                                        <span id='trRegistrarAct' style='display:none;'>
                                            <div id='trRegistrarActDiv' style='display:{isVisible}' >
                                                <input id='registrarplugin' type='checkbox' style='position:relative;top:2px;' name='registrarplugin' {isChecked} />&nbsp;&nbsp;{helpRegister}
                                            </div>
                                        </span>
                                    <!-- END DYNAMIC BLOCK: activationSubsection -->
                                    <!-- BEGIN DYNAMIC BLOCK: activateUserButton2 -->
                                     <input type='submit' class='button_large' value='[l]Activate User[/l]' />
                                    <!-- END DYNAMIC BLOCK: activateUserButton2 -->
                                <!-- END DYNAMIC BLOCK: activationSection -->
                                </td>
                            </tr>
                        </form>
                    <!-- END DYNAMIC BLOCK: activateUser -->
                    </table>

                    <!-- BEGIN DYNAMIC BLOCK: packagesList -->
                    </td>
                    <td valign="top">
                        {packagesListHeader}
                        <script language="JavaScript" type="text/javascript">
                            function deleteCustomer(form)
                            {
                                var answer=confirm(lang("Click OK if you are sure you want to delete this account?"));

                                if (answer){
                                    <!-- BEGIN DYNAMIC BLOCK: askDeleteWithPlugin -->
                                    var answer2=confirm(lang("Do you want to delete the selected domain(s) using the respective server plugin?"));
                                    if (answer2) form.deletewithplugin.value=1;
                                    <!-- END DYNAMIC BLOCK: askDeleteWithPlugin -->
                                    form.submit();
                                }

                                return false;
                           }
                       </script>
                       <!-- BEGIN DYNAMIC BLOCK: thereAreDomains -->
                       <script language="JavaScript" type="text/javascript">
                           function deleteDomains(form, plugin)
                           {
                               var answer=confirm(lang("Click OK if you are sure you want to delete this domain"));
                               if(answer){
                                   if (plugin){
                                       var answer2=confirm(lang("Do you want to delete the selected domain(s) using the respective server plugin?"));
                                       if (answer2) form.deletewithplugin.value=1;
                                   }
                                   form.action.value = 'DeleteDomain';
                                   form.submit();
                               }
                           }
                       </script>

                       <form method="POST" id="packages" name="packages" action="index.php">
                           <table width=350 cellpadding="0" cellspacing="0" border="0">
                               <tr>
                                   <td align=center>
                                       <table id=tblPackages width="350" border='0'>
                                        <tr>
                                           <th></th>
                                           <th align='left' nowrap='nowrap'>[l]Package ID[/l]</th>
                                           <th align='left'>[l]Type[/l]</th>
                                           <th align='left'>[l]Status[/l]</th>
                                       </tr>
                                       <!-- BEGIN DYNAMIC BLOCK: packageRow -->
                                        <tr id='trPackage{packageReference}' class='{className12}'>
                                            <td>
                                                <!-- BEGIN DYNAMIC BLOCK: packageRowCheckbox -->
                                                <input type='checkbox' value="{packageReference}" id="p{packageReference}" name="entry" onClick='AsyncSelectPackage();'  />
                                                <!-- END DYNAMIC BLOCK: packageRowCheckbox -->
                                            </td>
                                            <td>
                                                <!-- BEGIN DYNAMIC BLOCK: packageNameLinked -->
                                                <a href="index.php?fuse=clients&selectedDomain={packageReferenceFiltered}&view=ShowDomainData">{packageName}</a>

                                                <!-- END DYNAMIC BLOCK: packageNameLinked -->
                                                <!-- BEGIN DYNAMIC BLOCK: packageNameUnlinked -->
                                                {packageName}
                                                <!-- END DYNAMIC BLOCK: packageNameUnlinked -->
                                            </td>
                                            <td>{packageTypeAndName}</td>
                                            <td id=tdPackageStatus{packageReference}>
                                                {packageStatus}
                                            </td>
                                        </tr>
                                       <!-- END DYNAMIC BLOCK: packageRow -->
                                       </table>
                                    </form>
                               </td>
                            </tr>
                       </table>
                   </div>
                       <!-- END DYNAMIC BLOCK: thereAreDomains -->
                    <!-- END DYNAMIC BLOCK: packagesList -->
                    <form id=options method=post action=index.php>
                        <div id='packagebuttons' style='margin:5px 0;'></div>
                        <!-- BEGIN DYNAMIC BLOCK: addPackageButton -->
                        <div>
                            <input type='button' name='packagebutton' class='button_xlarge' value='[lh]Add Package[/lh]' onclick='window.location="index.php?fuse=clients&view=AddDomain"' />
                        </div>
                        <!-- END DYNAMIC BLOCK: addPackageButton -->
                    </form>
                    {recurringOverview}
                    <!-- BEGIN DYNAMIC BLOCK: staffNotes -->
                        <br/>
                        {notesHeader}
                        {notes}
                    <!-- END DYNAMIC BLOCK: staffNotes -->
                    {staffNotes}
                    <!-- BEGIN DYNAMIC BLOCK: eventLog -->
                    <br/>
                    {eventLogHeader}
                    <script language="JavaScript" type="text/javascript">
                        if (get_cookie("eventlog")=="collapse"){
                            document.write ("<div id=\"diveventlog\" style=\"display:\">");
                            document.images['toggle3'].src="../images/collapse.gif";
                        }else{
                            document.write ("<div id=\"diveventlog\" style=\"display:none\">");
                            document.images['toggle3'].src="../images/expand.gif";
                        }
                    </script>
                    {logs}
                    <!-- END DYNAMIC BLOCK: eventLog -->
                   </td>
                </tr>
            </table>
    <!-- END DYNAMIC BLOCK: profile -->
