ÿþf u n c t i o n   p a s s w o r d S t r e n g t h ( p a s s w o r d )  
 {  
 	 v a r   d e s c   =   n e w   A r r a y ( ) ;  
 	 d e s c [ 0 ]   =   " (/" ;  
 	 d e s c [ 1 ]   =   " .ÌDÌ  69ÌA" ;  
 	 d e s c [ 2 ]   =   " 69ÌA" ;  
 	 d e s c [ 3 ]   =   " E*H37" ;  
 	 d e s c [ 4 ]   =   " .H(" ;  
 	 d e s c [ 5 ]   =   " 9'DÌ" ;  
  
 	 v a r   s c o r e       =   0 ;  
  
 	 / / i f   p a s s w o r d   b i g g e r   t h a n   6   g i v e   1   p o i n t  
 	 i f   ( p a s s w o r d . l e n g t h   >   6 )   s c o r e + + ;  
  
 	 / / i f   p a s s w o r d   h a s   b o t h   l o w e r   a n d   u p p e r c a s e   c h a r a c t e r s   g i v e   1   p o i n t 	  
 	 i f   (   (   p a s s w o r d . m a t c h ( / [ a - z ] / )   )   & &   (   p a s s w o r d . m a t c h ( / [ A - Z ] / )   )   )   s c o r e + + ;  
  
 	 / / i f   p a s s w o r d   h a s   a t   l e a s t   o n e   n u m b e r   g i v e   1   p o i n t  
 	 i f   ( p a s s w o r d . m a t c h ( / \ d + / ) )   s c o r e + + ;  
  
 	 / / i f   p a s s w o r d   h a s   a t   l e a s t   o n e   s p e c i a l   c a r a c t h e r   g i v e   1   p o i n t  
 	 i f   (   p a s s w o r d . m a t c h ( / . [ ! , @ , # , $ , % , ^ , & , * , ? , _ , ~ , - , ( , ) ] / )   ) 	 s c o r e + + ;  
  
 	 / / i f   p a s s w o r d   b i g g e r   t h a n   1 2   g i v e   a n o t h e r   1   p o i n t  
 	 i f   ( p a s s w o r d . l e n g t h   >   1 2 )   s c o r e + + ;  
  
 	   d o c u m e n t . g e t E l e m e n t B y I d ( " p a s s w o r d D e s c r i p t i o n " ) . i n n e r H T M L   =   d e s c [ s c o r e ] ;  
 	   d o c u m e n t . g e t E l e m e n t B y I d ( " p a s s w o r d S t r e n g t h " ) . c l a s s N a m e   =   " s t r e n g t h "   +   s c o r e ;  
 }  
 
