<div style="border-top:1px solid #D4D4D4;padding-bottom: 17px;"></div>
<form method="post" name="customerdata" action="index.php?fuse=clients&amp;action=Admin_UpdateProfileContact">
<input type="hidden" name="id" value="{customerId}"></input>
<input type="hidden" name="userid" value="{customerId}"></input>
<input type="hidden" name="packageaction" value="0"></input>
<input type="hidden" name="packageplugin" value="0"></input>

<span style="padding-left:20px;">
    <font color="red">
        {MESSAGES}
    </font>
</span>

<dl class="form">

    <!-- BEGIN DYNAMIC BLOCK: customFields -->
    <!-- style class="{cssClass}"-->
    <dt><label>{rowLabel}</label></dt>
    <dd class="ddelement" style="width:300px;">
        <!-- BEGIN DYNAMIC BLOCK: typeLanguage -->
        <select name='CT_{fieldId}' style="width:248px;" {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}' style="width:236px; height:65px;" cols='{fieldWidth}' {disabled} >{value}</textarea>
        <!-- END DYNAMIC BLOCK: typeTextarea -->

        <!-- BEGIN DYNAMIC BLOCK: typeDropdown -->
        <select name="CT_{fieldId}" style="width:248px;" {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 -->
        <script type="text/javascript">
            countryVAR = "CT_{fieldId}";
        </script>

        <select name="CT_{fieldId}" id="CT_{fieldId}" onChange="getTax();" style="width:248px;" {disabled} >
            {countryOptions}
        </select>
        <!-- END DYNAMIC BLOCK: typeCountry -->

        <!-- BEGIN DYNAMIC BLOCK: typeYesNo -->
        <select name="CT_{fieldId}" style="width:248px;" {disabled} >
            <option value="1" {yesSelected} >[l]Yes[/l]</option>
            <option value="0" {noSelected} >[l]No[/l]</option>
        </select>
        <!-- END DYNAMIC BLOCK: typeYesNo -->

        <!-- BEGIN DYNAMIC BLOCK: typeDate -->
        <input type="hidden" name="CTT_{fieldId}" id="CTT_{fieldId}" value="{typeDateConstant}"></input>
        <input type="text" name="CT_{fieldId}" id="CT_{fieldId}" style="width:223px;" value="{value}" {readOnly}></input>&nbsp;&nbsp;

            <script type="text/javascript">
                datefields.push("CT_{fieldId}");
            </script>
            <!-- BEGIN DYNAMIC BLOCK: canEditDate -->
            <!--{dateFormat}-->
            <!-- END DYNAMIC BLOCK: canEditDate -->
        <!-- END DYNAMIC BLOCK: typeDate -->

        <!-- BEGIN DYNAMIC BLOCK: typeVAT -->
        <script type="text/javascript">
            var vatVAR = "CT_{fieldId}";
        </script>
        <span id="vat_country"></span>
        <!-- END DYNAMIC BLOCK: typeVAT -->

        <!-- BEGIN DYNAMIC BLOCK: typeSimple -->
        <input type="text" class="x-form-text x-form-field" name="CT_{fieldId}" id="CT_{fieldId}" style="width:240px;" value="{value}" {additionalSettings} />
        <!-- END DYNAMIC BLOCK: typeSimple -->

        <!-- BEGIN DYNAMIC BLOCK: typeState -->
        <script type="text/javascript">
            var stateVAR = "CT_{fieldId}";
        </script>
        <!-- END DYNAMIC BLOCK: typeState -->
        
        <!-- BEGIN DYNAMIC BLOCK: VATmessages -->
        <div id="vat_valid" style="display:none">[l]Valid VAT Number[/l]</div>
        <div id="vat_invalid" style="display:none">[l]Invalid VAT Number[/l] <a href="javascript:getTax();"><font color=blue>[l]Retry[/l]</font></a></div>
        <div id="vat_error" style="display:none">[l]Unable to validate at the moment.[/l] <a href="javascript:getTax();"><font color=blue>[l]Retry[/l]</font></a></div>
        <!-- END DYNAMIC BLOCK: VATmessages -->

        <!-- BEGIN DYNAMIC BLOCK: typeLabel -->
        {value}
        <!-- END DYNAMIC BLOCK: typeLabel -->

        <!-- BEGIN DYNAMIC BLOCK: organization -->
        &nbsp;<input type='checkbox' name='isOrganization' {checkedIsOrganization} ></input>&nbsp;&nbsp;<img id="organizationtip" class="tip-target" src="../templates/admin/images/information-button.png"/>

        <!-- END DYNAMIC BLOCK: organization -->

        <!-- BEGIN DYNAMIC BLOCK: organizationHidden -->
        <input type="hidden" name="isOrganization" value="on"></input>
        <!-- END DYNAMIC BLOCK: organizationHidden -->
    </dd>

        <!-- BEGIN DYNAMIC BLOCK: someOtherHiddenFields -->
        <input type="hidden" name="{fieldName}" value="{fieldValue}"></input>
        <!-- END DYNAMIC BLOCK: someOtherHiddenFields -->
    <!-- END DYNAMIC BLOCK: customFields -->
</dl>
<div style="clear:both;padding-top:10px;"></div>

<input type="hidden" name="removeArray" value='{queryString1}'></input>
<input type="hidden" name="customTagsArray" value='{queryString2}'></input>
<!-- BEGIN DYNAMIC BLOCK: saveCustomerButton -->
<input type="submit" style="float:left" class="button" value='[l]update[/l]' onclick='check(form,form.elements.length); return false;'></input>
<!-- END DYNAMIC BLOCK: saveCustomerButton -->

<script type="text/javascript">
    var mainForm = document.forms['customerdata'];
    getTax();
</script>

</form>

<div style="padding-left:10px;float:left">
    <form method="post" action="index.php?fuse=clients&amp;action=DeleteClient" >
        <input type="hidden" name="deleteid" value="{customerId}"></input>
        <input type="hidden" name="deletewithplugin" value="0"></input>
        <input type="hidden" name="nextaction" value="ViewUsers"></input>
        <!-- BEGIN DYNAMIC BLOCK: deleteCustomerButton -->
            <input type="button" class="button" value='[l]delete[/l]' onClick='deleteCustomer(this.form); return false;'></input>
        <!-- END DYNAMIC BLOCK: deleteCustomerButton -->
    </form>
</div>