ÿþ/ *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
  
 f u n c t i o n   S i g n u p F r m V a l i d a t e ( )  
 {  
 	 v a r   t h e F o r m   =   d o c u m e n t . S i g n u p F r m ;  
 	 v a r   a l p h a R E   =   / ^ [ a - z A - Z 0 - 9 _ ] + $ / ;  
 	 v a r   e m a i l R E   =   / ^ ( [ a - z A - Z 0 - 9 _ . - ] ) + @ ( ( [ a - z A - Z 0 - 9 - ] ) + . ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / ;  
 	 v a r   e r r M s g   =   " " ;  
 	 v a r   s e t f o c u s   =   " " ;  
  
 	 i f   ( ! e m a i l R E . t e s t ( t h e F o r m [ ' m a i l ' ] . v a l u e ) )  
 	 {  
 	 	 e r r M s g   =   " "/13  5-J-  ~3*  'D©*1HFJ©  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' m a i l ' ] " ;  
 	 }  
 	 i f   ( t h e F o r m [ ' l a s t n a m e ' ] . v a l u e . l e n g t h   <   3   | |   t h e F o r m [ ' l a s t n a m e ' ] . v a l u e . l e n g t h   >   5 0 )  
 	 {  
 	 	 e r r M s g   =   " D7A'  F'E  .'FH'/¯Ì  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' l a s t n a m e ' ] " ;  
 	 }  
 	 i f   ( t h e F o r m [ ' f i r s t n a m e ' ] . v a l u e . l e n g t h   <   3   | |   t h e F o r m [ ' f i r s t n a m e ' ] . v a l u e . l e n g t h   >   5 0 )  
 	 {  
 	 	 e r r M s g   =   " D7A'  F'E  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' f i r s t n a m e ' ] " ;  
 	 }  
 	 i f   ( t h e F o r m [ ' p w s _ r e t ' ] . v a l u e   = =   " "   | |   ( t h e F o r m [ ' p w s _ r e t ' ] . v a l u e   ! =   t h e F o r m [ ' p a s s w o r d ' ] . v a l u e ) )  
 	 {  
 	 	 e r r M s g   =   " *©1'1  1E2  9(H1  5-J-  FEJ  ('4/" ;  
 	 	 s e t f o c u s   =   " [ ' p w s _ r e t ' ] " ;  
 	 }  
 	 i f   ( ( ! a l p h a R E . t e s t ( t h e F o r m [ ' p a s s w o r d ' ] . v a l u e ) )   | |   ( t h e F o r m [ ' p a s s w o r d ' ] . v a l u e . l e n g t h   <   2   | |   t h e F o r m [ ' p a s s w o r d ' ] . v a l u e . l e n g t h   >   3 2 ) )  
 	 {  
 	 	 e r r M s g   =   " 1E2  9(H1  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' p a s s w o r d ' ] " ;  
 	 }  
 	 i f   ( ( ! a l p h a R E . t e s t ( t h e F o r m [ ' u s r _ u s e r n a m e ' ] . v a l u e ) )   | |   ( t h e F o r m [ ' u s r _ u s e r n a m e ' ] . v a l u e . l e n g t h   <   4   | |   t h e F o r m [ ' u s r _ u s e r n a m e ' ] . v a l u e . l e n g t h   >   3 2 ) )  
 	 {  
 	 	 e r r M s g   =   " 4F'3G  ©'1(1Ì  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' u s r _ u s e r n a m e ' ] " ;  
 	 }  
 	 i f   ( e r r M s g   ! =   " " )  
 	 {  
 	 	 a l e r t ( e r r M s g ) ;  
 	 	 e v a l ( " t h e F o r m "   +   s e t f o c u s   +   " . f o c u s ( ) " ) ;  
 	 }  
 	 e l s e   t h e F o r m . s u b m i t ( ) ;  
 }  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
  
 f u n c t i o n   P r o f i l e F r m V a l i d a t e ( )  
 {  
 	 v a r   t h e F o r m   =   d o c u m e n t . P r o f i l e F r m ;  
 	 v a r   a l p h a R E   =   / ^ [ @ _ * _ a - z A - Z 0 - 9 _ ] + $ / ;  
 	 v a r   e m a i l R E   =   / ^ ( [ a - z A - Z 0 - 9 _ . - ] ) + @ ( ( [ a - z A - Z 0 - 9 - ] ) + . ) + ( [ a - z A - Z 0 - 9 ] { 2 , 4 } ) + $ / ;  
 	 v a r   e r r M s g   =   " " ;  
 	 v a r   s e t f o c u s   =   " " ;  
  
 	 i f   ( ! e m a i l R E . t e s t ( t h e F o r m [ ' m a i l ' ] . v a l u e ) )  
 	 {  
 	 	 e r r M s g   =   " "/13  5-J-  ~3*  'D©*1HFJ©  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' m a i l ' ] " ;  
 	 }  
 	 i f   ( t h e F o r m [ ' l a s t n a m e ' ] . v a l u e . l e n g t h   <   3   | |   t h e F o r m [ ' l a s t n a m e ' ] . v a l u e . l e n g t h   >   5 0 )  
 	 {  
 	 	 e r r M s g   =   " D7A'  F'E  .'FH'/¯Ì  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' l a s t n a m e ' ] " ;  
 	 }  
 	 i f   ( t h e F o r m [ ' f i r s t n a m e ' ] . v a l u e . l e n g t h   <   3   | |   t h e F o r m [ ' f i r s t n a m e ' ] . v a l u e . l e n g t h   >   5 0 )  
 	 {  
 	 	 e r r M s g   =   " D7A'  F'E  1'  H'1/  ©FJ/" ;  
 	 	 s e t f o c u s   =   " [ ' f i r s t n a m e ' ] " ;  
 	 }  
 	 i f   ( ( t h e F o r m [ ' p w s _ r e t ' ] . v a l u e   = =   " " )   & &   ( t h e F o r m [ ' p a s s w o r d ' ] . v a l u e   ! =   " " )   | |   ( t h e F o r m [ ' p w s _ r e t ' ] . v a l u e   ! =   t h e F o r m [ ' p a s s w o r d ' ] . v a l u e ) )  
 	 {  
 	 	 e r r M s g   =   " *©1'1  1E2  9(H1  5-J-  FEJ  ('4/" ;  
 	 	 s e t f o c u s   =   " [ ' p w s _ r e t ' ] " ;  
 	 }  
 	 i f   ( e r r M s g   ! =   " " )  
 	 {  
 	 	 a l e r t ( e r r M s g ) ;  
 	 	 e v a l ( " t h e F o r m "   +   s e t f o c u s   +   " . f o c u s ( ) " ) ;  
 	 }  
 	 e l s e   t h e F o r m . s u b m i t ( ) ;  
 }  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
  
 v a r   c h e c k b o x c o u n t   =   0 ;  
 f u n c t i o n   d o C h e c k A l l ( )  
 {  
 	 i f ( c h e c k b o x c o u n t   = =   1 )  
 	 {  
 	 	 w i t h   ( d o c u m e n t . m g r F o r m )  
 	 	 {  
 	 	 	 f o r   ( v a r   i = 0 ;   i   <   e l e m e n t s . l e n g t h ;   i + + )  
 	 	 	 {  
 	 	 	 	 i f   ( e l e m e n t s [ i ] . t y p e   = =   ' c h e c k b o x ' )   {   e l e m e n t s [ i ] . c h e c k e d   =   f a l s e ;   }  
 	 	 	 }  
 	 	 	 c h e c k b o x c o u n t - - ;  
 	 	 }  
 	 }  
 	 e l s e  
 	 {  
 	 	 w i t h   ( d o c u m e n t . m g r F o r m )  
 	 	 {  
 	 	 	 f o r   ( v a r   i = 0 ;   i   <   e l e m e n t s . l e n g t h ;   i + + )  
 	 	 	 {  
 	 	 	 	 i f   ( e l e m e n t s [ i ] . t y p e   = =   ' c h e c k b o x ' )   {   e l e m e n t s [ i ] . c h e c k e d   =   t r u e ;   }  
 	 	 	 }  
 	 	 	 c h e c k b o x c o u n t + + ;  
 	 	 }  
 	 }  
 }  
  
 / *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   * /  
 
