ÿþ< ! - -   S t a r t   s c r i p t   - - - - -  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   M D 5 	 	 -   c l a s s   e n c a p s u l a t i n g   M D 5   a l g o r i t h m  
 *  
 *   C o p y r i g h t   ( c )   A c t i n i c   S o f t w a r e   L t d   2 0 0 0  
 *   D e r i v e d   f r o m   t h e   R S A   D a t a   S e c u r i t y ,   I n c .   M D 5   M e s s a g e - D i g e s t   A l g o r i t h m  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D W o r d 	 	 -   c o n s t r u c t o r   c l a s s   f o r   3 2   b i t   u n s i g n e d   o b j e c t  
 *  
 *   T h i s   i s   f o r c e d   u p o n   u s   b y   a   b u g   i n   t h e   i m p l e m e n t a t i o n   o f   b i t w i s e  
 *   o p e r a t o r s   i n   t h e   J a v a S c r i p t   f o r   I E 4   &   I E 5   o n   t h e   M a c .  
 *  
 *   P a r a m s : 	 n H i g h 	 -   h i g h   o r d e r   w o r d  
 * 	 	 	 n L o w 	 -   l o w   o r d e r   w o r d  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D W o r d ( n H i g h ,   n L o w )  
       {  
       t h i s . n L o w   =   n L o w ; 	 	 	 	 	 	 / /   S e t   l o w - o r d e r   v a l u e  
       t h i s . n H i g h   =   n H i g h ; 	 	 	 	 	 	 / /   S e t   h i g h   o r d e r   v a l u e  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D R o t a t e L e f t 	 -   r o t a t e   D W o r d   l e f t   b y   n   b i t s  
 *  
 *   P a r a m s : 	 x 	 	 -   D W o r d   v a l u e   t o   r o t a t e  
 * 	 	 	 n C o u n t 	 -   n u m b e r   o f   b i t s  
 *  
 *   R e t u r n s : 	 N e w   v a r i a b l e   w i t h   s h i f t e d   r e s u l t  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D R o t a t e L e f t ( x ,   n C o u n t )  
       {  
       v a r   n R e s u l t ,   n C a r r y ;  
       / /  
       / /   I f   i t ' s   m o r e   t h a n   1 6   b i t s ,   w e   c a n   o p t i m i s e   t h e   f i r s t   p a r t  
       / /   b y   s i m p l y   s w a p p i n g   t h e   w o r d s  
       / /  
       i f   ( n C o u n t   > =   1 6 )  
             {  
             n R e s u l t   =   n e w   D W o r d ( x . n L o w ,   x . n H i g h ) ; 	 / /   S w a p   w o r d s  
             n C o u n t   - =   1 6 ; 	 	 	 	 	 	 	 / /   A d j u s t   c o u n t  
             }  
       e l s e  
             {  
             n R e s u l t   =   n e w   D W o r d ( x . n H i g h ,   x . n L o w ) ; 	 / /   N o r m a l   o r d e r  
             }  
       / /  
       / /   N o w   r o t a t e   w h a t ' s   l e f t  
       / /  
       i f   ( n C o u n t   >   0 )  
             {  
             n C a r r y   =   n R e s u l t . n H i g h   > > >   ( 1 6   -   n C o u n t ) ; 	 / /   S a v e   t o p   b i t s   o f   h i g h   w o r d  
             n R e s u l t . n H i g h   =   ( ( n R e s u l t . n H i g h   < <   n C o u n t )   |   ( n R e s u l t . n L o w   > > >   ( 1 6   -   n C o u n t ) ) )   &   0 x F F F F ;  
             n R e s u l t . n L o w   =   ( ( n R e s u l t . n L o w   < <   n C o u n t )   |   n C a r r y )   &   0 x F F F F ;  
             }  
       r e t u r n ( n R e s u l t ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D A d d 	 -   3 2   b i t   a d d i t i o n  
 *  
 *   P a r a m s : 	 a ,   b 	 -   v a l u e s   t o   a d d  
 *  
 *   R e t u r n s : 	 3 2   b i t   a d d i t i o n   o f   t h e   t w o  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D A d d ( a ,   b )  
       {  
       v a r   n L o w   =   ( a . n L o w   +   b . n L o w ) ; 	 	 	 	 	 / /   A d d   l o w - o r d e r   w o r d s  
  
       r e t u r n ( n e w   D W o r d ( ( a . n H i g h   +   b . n H i g h   +   ( n L o w   > >   1 6 ) )   &   0 x F F F F ,   n L o w   &   0 x F F F F ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D A n d 	 -   3 2   b i t   b i t w i s e   A N D     ( t o   d e a l   w i t h   M a c   b u g )  
 *  
 *   P a r a m s : 	 a ,   b 	 -   v a l u e s   t o   a n d   t o g e t h e r  
 *  
 *   R e t u r n s : 	 3 2   b i t   A N D   o f   t h e   t w o  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D A n d ( a ,   b )  
       {  
       r e t u r n ( n e w   D W o r d ( ( a . n H i g h   &   b . n H i g h ) ,   ( a . n L o w   &   b . n L o w ) ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D O r 	 -   3 2   b i t   b i t w i s e   O R     ( t o   d e a l   w i t h   M a c   b u g )  
 *  
 *   P a r a m s : 	 a ,   b 	 -   v a l u e s   t o   a n d   t o g e t h e r  
 *  
 *   R e t u r n s : 	 3 2   b i t   O R   o f   t h e   t w o  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D O r ( a ,   b )  
       {  
       r e t u r n ( n e w   D W o r d ( ( a . n H i g h   |   b . n H i g h ) ,   ( a . n L o w   |   b . n L o w ) ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D X o r 	 -   3 2   b i t   b i t w i s e   O R     ( t o   d e a l   w i t h   M a c   b u g )  
 *  
 *   P a r a m s : 	 a ,   b 	 -   v a l u e s   t o   a n d   t o g e t h e r  
 *  
 *   R e t u r n s : 	 3 2   b i t   O R   o f   t h e   t w o  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D X o r ( a ,   b )  
       {  
       r e t u r n ( n e w   D W o r d ( ( a . n H i g h   ^   b . n H i g h ) ,   ( a . n L o w   ^   b . n L o w ) ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D N o t 	 -   3 2   b i t   b i t w i s e   i n v e r s i o n   ( t o   d e a l   w i t h   M a c   b u g )  
 *  
 *   P a r a m s : 	 a 	 -   v a l u e  
 *  
 *   R e t u r n s : 	 3 2   b i t   i n v e r s i o n  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D N o t ( a )  
       {  
       r e t u r n ( n e w   D W o r d ( a . n H i g h   ^   0 x F F F F ,   a . n L o w   ^   0 x F F F F ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D F ,   D G ,   D H ,   a n d   D I   t r a n s f o r m a t i o n s   f o r   r o u n d s   1 ,   2 ,   3 ,   a n d   4  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D F ( a ,   b ,   c ,   d ,   x ,   s ,   a c )  
       {  
       r e t u r n ( D A d d ( D R o t a t e L e f t ( D A d d ( a ,   D A d d ( D A d d ( D O r ( D A n d ( b ,   c ) ,   D A n d ( D N o t ( b ) ,   d ) ) ,   x ) ,   a c ) ) ,   s ) ,   b ) ) ;  
       }  
  
 f u n c t i o n   D G ( a ,   b ,   c ,   d ,   x ,   s ,   a c )  
       {  
       r e t u r n ( D A d d ( D R o t a t e L e f t ( D A d d ( a ,   D A d d ( D A d d ( D O r ( D A n d ( b ,   d ) ,   D A n d ( c ,   D N o t ( d ) ) ) ,   x ) ,   a c ) ) ,   s ) ,   b ) ) ;  
       }  
  
 f u n c t i o n   D H ( a ,   b ,   c ,   d ,   x ,   s ,   a c )  
       {  
       r e t u r n ( D A d d ( D R o t a t e L e f t ( D A d d ( a ,   D A d d ( D A d d ( D X o r ( D X o r ( b ,   c ) ,   d ) ,   x ) ,   a c ) ) ,   s ) ,   b ) ) ;  
       }  
  
 f u n c t i o n   D I ( a ,   b ,   c ,   d ,   x ,   s ,   a c )  
       {  
       r e t u r n ( D A d d ( D R o t a t e L e f t ( D A d d ( a ,   D A d d ( D A d d ( D X o r ( c ,   D O r ( b ,   D N o t ( d ) ) ) ,   x ) ,   a c ) ) ,   s ) ,   b ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D S t r i n g T o B l o c k s   -   c o n v e r t   t h e   i n p u t   s t r i n g   t o   a n   a r r a y  
 *  
 *   P a r a m s : 	 s I n p u t  
 *  
 *   R e t u r n s : 	 A r r a y   o f   b l o c k s   w i t h   l e n g t h   a n d   p a d d i n g  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D S t r i n g T o B l o c k s ( s I n p u t )  
       {  
       v a r 	 n B l o c k C o u n t   =   ( ( s I n p u t . l e n g t h   +   8 )   > >   6 )   +   1 ; 	 / /   W o r k   o u t   w h a t   w e ' l l   n e e d  
       v a r 	 B l o c k s   =   n e w   A r r a y ( n B l o c k C o u n t   *   1 6 ) ; 	 / /   A l l o c a t e   t h e   a r r a y  
       v a r 	 n I n d e x ,   n B y t e ;  
  
       f o r   ( n I n d e x   =   0 ;   n I n d e x   <   n B l o c k C o u n t   *   1 6 ;   n I n d e x + + )  
             {  
             B l o c k s [ n I n d e x ]   =   n e w   D W o r d ( 0 ,   0 ) ; 	 	 	 / /   Z e r o   o u t   t h e   b l o c k  
             }  
 / /  
 / /   F i l l   t h e   b l o c k s   w i t h   t h e   s t r i n g .   T h i s   g e t s   m o d e r a t e l y   c o m p l i c a t e d  
 / /   s i n c e   w e   h a v e   t o   a l l o w   f o r   t h e   u p p e r   a n d   l o w e r   w o r d s  
 / /  
       f o r   ( n I n d e x   =   0 ;   n I n d e x   <   s I n p u t . l e n g t h ;   n I n d e x + + )  
             {  
             n B y t e   =   n I n d e x   &   0 x 3 ; 	 	 	 	 	 / /   G e t   n y b b l e   i n d e x   a s   0 - 3  
             i f   ( n B y t e   = =   0 )  
                   {  
                   B l o c k s [ n I n d e x   > >   2 ] . n L o w   =   s I n p u t . c h a r C o d e A t ( n I n d e x ) ;  
                   }  
             i f   ( n B y t e   = =   1 )  
                   {  
                   B l o c k s [ n I n d e x   > >   2 ] . n L o w   | =   s I n p u t . c h a r C o d e A t ( n I n d e x )   < <   8 ;  
                   }  
             i f   ( n B y t e   = =   2 )  
                   {  
                   B l o c k s [ n I n d e x   > >   2 ] . n H i g h   =   s I n p u t . c h a r C o d e A t ( n I n d e x ) ;  
                   }  
             i f   ( n B y t e   = =   3 )  
                   {  
                   B l o c k s [ n I n d e x   > >   2 ] . n H i g h   | =   s I n p u t . c h a r C o d e A t ( n I n d e x )   < <   8 ;  
                   }  
             }  
 / /  
 / /   P u t   p a d d i n g   b i t s   a n d   n u m b e r   o f   b i t s   t h a t   w e ' v e   u s e d  
 / /  
       n B y t e   =   n I n d e x   &   0 x 3 ; 	 	 	 	 	 	 / /   G e t   n y b b l e   i n d e x   a s   0 - 3  
       i f   ( n B y t e   = =   0 )  
             {  
             B l o c k s [ n I n d e x   > >   2 ] . n L o w   =   0 x 8 0 ;  
             }  
       i f   ( n B y t e   = =   1 )  
             {  
             B l o c k s [ n I n d e x   > >   2 ] . n L o w   | =   0 x 8 0 0 0 ;  
             }  
       i f   ( n B y t e   = =   2 )  
             {  
             B l o c k s [ n I n d e x   > >   2 ] . n H i g h   | =   0 x 8 0 ;  
             }  
       i f   ( n B y t e   = =   3 )  
             {  
             B l o c k s [ n I n d e x   > >   2 ] . n H i g h   | =   0 x 8 0 0 0 ;  
             }  
 / /  
 / /   W e   n e e d   t h e   n u m b e r   o f   b i t s   a s   a   3 2   b i t   i n t e g e r ,   b u t   w e   c a n ' t   r e l y  
 / /   o n   J a v a s c r i p t   t o   g e t   t h e   v a l u e   c o r r e c t .   H o w e v e r ,   t h e   s t r i n g   r e a l l y   c a n ' t   b e  
 / /   t h a t   l o n g   i n   t h i s   c o n t e x t ,   s o   w e ' l l   j u s t   a s s u m e   t h a t   t h e r e   a r e n ' t   m o r e   t h a n   8 k   b y t e s  
 / /   o f   d a t a   b e i n g   e n c o d e d .  
 / /  
       B l o c k s [ n B l o c k C o u n t   *   1 6   -   2 ]   =   n e w   D W o r d ( 0 ,   ( s I n p u t . l e n g t h   *   8 ) ) ; 	 / /   N u m b e r   o f   b i t s  
       r e t u r n ( B l o c k s ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D A s H e x 	 -   s h o w   v a l u e   a s   s e q u e n c e   o f   b y t e s ,   l e a s t   s i g n i f i c a n t  
 *                   b y t e   f i r s t .   H i g h   n y b b l e   b e f o r e   l o w   n y b b l e   i n   e a c h   b y t e .  
 *  
 *   P a r a m s : 	 d V a l u e 	 -   v a l u e   t o   d i s p l a y  
 *  
 *   R e t u r n s : 	 H e x   s t r i n g  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D A s H e x ( d V a l u e )  
       {  
       v a r   s H e x   =   " 0 1 2 3 4 5 6 7 8 9 a b c d e f " ;  
       v a r   n I n d e x ;  
  
       s R e s u l t   =   s H e x . c h a r A t ( ( d V a l u e . n L o w   > >   4 )   &   0 x F ) 	 	 	 	 / /   T o p   n y b b l e   o f   l o w   b y t e  
                         +   s H e x . c h a r A t ( d V a l u e . n L o w   &   0 x F )  
                         +   s H e x . c h a r A t ( ( d V a l u e . n L o w   > >   1 2 )   &   0 x F )  
                         +   s H e x . c h a r A t ( ( d V a l u e . n L o w   > >   8 )   &   0 x F )  
                         +   s H e x . c h a r A t ( ( d V a l u e . n H i g h   > >   4 )   &   0 x F )  
                         +   s H e x . c h a r A t ( d V a l u e . n H i g h   &   0 x F )  
                         +   s H e x . c h a r A t ( ( d V a l u e . n H i g h   > >   1 2 )   &   0 x F )  
                         +   s H e x . c h a r A t ( ( d V a l u e . n H i g h   > >   8 )   &   0 x F ) ;  
       r e t u r n ( s R e s u l t ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   D C a l c u l a t e M D 5 	 -   w o r k   o u t   t h e   M D 5  
 *  
 *   P a r m s : 	 s I n p u t 	 -   i n p u t   s t r i n g  
 *  
 *   R e t u r n s : 	 M D 5   h a s h   o f   s t r i n g  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   D C a l c u l a t e M D 5 ( s I n p u t )  
       {  
       / /  
       / /   P r o p e r   M D 5   i n i t i a l i s a t i o n   v a l u e s  
       / /  
       v a r   a   =   n e w   D W o r d ( 0 x 6 7 4 5 ,   0 x 2 3 0 1 ) ;  
       v a r   b   =   n e w   D W o r d ( 0 x E F C D ,   0 x A B 8 9 ) ;  
       v a r   c   =   n e w   D W o r d ( 0 x 9 8 B A ,   0 x D C F E ) ;  
       v a r   d   =   n e w   D W o r d ( 0 x 1 0 3 2 ,   0 x 5 4 7 6 ) ;  
  
       v a r   b l k   =   D S t r i n g T o B l o c k s ( s I n p u t ) ; 	 	 / /   C o n v e r t   i t   t o   b l o c k s  
       v a r   n I n d e x ;  
       v a r   n S a v e A ,   n S a v e B ,   n S a v e C ,   n S a v e D ;  
  
       f o r   ( n I n d e x   =   0 ;   n I n d e x   <   b l k . l e n g t h ;   n I n d e x   + =   1 6 )  
             {  
             n S a v e A   =   n e w   D W o r d ( a . n H i g h ,   a . n L o w ) ; 	 / /   S a v e   s t a r t   v a l u e s  
             n S a v e B   =   n e w   D W o r d ( b . n H i g h ,   b . n L o w ) ;  
             n S a v e C   =   n e w   D W o r d ( c . n H i g h ,   c . n L o w ) ;  
             n S a v e D   =   n e w   D W o r d ( d . n H i g h ,   d . n L o w ) ;  
  
             a   =   D F ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 0 ] ,   7 ,   n e w   D W o r d ( 0 x d 7 6 a ,   0 x a 4 7 8 ) ) ;   / *   1   * /  
             d   =   D F ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 ] ,   1 2 ,   n e w   D W o r d ( 0 x e 8 c 7 ,   0 x b 7 5 6 ) ) ;   / *   2   * /  
             c   =   D F ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 2 ] ,   1 7 ,   n e w   D W o r d ( 0 x 2 4 2 0 ,   0 x 7 0 d b ) ) ;   / *   3   * /  
             b   =   D F ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 3 ] ,   2 2 ,   n e w   D W o r d ( 0 x c 1 b d ,   0 x c e e e ) ) ;   / *   4   * /  
             a   =   D F ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 4 ] ,   7 ,   n e w   D W o r d ( 0 x f 5 7 c ,   0 x f a f ) ) ;   / *   5   * /  
             d   =   D F ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 5 ] ,   1 2 ,   n e w   D W o r d ( 0 x 4 7 8 7 ,   0 x c 6 2 a ) ) ;   / *   6   * /  
             c   =   D F ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 6 ] ,   1 7 ,   n e w   D W o r d ( 0 x a 8 3 0 ,   0 x 4 6 1 3 ) ) ;   / *   7   * /  
             b   =   D F ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 7 ] ,   2 2 ,   n e w   D W o r d ( 0 x f d 4 6 ,   0 x 9 5 0 1 ) ) ;   / *   8   * /  
             a   =   D F ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 8 ] ,   7 ,   n e w   D W o r d ( 0 x 6 9 8 0 ,   0 x 9 8 d 8 ) ) ;   / *   9   * /  
             d   =   D F ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 9 ] ,   1 2 ,   n e w   D W o r d ( 0 x 8 b 4 4 ,   0 x f 7 a f ) ) ;   / *   1 0   * /  
             c   =   D F ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 0 ] ,   1 7 ,   n e w   D W o r d ( 0 x f f f f ,   0 x 5 b b 1 ) ) ;   / *   1 1   * /  
             b   =   D F ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 1 ] ,   2 2 ,   n e w   D W o r d ( 0 x 8 9 5 c ,   0 x d 7 b e ) ) ;   / *   1 2   * /  
             a   =   D F ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 2 ] ,   7 ,   n e w   D W o r d ( 0 x 6 b 9 0 ,   0 x 1 1 2 2 ) ) ;   / *   1 3   * /  
             d   =   D F ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 3 ] ,   1 2 ,   n e w   D W o r d ( 0 x f d 9 8 ,   0 x 7 1 9 3 ) ) ;   / *   1 4   * /  
             c   =   D F ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 4 ] ,   1 7 ,   n e w   D W o r d ( 0 x a 6 7 9 ,   0 x 4 3 8 e ) ) ;   / *   1 5   * /  
             b   =   D F ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 5 ] ,   2 2 ,   n e w   D W o r d ( 0 x 4 9 b 4 ,   0 x 8 2 1 ) ) ;   / *   1 6   * /  
  
             / *   R o u n d   2   * /  
  
             a   =   D G ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 ] ,   5 ,   n e w   D W o r d ( 0 x f 6 1 e ,   0 x 2 5 6 2 ) ) ;   / *   1 7   * /  
             d   =   D G ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 6 ] ,   9 ,   n e w   D W o r d ( 0 x c 0 4 0 ,   0 x b 3 4 0 ) ) ;   / *   1 8   * /  
             c   =   D G ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 1 ] ,   1 4 ,   n e w   D W o r d ( 0 x 2 6 5 e ,   0 x 5 a 5 1 ) ) ;   / *   1 9   * /  
             b   =   D G ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 0 ] ,   2 0 ,   n e w   D W o r d ( 0 x e 9 b 6 ,   0 x c 7 a a ) ) ;   / *   2 0   * /  
             a   =   D G ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 5 ] ,   5 ,   n e w   D W o r d ( 0 x d 6 2 f ,   0 x 1 0 5 d ) ) ;   / *   2 1   * /  
             d   =   D G ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 0 ] ,   9 ,   n e w   D W o r d ( 0 x 2 4 4 ,   0 x 1 4 5 3 ) ) ;   / *   2 2   * /  
             c   =   D G ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 5 ] ,   1 4 ,   n e w   D W o r d ( 0 x d 8 a 1 ,   0 x e 6 8 1 ) ) ;   / *   2 3   * /  
             b   =   D G ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 4 ] ,   2 0 ,   n e w   D W o r d ( 0 x e 7 d 3 ,   0 x f b c 8 ) ) ;   / *   2 4   * /  
             a   =   D G ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 9 ] ,   5 ,   n e w   D W o r d ( 0 x 2 1 e 1 ,   0 x c d e 6 ) ) ;   / *   2 5   * /  
             d   =   D G ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 4 ] ,   9 ,   n e w   D W o r d ( 0 x c 3 3 7 ,   0 x 7 d 6 ) ) ;   / *   2 6   * /  
             c   =   D G ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 3 ] ,   1 4 ,   n e w   D W o r d ( 0 x f 4 d 5 ,   0 x d 8 7 ) ) ;   / *   2 7   * /  
             b   =   D G ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 8 ] ,   2 0 ,   n e w   D W o r d ( 0 x 4 5 5 a ,   0 x 1 4 e d ) ) ;   / *   2 8   * /  
             a   =   D G ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 3 ] ,   5 ,   n e w   D W o r d ( 0 x a 9 e 3 ,   0 x e 9 0 5 ) ) ;   / *   2 9   * /  
             d   =   D G ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 2 ] ,   9 ,   n e w   D W o r d ( 0 x f c e f ,   0 x a 3 f 8 ) ) ;   / *   3 0   * /  
             c   =   D G ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 7 ] ,   1 4 ,   n e w   D W o r d ( 0 x 6 7 6 f ,   0 x 2 d 9 ) ) ;   / *   3 1   * /  
             b   =   D G ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 2 ] ,   2 0 ,   n e w   D W o r d ( 0 x 8 d 2 a ,   0 x 4 c 8 a ) ) ;   / *   3 2   * /  
  
             / *   R o u n d   3   * /  
  
             a   =   D H ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 5 ] ,   4 ,   n e w   D W o r d ( 0 x f f f a ,   0 x 3 9 4 2 ) ) ;   / *   3 3   * /  
             d   =   D H ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 8 ] ,   1 1 ,   n e w   D W o r d ( 0 x 8 7 7 1 ,   0 x f 6 8 1 ) ) ;   / *   3 4   * /  
             c   =   D H ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 1 ] ,   1 6 ,   n e w   D W o r d ( 0 x 6 d 9 d ,   0 x 6 1 2 2 ) ) ;   / *   3 5   * /  
             b   =   D H ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 4 ] ,   2 3 ,   n e w   D W o r d ( 0 x f d e 5 ,   0 x 3 8 0 c ) ) ;   / *   3 6   * /  
             a   =   D H ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 ] ,   4 ,   n e w   D W o r d ( 0 x a 4 b e ,   0 x e a 4 4 ) ) ;   / *   3 7   * /  
             d   =   D H ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 4 ] ,   1 1 ,   n e w   D W o r d ( 0 x 4 b d e ,   0 x c f a 9 ) ) ;   / *   3 8   * /  
             c   =   D H ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 7 ] ,   1 6 ,   n e w   D W o r d ( 0 x f 6 b b ,   0 x 4 b 6 0 ) ) ;   / *   3 9   * /  
             b   =   D H ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 0 ] ,   2 3 ,   n e w   D W o r d ( 0 x b e b f ,   0 x b c 7 0 ) ) ;   / *   4 0   * /  
             a   =   D H ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 3 ] ,   4 ,   n e w   D W o r d ( 0 x 2 8 9 b ,   0 x 7 e c 6 ) ) ;   / *   4 1   * /  
             d   =   D H ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 0 ] ,   1 1 ,   n e w   D W o r d ( 0 x e a a 1 ,   0 x 2 7 f a ) ) ;   / *   4 2   * /  
             c   =   D H ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 3 ] ,   1 6 ,   n e w   D W o r d ( 0 x d 4 e f ,   0 x 3 0 8 5 ) ) ;   / *   4 3   * /  
             b   =   D H ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 6 ] ,   2 3 ,   n e w   D W o r d ( 0 x 4 8 8 ,   0 x 1 d 0 5 ) ) ;   / *   4 4   * /  
             a   =   D H ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 9 ] ,   4 ,   n e w   D W o r d ( 0 x d 9 d 4 ,   0 x d 0 3 9 ) ) ;   / *   4 5   * /  
             d   =   D H ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 2 ] ,   1 1 ,   n e w   D W o r d ( 0 x e 6 d b ,   0 x 9 9 e 5 ) ) ;   / *   4 6   * /  
             c   =   D H ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 5 ] ,   1 6 ,   n e w   D W o r d ( 0 x 1 f a 2 ,   0 x 7 c f 8 ) ) ;   / *   4 7   * /  
             b   =   D H ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 2 ] ,   2 3 ,   n e w   D W o r d ( 0 x c 4 a c ,   0 x 5 6 6 5 ) ) ;   / *   4 8   * /  
  
             / *   R o u n d   4   * /  
  
             a   =   D I ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 0 ] ,   6 ,   n e w   D W o r d ( 0 x f 4 2 9 ,   0 x 2 2 4 4 ) ) ;   / *   4 9   * /  
             d   =   D I ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 7 ] ,   1 0 ,   n e w   D W o r d ( 0 x 4 3 2 a ,   0 x f f 9 7 ) ) ;   / *   5 0   * /  
             c   =   D I ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 4 ] ,   1 5 ,   n e w   D W o r d ( 0 x a b 9 4 ,   0 x 2 3 a 7 ) ) ;   / *   5 1   * /  
             b   =   D I ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 5 ] ,   2 1 ,   n e w   D W o r d ( 0 x f c 9 3 ,   0 x a 0 3 9 ) ) ;   / *   5 2   * /  
             a   =   D I ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 1 2 ] ,   6 ,   n e w   D W o r d ( 0 x 6 5 5 b ,   0 x 5 9 c 3 ) ) ;   / *   5 3   * /  
             d   =   D I ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 3 ] ,   1 0 ,   n e w   D W o r d ( 0 x 8 f 0 c ,   0 x c c 9 2 ) ) ;   / *   5 4   * /  
             c   =   D I ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 1 0 ] ,   1 5 ,   n e w   D W o r d ( 0 x f f e f ,   0 x f 4 7 d ) ) ;   / *   5 5   * /  
             b   =   D I ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 ] ,   2 1 ,   n e w   D W o r d ( 0 x 8 5 8 4 ,   0 x 5 d d 1 ) ) ;   / *   5 6   * /  
             a   =   D I ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 8 ] ,   6 ,   n e w   D W o r d ( 0 x 6 f a 8 ,   0 x 7 e 4 f ) ) ;   / *   5 7   * /  
             d   =   D I ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 5 ] ,   1 0 ,   n e w   D W o r d ( 0 x f e 2 c ,   0 x e 6 e 0 ) ) ;   / *   5 8   * /  
             c   =   D I ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 6 ] ,   1 5 ,   n e w   D W o r d ( 0 x a 3 0 1 ,   0 x 4 3 1 4 ) ) ;   / *   5 9   * /  
             b   =   D I ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 1 3 ] ,   2 1 ,   n e w   D W o r d ( 0 x 4 e 0 8 ,   0 x 1 1 a 1 ) ) ;   / *   6 0   * /  
             a   =   D I ( a ,   b ,   c ,   d ,   b l k [ n I n d e x + 4 ] ,   6 ,   n e w   D W o r d ( 0 x f 7 5 3 ,   0 x 7 e 8 2 ) ) ;   / *   6 1   * /  
             d   =   D I ( d ,   a ,   b ,   c ,   b l k [ n I n d e x + 1 1 ] ,   1 0 ,   n e w   D W o r d ( 0 x b d 3 a ,   0 x f 2 3 5 ) ) ;   / *   6 2   * /  
             c   =   D I ( c ,   d ,   a ,   b ,   b l k [ n I n d e x + 2 ] ,   1 5 ,   n e w   D W o r d ( 0 x 2 a d 7 ,   0 x d 2 b b ) ) ;   / *   6 3   * /  
             b   =   D I ( b ,   c ,   d ,   a ,   b l k [ n I n d e x + 9 ] ,   2 1 ,   n e w   D W o r d ( 0 x e b 8 6 ,   0 x d 3 9 1 ) ) ;   / *   6 4   * /  
  
             a   =   D A d d ( n S a v e A ,   a ) ;  
             b   =   D A d d ( n S a v e B ,   b ) ;  
             c   =   D A d d ( n S a v e C ,   c ) ;  
             d   =   D A d d ( n S a v e D ,   d ) ;  
             }  
 / /  
 / /   N o w   w e   h a v e   t h e   d i g e s t   i n   a , b , c   a n d   d   s o   w e ' l l   c o n v e r t   i t  
 / /   t o   a   s t r i n g   f o r   d e b u g g i n g  
 / /  
       r e t u r n ( D A s H e x ( a )   +   D A s H e x ( b )   +   D A s H e x ( c )   +   D A s H e x ( d ) ) ;  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   C a l c u l a t e S i g n a t u r e 	 -   w o r k   o u t   t h e   M D 5   s i g n a t u r e   a n d   p o s t   t o   t h e   s c r i p t  
 *  
 *   E x p e c t s : 	 U s e r n a m e   a n d   p a s s w o r d   f i l l e d   i n  
 * 	 	 	 H a s h   c o n t a i n s   M D 5 ( u ,   M D 5 ( p ) )   f r o m   l o g i n  
 * 	 	 	 O r d e r H a s h   c o n t a i n s   M D 5   h a s h   o f   o r d e r  
 *  
 *   A f f e c t s : 	 S t o r e s   s i g n a t u r e   i n   s i g n a t u r e   f i e l d  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   C a l c u l a t e S i g n a t u r e ( )  
       {  
       / /  
       / /   W o r k   o u t   t h e   c o r r e c t   f o r m   t o   u s e  
       / /  
       n I n d e x   =   0 ;                                                                     / /   u s e   0   i f   w e   d o n ' t   f i n d   t h e   f o r m   s o   J S   e r r o r   g e n e r a t e d  
       f o r   ( n T e s t   =   0 ;   n T e s t   <   d o c u m e n t . f o r m s . l e n g t h ;   n T e s t + + )  
             {  
             i f   ( d o c u m e n t . f o r m s [ n T e s t ]   & &   d o c u m e n t . f o r m s [ n T e s t ] . P A S S )  
                   {  
                   n I n d e x   =   n T e s t ;                                                 / /   f o u n d   t h e   f o r m   s o   k e e p   t h e   n u m b e r  
                   }  
             }  
  
       v a r   s U s e r N a m e   =   d o c u m e n t . f o r m s [ n I n d e x ] . U S E R . v a l u e ;     / /   G e t   u s e r   n a m e  
       v a r   s P a s s w o r d   =   d o c u m e n t . f o r m s [ n I n d e x ] . P A S S . v a l u e ;     / /   G e t   p a s s w o r d  
       v a r   s L o g i n H a s h   =   d o c u m e n t . f o r m s [ n I n d e x ] . H A S H . v a l u e ;     / /   G e t   h a s h   f r o m   l o g i n  
       v a r   s O r d e r H a s h   =   d o c u m e n t . f o r m s [ n I n d e x ] . O R D E R H A S H . v a l u e ;     / /   G e t   h a s h   o f   o r d e r   d e t a i l s  
  
       / /  
       / /   L e t ' s   j u s t   t e s t   f o r   e m p t y   f i e l d s . .  
       / /  
       i f   ( s U s e r N a m e . l e n g t h   = =   0   | |   s P a s s w o r d . l e n g t h   = =   0 )  
             {  
             a l e r t ( " Y o u   m u s t   f i l l   i n   b o t h   u s e r   n a m e   a n d   p a s s w o r d . " ) ;  
             r e t u r n ;  
             }  
       / /  
       / /   T h e r e ' s   s o m e t h i n g   t h e r e ,   s o   c o m p u t e   t h e   h a s h e s   a n d  
       / /   v a l i d a t e   t h a t   i t ' s   c o r r e c t  
       / /  
       v a r   s M D 5 P   =   D C a l c u l a t e M D 5 ( s P a s s w o r d ) ; 	 	 	 	 / /   C a l c u l a t e   M D 5 ( p )  
       v a r   s H a s h 1   =   D C a l c u l a t e M D 5 ( s U s e r N a m e   +   s M D 5 P ) ; 	 / /   C o m p u t e   M D 5 ( u ,   M D 5 ( p ) )  
       v a r   s H a s h 2   =   D C a l c u l a t e M D 5 ( s U s e r N a m e   +   s H a s h 1 ) ; 	 / /   C o m p u t e   M D 5 ( u ,   M D 5 ( u ,   M D 5 ( p ) ) )  
       i f   ( s H a s h 2   ! =   s L o g i n H a s h ) 	 	 	 	 	 	 / /   H a s h   d o e s n ' t   m a t c h  
             {  
             / /  
             / /   I d e a l l y   t h e s e   a l e r t s   w o u l d   b e   s t r i n g s   i n   C a t a l o g  
             / /  
             a l e r t ( " Y o u r   p a s s w o r d   i s   i n c o r r e c t . " ) ;  
             r e t u r n ; 	 	 	 	 	 	 	 	 	 	 / /   D o n ' t   c a l l   t h e   s c r i p t  
             }  
       v a r   s S i g n a t u r e   =   D C a l c u l a t e M D 5 ( s M D 5 P   +   s O r d e r H a s h ) ;  
       d o c u m e n t . f o r m s [ n I n d e x ] . S I G N A T U R E . v a l u e   =   s S i g n a t u r e ; 	 / /   S e t   i t   i n   t h e   f o r m  
       d o c u m e n t . f o r m s [ n I n d e x ] . P A S S . v a l u e   =   " " ; 	 	 	 	 / /   E m p t y   t h e   p a s s w o r d   f i e l d  
       d o c u m e n t . f o r m s [ n I n d e x ] . s u b m i t ( ) ; 	 	 	 	 	 	 / /   C a l l   t h e   P e r l   s c r i p t  
       }  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *  
 *   S u b m i t L o g i n 	 -   w o r k   o u t   t h e   M D 5   h a s h e s   a n d   p o s t   t o   t h e   s c r i p t  
 *  
 *   E x p e c t s : 	 U s e r n a m e   a n d   p a s s w o r d   f i l l e d   i n  
 *  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   S u b m i t L o g i n ( s F o r m N a m e )  
       {  
       / /  
       / /   W o r k   o u t   t h e   c o r r e c t   f o r m   t o   u s e  
       / /  
       n I n d e x   =   0 ;                                                                     / /   u s e   0   i f   w e   d o n ' t   f i n d   t h e   f o r m   s o   J S   e r r o r   g e n e r a t e d  
       f o r   ( n T e s t   =   0 ;   n T e s t   <   d o c u m e n t . f o r m s . l e n g t h ;   n T e s t + + )  
             {  
             i f   ( d o c u m e n t . f o r m s [ n T e s t ]   & &   d o c u m e n t . f o r m s [ n T e s t ] . n a m e   = =   s F o r m N a m e )  
                   {  
                   n I n d e x   =   n T e s t ;                                                 / /   f o u n d   t h e   f o r m   s o   k e e p   t h e   n u m b e r  
                   }  
             }  
       v a r   s U s e r N a m e   =   d o c u m e n t . f o r m s [ n I n d e x ] . U S E R . v a l u e ;     / /   G e t   u s e r   n a m e  
       v a r   s P a s s w o r d   =   d o c u m e n t . f o r m s [ n I n d e x ] . P A S S . v a l u e ;     / /   G e t   p a s s w o r d  
       v a r   s C h a l l e n g e   =   d o c u m e n t . f o r m s [ n I n d e x ] . c h a l l e n g e . v a l u e ;   / / G e t   c h a l l e n g e  
       / /  
       / /   L e t ' s   j u s t   t e s t   f o r   e m p t y   f i e l d s . .  
       / /  
       i f   ( s U s e r N a m e . l e n g t h   = =   0   | |   s P a s s w o r d . l e n g t h   = =   0 )  
             {  
             a l e r t ( " Y o u   m u s t   f i l l   i n   b o t h   u s e r   n a m e   a n d   p a s s w o r d . " ) ;  
             r e t u r n ;  
             }  
       / /  
       / /   T h e r e ' s   s o m e t h i n g   t h e r e ,   s o   c o m p u t e   t h e   h a s h e s   a n d  
       / /   l e t ' s   g o  
       / /  
       v a r   s M D 5 P   =   D C a l c u l a t e M D 5 ( s P a s s w o r d ) ; 	 	 	 / /   C a l c u l a t e   M D 5 ( p )  
       v a r   s H a s h   =   D C a l c u l a t e M D 5 ( s U s e r N a m e   +   s M D 5 P ) ; 	 / /   C o m p u t e   M D 5 ( u ,   M D 5 ( p ) )  
       v a r   s C h a l   =   D C a l c u l a t e M D 5 ( s C h a l l e n g e   +   s M D 5 P ) ; 	 / / C o m p u t e   M D 5 ( c , M D 5 ( p ) )  
       / /  
       / /   I f   t h e   h a s h   i s   " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " ,   t h e n   i t   i s   I E  
       / /   o n   t h e   M a c   a n d   w e   c a n ' t   h a n d l e   i t .  
       / /  
       i f   ( s H a s h   = =   " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " )  
             {  
             a l e r t ( " I t   a p p e a r s   a s   i f   y o u   a r e   u s i n g   I n t e r n e t   E x p l o r e r   o n   a   M a c .     T h i s   c o n f i g u r a t i o n   d o e s   n o t   w o r k   p r o p e r l y   w i t h   t h i s   c a t a l o g ' s   l o g i n   p r o c e s s .     P l e a s e   u s e   N e t s c a p e ,   l o g i n   v i a   a   P C ,   o r   c o n t a c t   u s   d i r e c t l y   w i t h   y o u r   o r d e r . " ) ;  
             r e t u r n ;  
             }  
       d o c u m e n t . f o r m s [ n I n d e x ] . H A S H . v a l u e   =   s H a s h ; 	 / /   S e t   i t   i n   t h e   f o r m  
       d o c u m e n t . f o r m s [ n I n d e x ] . P A S S . v a l u e   =   " " ; 	 	 / /   E m p t y   t h e   p a s s w o r d   f i e l d  
       d o c u m e n t . f o r m s [ n I n d e x ] . c h a l l e n g e o u t . v a l u e   =   s C h a l ;   	 / /   S t o r e   c h a l l e n g e   h a s h  
       d o c u m e n t . f o r m s [ n I n d e x ] . s u b m i t ( ) ; 	 	 	 / /   C a l l   t h e   s c r i p t  
       }  
  
 / /     e n d   o f   s c r i p t   - - >  
 
