{clientDropdown}
<script type="text/javascript" src="../javascript/editpackages.js?version={VERSION}"></script>
{domainErrors}
<!-- BEGIN DYNAMIC BLOCK: noPackages -->
    <BR>&nbsp;&nbsp;&nbsp;<font class=body7red>[l]There are no packages associated with this account[/l]</font>
<!-- END DYNAMIC BLOCK: noPackages -->
<!-- BEGIN DYNAMIC BLOCK: createPackage -->
    <br>&nbsp;&nbsp;&nbsp;<img src="../images/sub_dot.gif">&nbsp;[l]To create a package for this client please click[/l] <a href="index.php?fuse=clients&amp;view=AddDomain">[l]Here[/l]</a>
<!-- END DYNAMIC BLOCK: createPackage -->
<!-- BEGIN DYNAMIC BLOCK: packageForm -->
    <script type="text/javascript">
        var gAddingNew = {addingNew};
        var thereAreAddons = false;
    </script>
    <!-- BEGIN DYNAMIC BLOCK: packageSections -->
        <br/>
        <!-- BEGIN DYNAMIC BLOCK: addPackageBtn -->
            <div style='position:relative;top:-3px;padding-left:282px;'><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: addPackageBtn -->
        <div class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px;">
            <div class="viewHead2">
                <br style="clear: both;">
            </div>
        <form name=navigate method=post action=index.php onClick="highlight(event)">
            <!-- BEGIN DYNAMIC BLOCK: selectPackage -->
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]Select Package[/l]: </span>
                </span>
                <span style="float: left;width:280px;height:18px;">
                    <select size=1 onchange="jumpMenu2('self',this,0)" class="body">
                    <!-- BEGIN DYNAMIC BLOCK: packageOption -->
                        <option value="index.php?selectedDomain={domainId}&amp;fuse=clients&amp;view=ShowDomainData" {domainSelected} >
                            {domainName}&nbsp;&nbsp;&nbsp;
                        </option>
                    <!-- END DYNAMIC BLOCK: packageOption -->
                    </select>
                </span>
                <br style="clear: both;">
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span class="rowlabel" style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;[l]Status[/l]: </span>
                <span class="red" style="font-weight:bold">{packageStatus}</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: selectPackage -->
        </form>

        <script language='Javascript'>
            var serverips = new Array();
            var serverplugin = new Array();
            serverips['0'] = new Array('', '');
            serverplugin['0'] = '';
            <!-- BEGIN DYNAMIC BLOCK: serverIPsArr -->
            serverips['{serverId}'] = new Array('{sharedIP}'{secondaryIP});
            serverplugin['{serverId}'] = '{serverPlugin}';
            <!-- END DYNAMIC BLOCK: serverIPsArr -->
        </script>
        <form name=mainform method=post action='index.php?fuse=clients&action=UpdateDomain' onKeyUp="highlight(event)" onClick="highlight(event)">
            <input type="hidden" name="domainid" value="{selectedDomainId}">
            <input type="hidden" name="userid" value="{userId}">
            <input type="hidden" name="id" value="{selectedDomainId}">
            <input type="hidden" name="selectedDomain" value="{selectedDomainId}">
            <!-- BEGIN DYNAMIC BLOCK: customerIdVar -->
            <input type=hidden name=customerid value="{customerId}">
            <!-- END DYNAMIC BLOCK: customerIdVar -->
            <!-- BEGIN DYNAMIC BLOCK: nextAction -->
            <input type="hidden" name="nextaction" value="{nextActionValue}">
            <!-- END DYNAMIC BLOCK: nextAction -->
            <!-- BEGIN DYNAMIC BLOCK: pendingClient -->
            <input type="hidden" name="" value="{pendingClientId}">
            <!-- END DYNAMIC BLOCK: pendingClient -->

            <!-- BEGIN DYNAMIC BLOCK: packageType -->
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]Package Type[/l]: </span>
                </span>
                <span style="float: left;width:280px;">
                    <select name=promotionid onChange='packageBillingChanged = true; GetPackage(); updateCustomFields();' class=body>
                    <!-- BEGIN DYNAMIC BLOCK: packageTypeOptions -->
                        <option value="{packageTypeOptionsValue}" {packageTypeOptionsSelected} >{packageTypeOptionsLabel}</option>
                    <!-- END DYNAMIC BLOCK: packageTypeOptions -->
                    </select>
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <!-- BEGIN DYNAMIC BLOCK: package -->
                    <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                        <span class='rowlabel'>[l]Package[/l]: </span>
                    </span>
                    <span style="float: left;width:280px;">
                        <select name="plan" class="body" onChange="switchPackages(this.value); packageBillingChanged = true;">
                        <!-- BEGIN DYNAMIC BLOCK: packageOptions -->
                            <option value="{packageOptionsValue}" {packageOptionsSelected} >{packageOptionsLabel}</option>
                        <!-- END DYNAMIC BLOCK: packageOptions -->
                        </select>&nbsp;&nbsp;{packageDescription}
                    </span>
                <!-- END DYNAMIC BLOCK: package -->
                <!-- BEGIN DYNAMIC BLOCK: simplePackageSection -->
                    <span style="float: left;width:120px">
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <span class='rowlabel'>[l]Package[/l]: </span>
                    </span>
                    <span style="float: left;width:280px;">
                        <select name=plan class=body onchange="switchPackages(this.value);"></select>
                    </span>
                <!-- END DYNAMIC BLOCK: simplePackageSection -->
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: packageType -->

            <!-- BEGIN DYNAMIC BLOCK: simplePackageTypeSection -->
            <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                <span class='rowlabel'>[l]Package[/l]: </span>
            </span>
            <span style="float: left;width:280px;">
                <input type="hidden" name="plan" value="{domainPlain}" />
                {planText}{planDescription}
            </span>
            <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: simplePackageTypeSection -->

            <script language="JavaScript" type="text/javascript">
                <!--
                var excludeFields = new Array();
                <!-- BEGIN DYNAMIC BLOCK: excludeFields -->
                    excludeFields[{excludeFieldsKey}] = "{excludeFieldsValues}";
                <!-- END DYNAMIC BLOCK: excludeFields -->
                //-->
            </script>
            <!-- BEGIN DYNAMIC BLOCK: customField -->
            <span id="CT_{fieldId}_span" style="">
                <span style="float: left; width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>{fieldLabel}: </span>
                </span>
                <span style="float: left;width:280px;">
                    {simpleValue}
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeText -->
                    <input class="{fieldClass}" type=text name='CT_{fieldId}' size="{fieldWidth}" value="{fieldValue}" />
                    <!-- END DYNAMIC BLOCK: customFieldTypeText -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeTextarea -->
                    <textarea name='CT_{fieldId}' class="body" cols='{fieldWidth}' {fieldDisabled}>{fieldValue}</textarea>
                    <!-- END DYNAMIC BLOCK: customFieldTypeTextarea -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDropdown -->
                    <select name="CT_{fieldId}">
                        <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDropdownOptions -->
                        <option size="30" value="{customFieldTypeDropdownOptionsValue}" {customFieldTypeDropdownOptionsValueSelected} >{customFieldTypeDropdownOptionsLabel}</option>
                        <!-- END DYNAMIC BLOCK: customFieldTypeDropdownOptions -->
                    </select>
                    <!-- END DYNAMIC BLOCK: customFieldTypeDropdown -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeCountry -->
                    <select name="CT_{fieldId}">
                        {countries}
                    </select>
                    <!-- END DYNAMIC BLOCK: customFieldTypeCountry -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDate -->
                    <input type="hidden" name="CTT_{fieldId}" id="CTT_{fieldId}" value="{typeDATE}"  >
                    <input type=text name=CT_{fieldId} id=CT_{fieldId} value="{dateString}" {readOnly}>&nbsp;&nbsp;
                    <img id="calButton_{fieldId}" src="{RELATIVE_PATH}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: customFieldTypeDate -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeDateSimple -->
                    <input type="hidden" name="CTT_{fieldId}" id="CTT_{fieldId}" value="{typeDATE}">{dateString}
                    <!-- END DYNAMIC BLOCK: customFieldTypeDateSimple -->
                    <!-- BEGIN DYNAMIC BLOCK: customFieldTypeOther -->
                    <select style='width:{fieldWidth}px;' name=CT_{fieldId}>
                        <option value=1 {yesSelected} >[l]Yes[/l]</option>
                        <option value=0 {noSelected} >[l]No[/l]</option>
                    </select>
                    <!-- END DYNAMIC BLOCK: customFieldTypeOther -->
                </span>
                    <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            </span>
            <!-- END DYNAMIC BLOCK: customField -->
        </div>
        <div class="viewFormFooter" style="width:400px;padding-bottom:0px;"></div>
        <br>
        <div id="addonsDiv"></div>

        <input type=hidden name='isDomainPackage' value="{isDomainPackage}" />
        <div id='domain_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:{displayDomainFrame}">
            <div class="viewHead2"><br style="clear: both;"></div>
            <center><strong>[l]Domain Information[/l]</strong></center>
            <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- BEGIN DYNAMIC BLOCK: domainNameInfo -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Domain Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;">
                    <input type=text size=30 name=DomainName value='{currentDomain}' class="required" onchange="CheckDomain(form,this.value)" >
                </span>
                <span id="message" style="float: text-align:center;left;width:100%;display:none">
                    <div style='color:red;background:#F0F6F5;text-align:center;border:0;font-weight:bold;' id='domainMessage'name='domainMessage'></div>
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">
                <div class='rowlabel' style='padding-left:10px;'>[l]Registration Length[/l]:</div>
                </span>
                <span style="float: left;width:280px;">
                  <select name="registration_years">
                  <!-- BEGIN DYNAMIC BLOCK: registrationLength -->
                    <option value="{registrationLengthValue}" {registrationLengthSelected} >{registrationLengthLabel}</option>
                  <!-- END DYNAMIC BLOCK: registrationLength -->
                  </select>
                </span>
                <div style="margin-left: 10px;width:95%;" class="viewFormInnerSep"><!-- --></div>
                <script type="text/javascript">
                  function getTLDFields(domain)
                  {
                      var selectedDomain = {selectedDomain};
                      domain = encodeURIComponent(domain);
                      new Ajax.Updater('tld_specific_fields', 'index.php?fuse=clients&view=GetTLDFields&domain='+domain+'&selectedDomain='+selectedDomain,
                                       {onLoading : function(request) {resetStatus(lang('Loading TLD attributes'))},
                                         onComplete: function(request) {unsetStatus(lang('Loaded'), 1000)}})
                  }
                </script>
                <div id="tld_specific_fields"></div>
                <!-- BEGIN DYNAMIC BLOCK: ifCurrentDomain -->
                    <script type="text/javascript">
                      onLoadFunctions.push(function() {getTLDFields('{currentDomain}');})
                    </script>
                <!-- END DYNAMIC BLOCK: ifCurrentDomain -->
                <input type=hidden id=r_DomainName name=r_DomainName value="Domain Name">
                <!-- BEGIN DYNAMIC BLOCK: domainHandling -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Domain Request[/l]: </div>
                </span>
                <span style="float: left;width:280px;">
                    {domainHandlingString}
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <!-- END DYNAMIC BLOCK: domainHandling -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Domain order ID[/l]: </div>
                </span>
                <span style="float: left;width:280px;">
                    <input type="text" size="30" name="registrar_orderid" value="{domainOrderId}" />&nbsp;&nbsp;
                    {domainOrderIdHelp}
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: domainNameInfo -->

            <!-- BEGIN DYNAMIC BLOCK: domainNameInfoSimple -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Domain Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">{currentDomain}</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: domainNameInfoSimple -->

            <!-- BEGIN DYNAMIC BLOCK: domainNameInfoPending -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Domain Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">[l]Not Available until Activation[/l]</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: domainNameInfoPending -->

            <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfo -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]User Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">
                    <input type=text size=30 name=UserName value="{domainUsername}" class="required" />
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <input type=hidden id=r_UserName name=r_UserName value="User Name">
            <!-- END DYNAMIC BLOCK: domainUsernameInfo -->

            <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfoSimple -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]User Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">{domainUsername}</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: domainUsernameInfoSimple -->

            <!-- BEGIN DYNAMIC BLOCK: domainUsernameInfoPending -->
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]User Name[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">[l]Not Available until Activation[/l]</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            <!-- END DYNAMIC BLOCK: domainUsernameInfoPending -->
            <span style="float: left;width:120px">
                <div class='rowlabel' style='padding-left:10px'>[l]Password[/l]: </div>
            </span>
            <span style="float: left;width:280px;height:18px;">
                {passwordField}
            </span>
            <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
        </div>
        <br />
        <!-- BEGIN DYNAMIC BLOCK: serverFields -->
            <input type=hidden name='isServerPackage' value=0>
            <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:none">
                <div class="viewHead2"><br style="clear: both;"></div>
                <center><strong>[l]Server Information[/l]</strong></center>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Server[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">
                    <table border=0 cellpadding=0 cellspacing=0>
                        <tr>
                            <td>
                                <select id=serverid name=serverid class=body onchange="switchServer(this.options[this.selectedIndex].value)">
                                </select>&nbsp;&nbsp;
                            </td>
                            <td>
                                <div class="warningtext">
                                    [l]Plugin[/l]: <span id="serverPluginName"></span>
                                </div>
                            </td>
                        </tr>
                    </table>
                </span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]IP Address[/l]: </span>
                </span>
                <span style="float: left;width:280px;height:18px;">
                    <input type="text" name="CT_1" value="{IPAddress}" />
                    <input type=checkbox name=shared onClick="EnableSelect(this);" {checkedString} />&nbsp;[l]Use Shared IP[/l]
                    <br>
                    <select name=serverips onChange="SetIP();">
                        <option value=0>[l]Available Server IPs[/l]</option>
                    </select>
                </span>
                <br><br><br>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            </div>
        <!-- END DYNAMIC BLOCK: serverFields -->

        <!-- BEGIN DYNAMIC BLOCK: serverFieldsCustomerView -->
            <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:block">
                <div class="viewHead2"><br style="clear: both;"></div>
                <center><strong>[l]Server Information[/l]</strong></center>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Server[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">{serverName}</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]IP Address[/l]: </span>
                </span>
                <span style="float: left;width:280px;height:18px;">{IPAddress}</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            </div>
        <!-- END DYNAMIC BLOCK: serverFieldsCustomerView -->

        <!-- BEGIN DYNAMIC BLOCK: serverFieldsCustomerViewPending -->
            <div id='server_frame' class="viewFormRows" style="border-bottom: 0px none; padding: 0px 0px 3px; display:block">
                <div class="viewHead2"><br style="clear: both;"></div>
                <center><strong>[l]Server Information[/l]</strong></center>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">
                    <div class='rowlabel' style='padding-left:10px'>[l]Server[/l]: </div>
                </span>
                <span style="float: left;width:280px;height:18px;">[l]Not Available until Activation[/l]</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
                <span style="float: left;width:120px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class='rowlabel'>[l]IP Address[/l]: </span>
                </span>
                <span style="float: left;width:280px;height:18px;">[l]Not Available until Activation[/l]</span>
                <div style='margin-left: 10px;width:95%;' class="viewFormInnerSep"><!-- --></div>
            </div>
        <!-- END DYNAMIC BLOCK: serverFieldsCustomerViewPending -->
        <br />

        <!-- BEGIN DYNAMIC BLOCK: billingSection -->
        <table width='400px' cellpadding='0' border='0' cellspacing='0'>
          <tr>
            <td class="snapshot-header-left"></td>
            <td class="snapshot-header">
              <font class=snapshot-header-text>[l]Billing Information[/l]</font>
            </td>
            <td class="snapshot-header" align="right">
            {TOGGLEIMG}
            </td>
            <td class="snapshot-header-right"></td>
          </tr>
        </table>

        <script language="JavaScript" type="text/javascript">
            if ({ADD_PACKAGE}) {
                document.write ("<div id=\"adminsection\">");
            }else if (get_cookie("adminsection") == "collapse") {
                document.write ("<div id=\"adminsection\" style=\"display:\">");
                document.images['toggle1'].src="{RELATIVE_PATH}images/collapse.gif";
            }else{
                document.write ("<div id=\"adminsection\" style=\"display:none\">");
                document.images['toggle1'].src="{RELATIVE_PATH}images/expand.gif";
            }
        </script>

        <table width=400 border="0">
          <tr class="{TR_DATECREATED}">
            <td width="120" class="labelright">&nbsp;&nbsp;&nbsp;[l]Date Created[/l]:</td>
            <td><input class="{INPUT_CLASS}" type="text" size="12" maxlength="10" name="dateActivated" id="dateActivated" value="{DATE_CREATED}" />
              &nbsp;&nbsp;<img id="calButton" src="{RELATIVE_PATH}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        : '{DATE_FORMAT}',
                  showsTime       : false,
                  button          : 'calButton',
                  weekNumbers     : false,
                  step            : 1
                });
              </script>
              <input type="hidden" name="r_dateActivated" value="Date Created" />
            </td>
          </tr>
          
          <tr class="{TR_RECURRING}">
            <td class="labelright">&nbsp;&nbsp;&nbsp;[l]Recurring[/l] ?</td>
            <td>
              <select name="recurring" class="body" onChange="packageBillingChanged = true; togglerecurringfields();">
                <option value="0" {NO_SELECTED}>[l]No[/l]</option>
                <option value="1" {YES_SELECTED}>[l]Yes[/l]</option>
              </select>
              &nbsp;&nbsp;{RECURRING_POPUP}
            </td>
          </tr>
        </table>

        <div id="recurringinfo" style="display:{DISP_RECURRING}">
          <table width="400" border="0">
            <tr class="{TR_CYCLE}">
              <td width="120" class="labelright">&nbsp;&nbsp;&nbsp;[l]Billing Cycle[/l]</td>
              <td>
                <select name="paymentterm" class="body" onChange="packageBillingChanged = true; getPackageAddons();">
                  <option value="1" {1_SEL}>[l]Monthly[/l]&nbsp;&nbsp;</option>
                  <option value="3" {3_SEL}>[l]Quarterly[/l]&nbsp;&nbsp;</option>
                  <option value="6" {6_SEL}>[l]Semiannually[/l]&nbsp;&nbsp;</option>
                  <option value="12" {12_SEL}>[l]Annually[/l]&nbsp;&nbsp;</option>
                  <option value="24" {24_SEL}>[l]Every 2 Years[/l]&nbsp;&nbsp;</option>
                </select>
              </td>
            </tr>
            
            <tr class="{TR_NEXTBILLDATE}">
              <td class="labelright">&nbsp;&nbsp;&nbsp;[l]Next Due Date[/l]</td>
              <td>
                <table width='100%' border='0' cellpadding='0' cellspacing='0'>
                  <tr>
                    <td><input class="{INPUT_CLASS}" type="text" size="12" maxlength="10" name="nextbilldate" id="nextbilldate" value="{NEXTBILLDATE}" />
                      &nbsp;&nbsp;<img id="calButton2" src="{RELATIVE_PATH}images/dynCalendar.gif" style="cursor:pointer"/>
                        <script type="text/javascript">
                          Calendar.setup({
                          inputField      : 'nextbilldate',
                          ifFormat        : '{DATE_FORMAT}',
                          showsTime       : false,
                          button          : 'calButton2',
                          weekNumbers     : false,
                          step            : 1
                        });
                      </script>
                    </td>
                    <input type="hidden" name="r_nextbilldate" value="Next Bill Date" />
                    <!-- BEGIN DYNAMIC BLOCK: subscriptions -->
                    <td align='right'>
                      {SUB_POPUP}
                      <input type="submit" class="button_large" style="margin-right:0" value="[lh]Reset Invoice[/lh]" onclick="if (AskAboutResettingRecurring2(form)){addExtraInfo();ToggleDomainRequirement();check(form,form.elements.length);};return false;" />
                    </td>
                    <!-- END DYNAMIC BLOCK: subscriptions -->
                  </tr>
                </table>
              </td>
            </tr>
            
            <tr class="{TR_PRICE}">
              <td class="labelright">&nbsp;&nbsp;&nbsp;[l]Price Override[/l]</td>
              <td><input type="text" id="price" name="price" size="12" value="{PRICE_VALUE}" {PRICE_DISABLED}/> <input type="checkbox" id="price_override" name="price_override" onclick="togglePriceOverride();" {PRICE_CHECKED} /> {PRICE_POPUP}<input type="hidden" id="altprice" name="altprice" value="0.00" /></td>
            </tr>
          </table>
        </div></div>
        <script type="text/javascript">GetPackage("{domainPlan}");updateCustomFields();</script>
        <div class="viewHead2" style="width: 400px"><br style="clear: both;"></div>
        <table id=buttonContainer width=400 border=0>
            <!-- BEGIN DYNAMIC BLOCK: addPackage -->
            <tr>
                <td colspan=2 align=left nowrap>
                    <input class=button_large type=submit value='[l]add package[/l]' onclick="addExtraInfo(); this.form.action='index.php?fuse=clients&action=SaveNewDomain'; ToggleDomainRequirement(); check(form,form.elements.length); return false;" class=body>
                </td>
            </tr>
            <!-- END DYNAMIC BLOCK: addPackage -->
            <div class='clearline'>&nbsp</div>
            <!-- BEGIN DYNAMIC BLOCK: showDomainData -->
            <input type=hidden name=resetgenerateinvoice value={resetGenerateInvoice} >
            <div id="actionsection">
                <div class="clearline"></div>
                {packageButtons}
                <div class="clearline"></div>
            </div>
            </td>
            <!-- END DYNAMIC BLOCK: showDomainData -->
            <td align=right valign=top>
            <input type=hidden name=removeArray value='{queryString}' />
            <input type=hidden name=customTagsArray value='{queryString2}' />
        </form>
    </td>
</tr>
</table>
        <!-- END DYNAMIC BLOCK: billingSection -->

        <!-- BEGIN DYNAMIC BLOCK: customerView -->
        <div id="actionsection">
            <div class="clearline"></div>
            {packageButtons}
            <div class="clearline"></div>
        </div>
            <!-- BEGIN DYNAMIC BLOCK: changeDomainPassword -->
            <input type=hidden name=onlypassword value='1'>
            <table width=400 border=0>
                <input type=hidden name=removeArray value='{queryString3}' />
                <!-- BEGIN DYNAMIC BLOCK: updateButton -->
                <tr>
                    <td align=left>
                        <input onclick='check(form,form.elements.length);return false;' class=button_medium type=submit value='[l]update[/l]' class=body>
                    </td>
                </tr>
                <!-- END DYNAMIC BLOCK: updateButton -->
            </table>
        </form>
            <!-- END DYNAMIC BLOCK: changeDomainPassword -->
        <!-- END DYNAMIC BLOCK: customerView -->
    <!-- END DYNAMIC BLOCK: packageSections -->
<!-- END DYNAMIC BLOCK: packageForm -->
