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 = "0e1863e5ad58962ff8dc77a999cd9453!0123456789:?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^abcdefghijklmnopqrstuvwxyzcf1b06d79b55fd8780f325e1aea80936"; 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('');