ÿþf u n c t i o n   s e l e c t   ( )   {  
 	 f o r   ( v a r   i   =   1 ;   i   <   d o c u m e n t . f o r m . a c t i v i t y c o m p a n y . l e n g t h ;   i + + )   {  
 	 	 i f   ( d o c u m e n t . f o r m . a c t i v i t y c o m p a n y . s e l e c t e d I n d e x   = =   i )   { d o c u m e n t . g e t E l e m e n t B y I d ( i ) . s t y l e . d i s p l a y = " b l o c k " ; }  
 	 	 e l s e   { 	 d o c u m e n t . g e t E l e m e n t B y I d ( i ) . s t y l e . d i s p l a y = " n o n e " ; } } }  
  
 f u n c t i o n   o t h e r ( i d )   {  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . c h e c k e d   = =   t r u e )   { d o c u m e n t . g e t E l e m e n t B y I d ( " 3 9 " ) . s t y l e . d i s p l a y = " b l o c k " ; }  
 	 	 e l s e   { 	 d o c u m e n t . g e t E l e m e n t B y I d ( " 3 9 " ) . s t y l e . d i s p l a y = " n o n e " ; 	 d o c u m e n t . g e t E l e m e n t B y I d ( " i n p u t 3 9 " ) . v a l u e = " " ; } }  
  
 f u n c t i o n   c h e c k ( i d )   { 	  
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . v a l u e   = =   " " )   { d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   1 ) . s t y l e . d i s p l a y = " b l o c k " ; 	 }  
 	 e l s e   { 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d   +   1 ) . s t y l e . d i s p l a y = " n o n e " ; } }  
  
 f u n c t i o n   c h e c k f o r m ( f )   {  
     v a r   e r r M S G   =   " " ;  
     f o r   ( v a r   i   =   0 ;   i < f . e l e m e n t s . l e n g t h ;   i + + )  
         i f   ( n u l l ! = f . e l e m e n t s [ i ] . g e t A t t r i b u t e ( " r e q u i r e d " ) )  
                 i f   ( i s E m p t y ( f . e l e m e n t s [ i ] . v a l u e ) )    
                         e r r M S G   + =   "   "   +   f . e l e m e n t s [ i ] . i d   +   " \ n " ;    
                 i f   ( " "   ! =   e r r M S G )   {  
                         a l e r t ( " H81:0,   70?>;=5=K  =5  2A5  :;NG52K5  ?>;O: \ n "   +   e r r M S G ) ;  
                         r e t u r n   f a l s e ;  
                 }  
 	 	 i f   ( ( 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 " ) . v a l u 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 2 " ) . v a l u e ) )   {  
 	 	 	 	 a l e r t ( " N o n - i d e n t i c a l   P a s s w o r d . 5A>2?045=85  ?0@>;59. \ n " ) ;  
 	 	 r e t u r n   f a l s e ; }  
  
 }  
  
 f u n c t i o n   i s E m p t y ( s t r )   {  
       f o r   ( v a r   i   =   0 ;   i   <   s t r . l e n g t h ;   i + + )  
             i f   ( "   "   ! =   s t r . c h a r A t ( i ) )  
                     r e t u r n   f a l s e ;  
             r e t u r n   t r u e ;  
 }  
  
  
 f u n c t i o n   c h e c k n a m e ( i n p u t )   {  
 a l e r t   ( i n p u t . l e n g t h   +   "   - - - - - - -   "   +   c h e c k n a m e [ 1 ] . l e n g t h ) ;  
     v a r   o k   =   t r u e ;  
     f o r   ( v a r   i   =   0 ;   i   <   i n p u t . l e n g t h ;   i + + )   {  
         v a r   c h r   =   i n p u t . c h a r A t ( i ) ;  
         v a r   f o u n d   =   f a l s e ;  
         f o r   ( v a r   j   =   1 ;   j   <   c h e c k n a m e . l e n g t h ;   j + + )   {  
             i f   ( c h r   = =   c h e c k n a m e [ j ] )   f o u n d   =   t r u e ;  
         }  
         i f   ( ! f o u n d )   o k   =   f a l s e ;  
     }  
     r e t u r n   o k ;  
  
 }  
  
 f u n c t i o n   t e s t ( i n p u t )   {  
     i f   ( ! c h e c k n a m e ( i n p u t ,   ' 1 ' ,   ' 2 ' ,   " 3 " ,   " 4 " ,   " 5 " ,   " 6 " ,   " 7 " ,   " 8 " ,   " 9 " ,   " 0 " ,   " / " ,   " - " ,   "   " ) )   {  
         a l e r t ( i n p u t   +   " I n p u t   n o t   o k . " ) ;  
     }  
     e l s e   {  
         a l e r t (   i n p u t   +   " S U P E R R R " ) ;  
     }  
 }  
  
  
 / / ( ! n a m e ( i n p u t ,   " q " ,   " w " ,   " e " ,   " r " ,   " t " ,   " y " ,   " u " ,   " i " ,   " o " ,   " p " ,   " a " ,   " s " ,   " d " ,   " f " ,   " g " ,   " h " ,   " j " ,   " k " ,   " l " ,   " z " ,   " x " ,   " c " ,   " v " ,   " b " ,   " n " ,   " m " ,   " Q " ,   " W " ,   " E " ,   " R " ,   " T " ,   " Y " ,   " U " ,   " I " ,   " O " ,   " P " ,   " A " ,   " S " ,   " D " ,   " F " ,   " G " ,   " H " ,   " J " ,   " K " ,   " L " ,   " Z " ,   " X " ,   " C " ,   " V " ,   " B " ,   " N " ,   " M " ,   " 9" ,   " F" ,   " C" ,   " :" ,   " 5" ,   " =" ,   " 3" ,   " H" ,   " I" ,   " 7" ,   " E" ,   " J" ,   " D" ,   " K" ,   " 2" ,   " 0" ,   " ?" ,   " @" ,   " >" ,   " ;" ,   " 4" ,   " 6" ,   " M" ,   " O" ,   " G" ,   " A" ,   " <" ,   " 8" ,   " B" ,   " L" ,   " 1" ,   " N" ,   " " ,   " &" ,   " #" ,   " " ,   " " ,   " " ,   " " ,   " (" ,   " )" ,   " " ,   " %" ,   " *" ,   " $" ,   " +" ,   " " ,   " " ,   " " ,   "  " ,   " " ,   " " ,   " " ,   " " ,   " -" ,   " /" ,   " '" ,   " !" ,   " " ,   " " ,   " "" ,   " ," ,   " " ,   " ." ,   " - " ,   "   " ) ) 
