%doc>
To validate passwords via javascript/xmlhttp:
<& '/elements/validate_password.html',
fieldid => 'password_field',
svcnum => $svcnum
&>
The ID of the input field can be anything; the ID of the DIV in which to display results
should be the input id plus '_result'.
%doc>
<& '/elements/xmlhttp.html',
'url' => $p.'misc/xmlhttp-validate_password.html',
'subs' => [ 'validate_password' ],
'method' => 'POST', # important not to put passwords in url
&>
<%init>
my %opt = @_;
%init>