3 border: 1px solid #7e0079;
7 background-color: #ffffff;
11 <A ID="<%$pre%>link" HREF="javascript:void(0)" onclick="<%$pre%>toggle(true)">(<% mt('change') %>)</A>
12 <DIV ID="<%$pre%>form" CLASS="passwordbox">
13 <FORM METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html">
14 <INPUT TYPE="hidden" NAME="svcnum" VALUE="<% $svc_acct->svcnum |h%>">
15 <INPUT TYPE="text" ID="<%$pre%>password" NAME="password" VALUE="<% $curr_value |h%>">
16 <& /elements/random_pass.html, $pre.'password', 'randomize' &>
17 <INPUT TYPE="submit" VALUE="change">
18 <INPUT TYPE="button" VALUE="cancel" onclick="<%$pre%>toggle(false)">
19 <DIV ID="<%$pre%>password_result" STYLE="font-size: smaller"></DIV>
20 <& '/elements/validate_password.html',
21 'fieldid' => $pre.'password',
22 'svcnum' => $svc_acct->svcnum,
26 <BR><SPAN STYLE="color: #ff0000"><% $error |h %></SPAN>
30 <SCRIPT TYPE="text/javascript">
31 function <%$pre%>toggle(val) {
32 document.getElementById('<%$pre%>form').style.display =
33 val ? 'inline-block' : 'none';
34 document.getElementById('<%$pre%>link').style.display =
35 val ? 'none' : 'inline';
43 my $svc_acct = $opt{'svc_acct'};
44 my $curr_value = $opt{'curr_value'} || '';
45 my $pre = 'changepw'.$svc_acct->svcnum.'_';
46 my $error = $cgi->param($pre.'error');