{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">
[l]To add a client please click[/l]
<a onclick='addClient()' href='javascript:void();'>[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 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);
    }
    
    if (document.images) {
        pic1= new Image(167,14);
        pic1.src="{RELATIVE_PATH}images/loading.gif";
    }
//-->
</script>


<form method=post name=customerdata action="index.php?fuse=clients&action=UpdateCustomer&CustomerTab=Password">
    <!-- BEGIN DYNAMIC BLOCK: updateCustomerForm -->
    <input type=hidden name=id value="{customerId}">
    <input type=hidden name=userid value="{customerId}">
    <!-- END DYNAMIC BLOCK: updateCustomerForm -->

    <div class="inside">
        <ul class="tabs">
            <!-- BEGIN DYNAMIC BLOCK: customerTabs -->
            <li{TABCLASS}><a href="index.php?fuse=clients&view=ShowCustomerData&CustomerTab={CUSTOMERTAB}">{CUSTOMERTABNAME}</a></li>
            <!-- END DYNAMIC BLOCK: customerTabs -->
        </ul>

        <!-- BEGIN DYNAMIC BLOCK: changePasswordNote -->
        <div class="table-summary" style="margin-bottom: 10px; margin-top: 10px;">
            <h2>[l]Note[/l]:</h2>
            [l]Supply only if you want this password changed[/l]
        </div>
        <!-- END DYNAMIC BLOCK: changePasswordNote -->

        <div class="tab">
            <div id="errMessages" valign=top>
                <font class="redtext"><b>{MESSAGES}&nbsp;</b></font>
            </div>
            <br>
            <h5>{passwordHeader}</h5>
            <dl class="form">
                <!-- BEGIN DYNAMIC BLOCK: changePassword -->
                <dt><label>[l]New Password[/l]</label></dt>
                <dd>
                    <input class={class} type=password name=new_password size=30 autocomplete="off">
                </dd>
                
                <dt><label>[l]Confirm password[/l]</label></dt>
                <dd>
                    <input class={class} type=password name=confirm_password size=30 autocomplete="off">
                </dd>
                <!-- END DYNAMIC BLOCK: changePassword -->
            </dl>

            <!-- BEGIN DYNAMIC BLOCK: passwordButtons2 -->
            <p class="buttons">
                <input type=submit class=button value='[l]update[/l]' onclick='if (checkPassword(form)) {check(form,form.elements.length);} return false;' class=body>
            </p>
            <!-- END DYNAMIC BLOCK: passwordButtons2 -->
            <input type=hidden name=removeArray value='{queryString1}'>
        </div>
        <br class="clearboth" />
    </div>
</form>
<!-- END DYNAMIC BLOCK: profile -->
