3 border: 1px solid #7e0079;
7 background-color: #ffffff;
11 <A ID="<%$pre%>link" HREF="#" 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)">
20 <BR><SPAN STYLE="color: #ff0000"><% $error |h %></SPAN>
24 <SCRIPT TYPE="text/javascript">
25 function <%$pre%>toggle(val) {
26 document.getElementById('<%$pre%>form').style.display =
27 val ? 'inline-block' : 'none';
28 document.getElementById('<%$pre%>link').style.display =
29 val ? 'none' : 'inline';
37 my $svc_acct = $opt{'svc_acct'};
38 my $curr_value = $opt{'curr_value'} || '';
39 my $pre = 'changepw'.$svc_acct->svcnum.'_';
40 my $error = $cgi->param($pre.'error');