document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('On Error Resume Next<br />');
document.write('strDebug=<span style="color: #cc66cc;">1</span> <span style="color: #ff0000;">\'set to 0 to turn on Debugging statements<br />');
document.write('If strDebug=0 Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; wscript.echo &quot;Debugging is ON&quot;<br />');
document.write('End If<br />');
document.write('<br />');
document.write('\'</span>Define the password seed strings<br />');
document.write('strSimple=<span style="color: #ff0000;">&quot;ab*c@def!gh2ij3kl4m#n5op$6qr7st8u%v9w^x&amp;y(z)&quot;</span><br />');
document.write('strComplex=<span style="color: #ff0000;">&quot;abc8defGHIJghijkl3mnoLMNpqr2st^&amp;)uvwxyz9ABCDE4F7KO6PQRS*(TUVWXYZ!@#5$%_+-=&quot;</span><br />');
document.write('strInsane=<span style="color: #ff0000;">&quot;abcd_+e-=fghi2jklmQR9Sn5opMNqrs3tuvIJw4x*(;yzABCD),&gt;EFGH7K@#$%^L8OPTUVW./?XYZ!&amp;\'[]}{<span style="color: #000099; font-weight: bold;">\|</span>~`:&quot;</span><br />');
document.write('<br />');
document.write('<span style="color: #b1b100;">If</span> wscript.<span style="color: #202020;">arguments</span>.<span style="color: #202020;">count</span> &gt;<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> InStr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,Wscript.<span style="color: #202020;">arguments</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #ff0000;">&quot;?&quot;</span>,vbTextCompare<span style="color: #66cc66;">&#41;</span>&lt;&gt;<span style="color: #ff0000;">&quot;0&quot;</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowHelp<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('End <span style="color: #b1b100;">If</span><br />');
document.write('<br />');
document.write('strTitle=<span style="color: #ff0000;">&quot;Random Password Generator&quot;</span><br />');
document.write('<br />');
document.write('<span style="color: #b1b100;">If</span> Wscript.<span style="color: #202020;">arguments</span>.<span style="color: #202020;">count</span> &lt; <span style="color: #cc66cc;">1</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strLength=InputBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;How long do you want the password to be?&quot;</span>,strTitle,<span style="color: #ff0000;">&quot;7&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strLength=<span style="color: #ff0000;">&quot;&quot;</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;No value entered or job cancelled.&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('<span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strLength=wscript.<span style="color: #202020;">arguments</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('End <span style="color: #b1b100;">If</span><br />');
document.write('<br />');
document.write('<span style="color: #b1b100;">If</span> Wscript.<span style="color: #202020;">arguments</span>.<span style="color: #202020;">count</span> &lt; <span style="color: #cc66cc;">2</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strSeed=InputBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;How complex do you want it to be?&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;1 - simple&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;2 - complex&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;3 - insane&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;4 - Help&quot;</span>,strTitle,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Select <span style="color: #b1b100;">Case</span> strSeed<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strSimple<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strComplex<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">3</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strInsane<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">4</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowHelp<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Invalid selection. Please try again.&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />');
document.write('<span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strSeed=Wscript.<span style="color: #202020;">Arguments</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Select <span style="color: #b1b100;">Case</span> strSeed<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strSimple<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strComplex<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">3</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strSeed=strInsane<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">4</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowHelp<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Invalid selection. Please try again.&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />');
document.write('End <span style="color: #b1b100;">If</span><br />');
document.write('<br />');
document.write('<span style="color: #b1b100;">If</span> Wscript.<span style="color: #202020;">Arguments</span>.<span style="color: #202020;">Count</span> &lt; <span style="color: #cc66cc;">3</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; askUnique=InputBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Do you want all unique characters? Enter 0 for Yes and 1 for No&quot;</span>,strTitle,<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Select <span style="color: #b1b100;">Case</span> askUnique<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strUnique=<span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">0</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strUnique=<span style="color: #cc66cc;">0</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Invalid response or operation cancelled&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />');
document.write('<span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; askUnique=Wscript.<span style="color: #202020;">Arguments</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Select <span style="color: #b1b100;">Case</span> askUnique<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strUnique=<span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #cc66cc;">0</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strUnique=<span style="color: #cc66cc;">0</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Case</span> <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Invalid response or operation cancelled&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End Select<br />');
document.write('End <span style="color: #b1b100;">If</span><br />');
document.write('<br />');
document.write('<span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;strUnique is set to &quot;</span> &amp; strUnique<br />');
document.write('End <span style="color: #b1b100;">If</span><br />');
document.write('<br />');
document.write('Wscript.<span style="color: #202020;">Echo</span> <span style="color: #ff0000;">&quot;Password is &quot;</span> &amp; strPass<span style="color: #66cc66;">&#40;</span>strLength,strSeed,strUnique,strDebug<span style="color: #66cc66;">&#41;</span><br />');
document.write('wscript.<span style="color: #202020;">quit</span><br />');
document.write('<br />');
document.write('<span style="color: #000000; font-weight: bold;">Function</span> GenIt<span style="color: #66cc66;">&#40;</span>MFactor<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Randomize<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; GenIt=<span style="color: #993333;">INT</span><span style="color: #66cc66;">&#40;</span>RND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>*MFactor<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+1</span><br />');
document.write('end <span style="color: #000000; font-weight: bold;">Function</span><br />');
document.write('<br />');
document.write('<span style="color: #000000; font-weight: bold;">Function</span> StrPass<span style="color: #66cc66;">&#40;</span>strLength,strSeed,strUnique,strDebug<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">\'strLength is how long a password to generate<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; \'</span>strSeed is the source <span style="color: #993333;">string</span> to characters to build the password from<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strPass=<span style="color: #ff0000;">&quot;&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Building a &quot;</span> &amp; strLength &amp; <span style="color: #ff0000;">&quot; character password from:&quot;</span> &amp; VBCRLF &amp; strSeed &amp; VbCrLf<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; MFactor=Len<span style="color: #66cc66;">&#40;</span>strSeed<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">For</span> x=<span style="color: #cc66cc;">1</span> to strLength<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strNum=GenIt<span style="color: #66cc66;">&#40;</span>MFactor<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strNext=Mid<span style="color: #66cc66;">&#40;</span>strSeed,strNum,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strUnique=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Checking if &quot;</span> &amp; strNext &amp; <span style="color: #ff0000;">&quot; has already been used&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strPass=strPass &amp; ChkNext<span style="color: #66cc66;">&#40;</span>strNext,strPass,strSeed,strDebug<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strPass=strPass&amp;strNext<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Next<br />');
document.write('End <span style="color: #000000; font-weight: bold;">Function</span><br />');
document.write('<br />');
document.write('<span style="color: #000000; font-weight: bold;">Function</span> ChkNext<span style="color: #66cc66;">&#40;</span>strNext,strPass,strSeed,strDebug<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strTmp=strNext<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; MFactor=Len<span style="color: #66cc66;">&#40;</span>strSeed<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> InStr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,strPass,strNext,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> &lt;&gt;<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;Duplicate character&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strNum=GenIt<span style="color: #66cc66;">&#40;</span>MFactor<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;New number is &quot;</span> &amp; strNum<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strNext=Mid<span style="color: #66cc66;">&#40;</span>strSeed,strNum,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;New character to check is &quot;</span> &amp; strNext<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strTmp=ChkNext<span style="color: #66cc66;">&#40;</span>strNext,strPass,strSeed,strDebug<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;At end of function strTmp=&quot;</span>&amp;strTmp<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; ChkNext=strTmp<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> strDebug=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> <span style="color: #ff0000;">&quot;ending ChkNext function&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End <span style="color: #b1b100;">If</span><br />');
document.write('End <span style="color: #000000; font-weight: bold;">Function</span><br />');
document.write('<br />');
document.write('Sub ShowHelp<span style="color: #66cc66;">&#40;</span>Detail<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; msg=VBCRLF &amp; <span style="color: #ff0000;">&quot;RANDPASS.VBS HELP --&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; This script will generate a random password of X length. It will build the password from seed strings of increasing complexity.&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;1 - simple:&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; &quot;</span> &amp; strSimple &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;2 - complex:&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; &quot;</span> &amp; strComplex &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;3 - insane:&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; &quot;</span> &amp; strInsane &amp; VBCRLF &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;The numbers 0 and 1 have been removed to avoid confusion with the letters O and L.&quot;</span> &amp; VbCrLf<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> Detail=<span style="color: #cc66cc;">0</span> Then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> msg<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg=msg &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; Password_length should be a number between 4 and 127, although a limit of 14 is &quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;recommended for Win9x clients. Default is 7.&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; Complexity must be 1,2 or 3.&quot;</span> &amp; VBCLRF &amp; <span style="color: #ff0000;">&quot; A uniqueness value of 0 will make each password character&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;unique. A value of 1 [default] will allow repeated characters.&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot; If you don\'t pass values at the command prompt, you will be prompted for each value.&quot;</span> &amp; VBCRLF &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;Usage: cscript //nologo RandPass.vbs [password_length]|[?] [complexity] [uniqueness]&quot;</span> &amp; VBCRLF &amp; <span style="color: #ff0000;">&quot;cscript randpass.vbs ? will display this help message.&quot;</span> &amp; VbCrLf<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">echo</span> msg<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">If</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; wscript.<span style="color: #202020;">quit</span><br />');
document.write('End Sub<br />');
document.write('&nbsp;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/150/1/" target="_blank">byteMyCode</a>.</div>');
