function suggestPassword(passwordlength,complex) { var passwordlength = 8;var complex = "yes"; var passwd = ''; // This var is generated by PHP on the server side to add another level of complexity to the randomization of the password var pwchars = "3360ecbab3434bcb1ba1230c3d805d0b!0123456789:?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^abcdefghijklmnopqrstuvwxyz16bd970b38c989d0382be18b53e97ed9"; if (complex == 'simple') { var temp = ''; for (i=0;i' || temp == '.' ||temp == ',' || temp == '_' || temp == '!' || temp == ';' || temp == ':' || temp == '@' || temp == '#' || temp == '%' || temp == '^' || temp == '&' || temp == '*' || temp == '(' || temp == ')' || temp == '?' || temp == '-' || temp == '+' || temp == '=' || temp == '[' || temp == ']' || temp == '{' || temp == '}') { temp = pwchars.charAt(Math.floor(Math.random()*pwchars.length)); } passwd+=temp } } else { for (i=0;i'); document.write('
Password suggested by
'); document.write('Pass Nerd
'); document.write('
'); document.write(suggestPassword()); document.write('
'); document.write('');