ÿþv a r   e r r o r C o d e s   =   n e w   A r r a y ( )  
 e r r o r C o d e s [ " r e q u i r e d " ]   =   " x 1 0 0 "  
 e r r o r C o d e s [ " l e n g t h V a l " ]   =   " x 2 0 0 "  
 e r r o r C o d e s [ " c h a r a c t e r s " ]   =   " x 3 0 0 "  
 e r r o r C o d e s [ " e x c l u s i v e " ]   =   " x 5 0 0 "  
 e r r o r C o d e s [ " a l l I f A n y " ]   =   " x 5 1 0 "  
 e r r o r C o d e s [ " a t L e a s t O n e " ]   =   " x 5 2 0 "  
 e r r o r C o d e s [ " a t M o s t O n e " ]   =   " x 5 3 0 "  
 e r r o r C o d e s [ " o n e A n d O n l y O n e " ]   =   " x 5 4 0 "  
 e r r o r C o d e s [ " d e p e n d a n t " ]   =   " x 5 5 0 "  
 e r r o r C o d e s [ " m a t c h " ]   =   " x 5 6 0 "  
 e r r o r C o d e s [ " c a r d F o r m a t " ]   =   " x 6 0 0 "  
 e r r o r C o d e s [ " v i s a L e n g t h " ]   =   " x 6 1 0 "  
 e r r o r C o d e s [ " v i s a C h a r " ]   =   " x 6 2 0 "  
 e r r o r C o d e s [ " m c L e n g t h " ]   =   " x 6 3 0 "  
 e r r o r C o d e s [ " m c C h a r " ]   =   " x 6 4 0 "  
 e r r o r C o d e s [ " e m a i l " ]   =   " x 7 0 0 "  
 e r r o r C o d e s [ " d a t e " ]   =   " x 8 0 0 "  
 e r r o r C o d e s [ " z i p C o d e " ]   =   " x 9 0 0 "  
  
 f u n c t i o n   a u t o T a b O n L e n g t h ( f i e l d R e f ,   s i z e ,   f o c u s F i e l d ,   e v t )   {  
 	 k e y C o d e   =   ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " N e t s c a p e " )   ! =   - 1   ?   e v t . w h i c h   :   e v t . k e y C o d e )  
 	 i f   ( f i e l d R e f . v a l u e . l e n g t h   = =   s i z e   & &   k e y C o d e   > =   " 3 2 " )   {  
 	 	 f i e l d s [ f o c u s F i e l d ] . g e t F i e l d ( ) . s e l e c t ( )  
 	 }  
 	 r e t u r n   t r u e  
 }  
  
 f u n c t i o n   c a n c e l C h a n g e s ( )   {  
 	 f o r m   =   g e t F o r m ( )  
 	 s e r v l e t M a p ( " C A N C E L _ C H A N G E S " )  
 	 f o r m . R E S U L T . v a l u e   =   " C A N C E L _ C H A N G E S "  
 	 s e t F o r m A c t i o n ( l o o k u p N a m e V a l u e P a i r ( d o c u m e n t . m a i n F o r m . S E S S I O N . v a l u e ,   " S U B M I T _ P A G E " ) )  
 	 f o r m S u b m i t ( f o r m )  
 }  
  
 f u n c t i o n   g r o u p E r r o r ( m s g ,   f i e l d S e t )   {  
 	 f i e l d S e t L e n g t h   =   f i e l d S e t . l e n g t h  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t L e n g t h ;   k + + )   {  
 	 	 i f   ( k   = =   0 )   {  
 	 	 	 e r r o r ( m s g ,   f i e l d S e t [ 0 ] )  
 	 	 }   e l s e   {  
 	 	 	 e r r o r ( " * " ,   f i e l d S e t [ k ] )  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   m o d i f y ( p a g e N a m e ,   f o c u s F i e l d )   {  
 	 f o r m   =   g e t F o r m ( )  
 	  
 	 i f   ( f o r m . t n c S c r o l l   ! =   n u l l )   {  
 	         i f   ( f o r m . t n c S c r o l l . v a l u e   ! =   n u l l )  
 	                   f o r m . t n c S c r o l l . v a l u e   =   " "  
 	 }  
 	  
 	 s e r v l e t M a p ( " M O D I F Y " )  
 	 f o r m . R E S U L T . v a l u e   =   " M O D I F Y "  
 	 s e t F o r m A c t i o n ( p a g e N a m e ,   n u l l ,   n u l l ,   f o c u s F i e l d )  
 	 f o r m S u b m i t ( f o r m )  
 }  
  
 f u n c t i o n   r e t u r n T x n ( p a g e N a m e ,   f o c u s F i e l d )   {  
 	 f o r m   =   g e t F o r m ( )  
 	 s e r v l e t M a p ( " S U B M I T " )  
 	 f o r m . R E S U L T . v a l u e   =   " S U B M I T "  
 	 s e t F o r m A c t i o n ( p a g e N a m e ,   n u l l ,   n u l l ,   f o c u s F i e l d )  
 	 f o r m S u b m i t ( f o r m )  
 }  
  
 f u n c t i o n   p a d ( t e x t ,   s i z e ,   p a d C h a r ,   a l i g n )   {  
 	 i f   ( a l i g n   = =   n u l l )   a l i g n   =   " r i g h t "  
 	 w h i l e   ( t e x t . l e n g t h   <   s i z e )   {  
 	 	 t e x t   =   ( a l i g n   = =   " r i g h t " )   ?   p a d C h a r   +   t e x t   :   t e x t   +   p a d C h a r  
 	 }  
 	 r e t u r n   t e x t ;  
 }  
  
 f u n c t i o n   r a d i o C l i c k ( r a d i o B u t t o n ,   o n l y O n ,   w h i c h )   {  
 	 r a d i o N a m e   =   r a d i o B u t t o n . n a m e  
 	 i f   ( ( w h i c h   = =   n u l l   & &   ( r a d i o S e t s [ r a d i o N a m e ]   = =   n u l l   | |   r a d i o S e t s [ r a d i o N a m e ]   ! =   r a d i o B u t t o n ) )   | |   w h i c h   = =   " o n " )   {  
 	 	 r a d i o S e t s [ r a d i o N a m e ]   =   r a d i o B u t t o n  
 	 	 r a d i o B u t t o n . c h e c k e d   =   t r u e  
 	 }   e l s e   i f   ( o n l y O n   ! =   t r u e   | |   w h i c h   = =   " o f f " )   {  
 	 	 r a d i o B u t t o n . c h e c k e d   =   f a l s e  
 	 	 r a d i o S e t s [ r a d i o N a m e ]   =   n u l l  
 	 }  
 }  
  
 f u n c t i o n   s a v e C h a n g e s ( )   {  
 	 f o r m   =   g e t F o r m ( )  
 	 s e r v l e t M a p ( l o o k u p N a m e V a l u e P a i r ( r e s u l t V a l u e ,   " D I S P L A Y " ) )  
 	 f o r m . R E S U L T . v a l u e   =   " S A V E _ C H A N G E S "  
 	 s e t F o r m A c t i o n ( l o o k u p N a m e V a l u e P a i r ( d o c u m e n t . m a i n F o r m . S E S S I O N . v a l u e ,   " S U B M I T _ P A G E " ) )  
 	 f o r m S u b m i t ( f o r m )  
 }  
  
 f u n c t i o n   v a l i d a t e ( f i e l d S e t ,   v a l i d a t e C o n d i t i o n a l )   {  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d C o u n t   =   f i e l d N a m e s . l e n g t h  
 	 }   e l s e   {  
 	 	 f i e l d C o u n t   =   f i e l d S e t . l e n g t h  
 	 }  
 	 i f   ( v a l i d a t e C o n d i t i o n a l   ! =   t r u e )   {  
 	 	 v a l i d a t e C o n d i t i o n a l   =   f a l s e  
 	 }  
 	 f o r ( j   =   0 ;   j   <   f i e l d C o u n t ;   j + + )   {  
 	 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 	 f i e l d   =   f i e l d s [ f i e l d N a m e s [ j ] ]  
 	 	 }   e l s e   {  
 	 	 	 f i e l d   =   f i e l d S e t [ j ]  
 	 	 }  
 	 	 f i e l d N a m e   =   f i e l d . n a m e  
 	 	 f i e l d T y p e   =   f i e l d . t y p e  
 	 	 g r o u p N a m e   =   f i e l d . g r o u p  
 	 	 v a l u e   =   f i e l d . g e t V a l u e ( )  
 	 	 r e q   =   f i e l d . r e q u i r e d  
 	 	 v a l   =   f i e l d . v a l i d a t i o n  
 	 	 f i e l d L e n g t h   =   f i e l d . l e n g t h  
 	 	 f i e l d M a t c h   =   f i e l d . m a t c h  
  
 	 	 i f   ( v a l u e   = =   " "   | |   ( f i e l d T y p e   = =   " c h e c k b o x "   & &   v a l u e   = =   " o f f " ) )   {  
 	 	 	 i f   ( r e q   = =   " t r u e "   | |   ( r e q   = =   " c o n d i t i o n a l "   & &   v a l i d a t e C o n d i t i o n a l ) )   {   v a l i d a t e R e q u i r e d ( f i e l d )   }  
 	 	 	 e l s e   i f   ( r e q . i n d e x O f ( " d e p e n d a n t " )   ! =   - 1 )   {   v a l i d a t e D e p e n d a n t ( f i e l d )   }  
 	 	 	 e l s e   i f   ( r e q . i n d e x O f ( " e x c l u s i v e " )   ! =   - 1 )   {   v a l i d a t e E x c l u s i v e ( f i e l d )   }  
 	 	 }   e l s e   i f   ( v a l u e   ! =   " " )   {  
 	 	 	 i f   ( f i e l d L e n g t h   ! =   " " )   {   v a l i d a t e L e n g t h ( f i e l d )   }  
  
 	 	 	 i f   ( v a l . i n d e x O f ( " R U a l p h a b e t i c " )   ! =   - 1 )   {   v a l i d a t e R U C h a r s ( f i e l d ,   L E T T E R S ,   ! N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - , " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " R U a l p h a N u m e r i c " )   ! =   - 1 )   {   v a l i d a t e R U C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - , " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " a l p h a b e t i c " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   ! N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - , " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " a l p h a N u m e r i c " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - , " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " a m o u n t " )   ! =   - 1 )   {  
 	 	 	 	 v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " . , " )  
 	 	 	 	 v a l i d a t e A m o u n t F o r m a t ( f i e l d )  
 	 	 	 }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " c i t y " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - . " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " R U c o n t a c t U s " )   ! =   - 1 )   {   v a l i d a t e R U C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   R E T U R N S ,   " ! # $ ' * + , - . : = ? _ " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " c o n t a c t U s " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   R E T U R N S ,   " ! # $ ' * + , - . : = ? _ " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " l e t t e r " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   ! N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " c o u n t r y " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " l a n g u a g e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " b i r t h d a t e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " * " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " n u m b e r " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " n u m e r i c " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - , . " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " p e r s o n _ n a m e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   ! N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " . ' " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " s t a n d a r d " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - . # @ : , / ' + " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " m e s s a g e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - . # @ : , / ' + $ " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " t e l e g r a m " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   R E T U R N S ,   " ! # $ % ' * + , - . / : = ? _ " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " z i p C o d e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( ( v a l . i n d e x O f ( " p o s t a l C o d e " )   ! =   - 1 )   & &   ( " S E " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1 ) )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " - " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " p o s t a l C o d e " )   ! =   - 1 )   {   v a l i d a t e C h a r s ( f i e l d ,   L E T T E R S ,   N U M B E R S ,   S P A C E S ,   ! R E T U R N S ,   " " )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " c r e d i t C a r d " )   ! =   - 1 )   {   v a l i d a t e C r e d i t C a r d ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " e m a i l I D " )   ! =   - 1 )   {   v a l i d a t e E m a i l I D ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " e m a i l " )   ! =   - 1 )   {   v a l i d a t e E m a i l ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " d a t e " )   ! =   - 1 )   {   v a l i d a t e D a t e ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " m a t c h " )   ! =   - 1 )   {   v a l i d a t e F i e l d M a t c h ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " i g n o r e C a s e " )   ! =   - 1 )   {   v a l i d a t e F i e l d I g n o r e C a s e ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " p o s t a l C o d e F o r m a t " )   ! =   - 1 )   {   v a l i d a t e P o s t a l C o d e ( f i e l d )   }  
 	 	 	 e l s e   i f   ( v a l . i n d e x O f ( " p h o n e N u m b e r " )   ! =   - 1 )   { v a l i d a t e P h o n e N u m b e r ( f i e l d )   }  
 	 	 }  
  
 	 	 i f   ( r e q . i n d e x O f ( " a l l I f A n y " )   ! =   - 1 )   {   v a l i d a t e A l l I f A n y ( f i e l d )   }  
 	 	 e l s e   i f   ( r e q . i n d e x O f ( " a t M o s t O n e " )   ! =   - 1 )   {   v a l i d a t e A t M o s t O n e ( f i e l d )   }  
 	 	 e l s e   i f   ( r e q . i n d e x O f ( " a t L e a s t O n e " )   ! =   - 1 )   {   v a l i d a t e A t L e a s t O n e ( f i e l d )   }  
 	 	 e l s e   i f   ( r e q . i n d e x O f ( " o n e A n d O n l y O n e " )   ! =   - 1 )   {   v a l i d a t e O n e A n d O n l y O n e ( f i e l d )   }  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e A l l ( f i e l d ,   f i e l d S e t ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d S e t   =   g r o u p s [ f i e l d . g r o u p ]  
 	 }  
 	 h a s E r r o r   =   f a l s e  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t . l e n g t h ;   k + + )   {  
 	 	 h a s E r r o r   =   v a l i d a t e R e q u i r e d ( f i e l d S e t [ k ] ,   d i s p l a y E r r o r )  
 	 }  
 	 i f   ( h a s E r r o r )   {  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   {  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e A l l I f A n y ( f i e l d ,   f i e l d S e t ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d S e t   =   g r o u p s [ f i e l d . g r o u p ]  
 	 }  
 	 f i r s t F i e l d W i t h V a l u e   =   n u l l  
 	 f o r ( k   =   0 ;   k   <   f i e l d S e t . l e n g t h ;   k + + )   {  
 	 	 i f   ( f i e l d S e t [ k ] . g e t V a l u e ( )   ! =   " " )   {  
 	 	 	 f i r s t F i e l d W i t h V a l u e   =   f i e l d S e t [ k ]  
 	 	 	 b r e a k  
 	 	 }  
 	 }  
 	 i f   ( f i r s t F i e l d W i t h V a l u e   = =   n u l l )   {  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 h a s E r r o r   =   f a l s e  
 	 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t . l e n g t h ;   k + + )   {  
 	 	 	 i f   ( f i e l d S e t [ k ] . g e t V a l u e ( )   = =   " " )   {  
 	 	 	 	 h a s E r r o r   =   t r u e  
 	 	 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( c o n v e r t C h a r ( c o n v e r t C h a r ( a l l I f A n y ,   " [ N ] " ,   f i e l d S e t [ k ] . l a b e l ) ,   " [ M ] " ,   f i r s t F i e l d W i t h V a l u e . l a b e l ) ,   f i e l d S e t [ k ] ,   " a l l I f A n y " )  
 	 	 	 }  
 	 	 }  
 	 	 i f   ( h a s E r r o r )   {  
 	 	 	 r e t u r n   f a l s e  
 	 	 }   e l s e   {  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e A m o u n t F o r m a t ( f i e l d )   {  
 	 i f   ( " , A U , C A , G B , I E , U S , " . i n d e x O f ( " , "   +   g e t R e g i o n ( )   +   " , " )   ! =   - 1 )   {  
 	 	 v a r   a m o u n t R E   =   n e w   R e g E x p ( " ^ \ \ d * ( \ \ . \ \ d { 2 } ) ? $ " )  
 	 	 i f   ( a m o u n t R E . e x e c ( f i e l d . g e t V a l u e ( ) )   = =   n u l l )   {  
 	 	 	 e r r o r ( a m o u n t F o r m a t ,   f i e l d ,   " a m o u n t F o r m a t " )  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e A t L e a s t O n e ( f i e l d ,   f i e l d S e t ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d S e t   =   g r o u p s [ f i e l d . g r o u p ]  
 	 }  
 	 f i r s t F i e l d W i t h V a l u e   =   n u l l  
 	 f i e l d S e t L e n g t h   =   f i e l d S e t . l e n g t h  
 	 f i e l d L i s t   =   " "  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t L e n g t h ;   k + + )   {  
 	 	 f i e l d L i s t   + =   ( k   ! =   0   ?   ( k   = =   f i e l d S e t L e n g t h   -   1   ?   o r   :   " ,   " )   :   " " )   +   f i e l d S e t [ k ] . l a b e l  
 	 }  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t . l e n g t h ;   k + + )   {  
 	 	 f i e l d V a l u e   =   f i e l d S e t [ k ] . g e t V a l u e ( )  
 	 	 i f   ( f i e l d V a l u e   ! =   n u l l   & &   f i e l d V a l u e   ! =   " " )   {  
 	 	 	 f i r s t F i e l d W i t h V a l u e   =   f i e l d S e t [ k ]  
 	 	 	 b r e a k  
 	 	 }  
 	 }  
 	 i f   ( f i r s t F i e l d W i t h V a l u e   = =   n u l l )   {  
 	 	 i f   ( d i s p l a y E r r o r )   g r o u p E r r o r ( c o n v e r t C h a r ( a t L e a s t O n e ,   " [ N ] " ,   f i e l d L i s t ) ,   f i e l d S e t ,   " a t L e a s t O n e " )  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   {  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e A t M o s t O n e ( f i e l d ,   f i e l d S e t ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d S e t   =   g r o u p s [ f i e l d . g r o u p ]  
 	 }  
 	 f i r s t F i e l d W i t h V a l u e   =   n u l l  
 	 h a s E r r o r   =   f a l s e  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t . l e n g t h ;   k + + )   {  
 	 	 i f   ( f i e l d S e t [ k ] . g e t V a l u e ( )   ! =   " " )   {  
 	 	 	 i f   ( f i r s t F i e l d W i t h V a l u e   = =   n u l l )   {  
 	 	 	 	 f i r s t F i e l d W i t h V a l u e   =   f i e l d S e t [ k ]  
 	 	 	 }   e l s e   {  
 	 	 	 	 h a s E r r o r   =   t r u e  
 	 	 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( c o n v e r t C h a r ( c o n v e r t C h a r ( a t M o s t O n e ,   " [ N ] " ,   f i e l d S e t [ k ] . l a b e l ) ,   " [ M ] " ,   f i r s t F i e l d W i t h V a l u e . l a b e l ) ,   f i e l d S e t [ k ] ,   " a t M o s t O n e " )  
 	 	 	 }  
 	 	 }  
 	 }  
 	 i f   ( h a s E r r o r )   {  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   {  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e C A P o s t a l C o d e ( f i e l d )   {  
 	 v a r   r e g E x p   =   " [ A - Z a - z ] \ \ d [ A - Z a - z ] [   - ] ? \ \ d [ A - Z a - z ] \ \ d "  
 	 v a r   p o s t a l C o d e R e g E x p   =   n e w   R e g E x p ( r e g E x p )  
  
 	 v a r   r e s u l t   =   p o s t a l C o d e R e g E x p . e x e c ( f i e l d . g e t V a l u e ( ) )  
 	 i f   ( r e s u l t   = =   n u l l )   {  
 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( n o t A V a l i d C A P o s t a l C o d e ,   f i e l d ) ,   f i e l d ,   " p o s t a l C o d e " )  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e C h a r s (  
 	 f i e l d ,  
 	 l e t t e r s O k ,  
 	 n u m b e r s O k ,  
 	 s p a c e s O k ,  
 	 r e t u r n s O k ,  
 	 c h a r S e t  
 )   {  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f o r   ( v a r   i   =   0 ;   i   <   f i e l d V a l u e . l e n g t h ;   i + + )   {  
 	 	 c h   =   f i e l d V a l u e . c h a r A t ( i )  
 	 	 i f   ( ! (  
 	 	 	 ( l e t t e r s O k   & &   c h   > =   " A "   & &   c h   < =   " Z " )   | |  
 	 	 	 ( l e t t e r s O k   & &   c h   > =   " a "   & &   c h   < =   " z " )   | |  
 	 	 	 ( l e t t e r s O k   & &   " A T , D E " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1     & &   " ö ä ü ß Ö Ä Ü " . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( l e t t e r s O k   & &   " F R " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1     & &   " À à Á á Â â É é È è Ê ê Ë ë Ç ç Î î Ï ï Ó ó Ô ô Ù ù Û û RS" . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( l e t t e r s O k   & &   " N L " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1     & &   " ÿ " . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( l e t t e r s O k   & &   " N O " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1     & &   " Å å ø Ø æ Æ " . i n d e x O f ( c h )   ! =   - 1 )   | | 	 	 	  
 	 	 	 ( l e t t e r s O k   & &   " S E " . i n d e x O f ( g e t R e g i o n ( ) )   ! =   - 1     & &   " Å Ä Ö å ä ö " . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( n u m b e r s O k   & &   c h   > =   " 0 "   & &   c h   < =   " 9 " )   | |  
 	 	 	 ( s p a c e s O k   & &   c h   = =   "   " )   | |  
 	 	 	 ( r e t u r n s O k   & &   " \ n \ r " . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( c h a r S e t . i n d e x O f ( c h )   ! =   - 1 )  
 	 	 ) )   {  
 	 	 	 l e t t e r s M s g   =   ( l e t t e r s O k   ?   l e t t e r s   :   " " )  
 	 	 	 n u m b e r M s g   = 	 ( n u m b e r s O k   ?   n u m b e r s   :   " " )  
 	 	 	 s p a c e s M s g   = 	 ( s p a c e s O k   ?   s p a c e s   :   " " )  
 	 	 	 r e t u r n s M s g   =   ( r e t u r n s O k   ?   r e t u r n s   :   " " )  
 	 	 	 c h a r G r o u p   =   " "  
 	 	 	 c h a r S e t L e n g t h   =   c h a r S e t . l e n g t h  
 	 	 	 f o r   ( v a r   x   =   0 ;   x   <   c h a r S e t L e n g t h ;   x + + )   {  
 	 	 	 	 c h a r G r o u p   + =   ( x   ! =   0   ?   ( x   = =   c h a r S e t L e n g t h   -   1   ?   a n d   :   " ,   " )   :   " " )   +   " [ "   +   c h a r S e t . c h a r A t ( x )   +   " ] "  
 	 	 	 }  
 	 	 	 c h a r S e t M s g   =   ( c h a r S e t   ! =   " "   ?   ( c h a r S e t L e n g t h   = =   1   ?   t h e C h a r a c t e r   :   t h e C h a r a c t e r s )   +   c h a r G r o u p   :   " " )  
 	 	 	 c h a r s   = 	 l e t t e r s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   n u m b e r M s g   ! =   " "   ?   ( s p a c e s M s g   = =   " "   & &   r e t u r n s M s g   = =   " "   & &   c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   n u m b e r M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   s p a c e s M s g   ! =   " "   ?   ( r e t u r n s M s g   = =   " "   & &   c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   s p a c e s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   r e t u r n s M s g   ! =   " "   ?   ( c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   r e t u r n s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   c h a r S e t M s g   ! =   " "   ?   a n d   :   " " )   +   c h a r S e t M s g  
 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( f i e l d H a s I l l e g a l C h a r s ,   f i e l d )   +   c h a r s   +   " . " ,   f i e l d ,   " c h a r a c t e r s " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e R U C h a r s (  
 	 f i e l d ,  
 	 l e t t e r s O k ,  
 	 n u m b e r s O k ,  
 	 s p a c e s O k ,  
 	 r e t u r n s O k ,  
 	 c h a r S e t  
 )   {  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f o r   ( v a r   i   =   0 ;   i   <   f i e l d V a l u e . l e n g t h ;   i + + )   {  
 	 	 c h   =   f i e l d V a l u e . c h a r A t ( i )  
 	 	 i f   ( ! (  
 	 	 	 ( l e t t e r s O k   & &   c h   > =   " A "   & &   c h   < =   " Z " )   | |  
 	 	 	 ( l e t t e r s O k   & &   c h   > =   " a "   & &   c h   < =   " z " )   | |  
 	 	 	 ( l e t t e r s O k   & &   "  !"#$%&'()*+,-./012345Q6789:;<=>?@ABCDEFGHIJKLMNO" . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( n u m b e r s O k   & &   c h   > =   " 0 "   & &   c h   < =   " 9 " )   | |  
 	 	 	 ( s p a c e s O k   & &   c h   = =   "   " )   | |  
 	 	 	 ( r e t u r n s O k   & &   " \ n \ r " . i n d e x O f ( c h )   ! =   - 1 )   | |  
 	 	 	 ( c h a r S e t . i n d e x O f ( c h )   ! =   - 1 )  
 	 	 ) )   {  
 	 	 	 l e t t e r s M s g   =   ( l e t t e r s O k   ?   l e t t e r s   :   " " )  
 	 	 	 n u m b e r M s g   = 	 ( n u m b e r s O k   ?   n u m b e r s   :   " " )  
 	 	 	 s p a c e s M s g   = 	 ( s p a c e s O k   ?   s p a c e s   :   " " )  
 	 	 	 r e t u r n s M s g   =   ( r e t u r n s O k   ?   r e t u r n s   :   " " )  
 	 	 	 c h a r G r o u p   =   " "  
 	 	 	 c h a r S e t L e n g t h   =   c h a r S e t . l e n g t h  
 	 	 	 f o r   ( v a r   x   =   0 ;   x   <   c h a r S e t L e n g t h ;   x + + )   {  
 	 	 	 	 c h a r G r o u p   + =   ( x   ! =   0   ?   ( x   = =   c h a r S e t L e n g t h   -   1   ?   a n d   :   " ,   " )   :   " " )   +   " [ "   +   c h a r S e t . c h a r A t ( x )   +   " ] "  
 	 	 	 }  
 	 	 	 c h a r S e t M s g   =   ( c h a r S e t   ! =   " "   ?   ( c h a r S e t L e n g t h   = =   1   ?   t h e C h a r a c t e r   :   t h e C h a r a c t e r s )   +   c h a r G r o u p   :   " " )  
 	 	 	 c h a r s   = 	 l e t t e r s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   n u m b e r M s g   ! =   " "   ?   ( s p a c e s M s g   = =   " "   & &   r e t u r n s M s g   = =   " "   & &   c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   n u m b e r M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   s p a c e s M s g   ! =   " "   ?   ( r e t u r n s M s g   = =   " "   & &   c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   s p a c e s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   r e t u r n s M s g   ! =   " "   ?   ( c h a r S e t   = =   " "   ?   a n d   :   " ,   " )   :   " " )   +   r e t u r n s M s g  
 	 	 	 c h a r s   + =   ( c h a r s   ! =   " "   & &   c h a r S e t M s g   ! =   " "   ?   a n d   :   " " )   +   c h a r S e t M s g  
 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( f i e l d H a s I l l e g a l C h a r s ,   f i e l d )   +   c h a r s   +   " . " ,   f i e l d ,   " c h a r a c t e r s " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e C r e d i t C a r d ( n u m b e r F i e l d )   {  
 	 c c N u m b e r   =   n u m b e r F i e l d . g e t V a l u e ( )  
 	 t y p e F i e l d   =   f i e l d s [ n u m b e r F i e l d . t a r g e t s [ 0 ] [ 0 ] ]  
 	 c c T y p e   =   t y p e F i e l d . g e t V a l u e ( )  
 	 v a r   t y p e V i s a   =   c c T y p e   = =   " V i s a "   | |   c c T y p e   = =   " V i s a D e b i t "   ?   t r u e   :   f a l s e  
 	 v a r   t y p e M a s t e r   =   c c T y p e   = =   " M a s t e r C a r d "   | |   c c T y p e   = =   " M a s t e r D e b i t "   ?   t r u e   :   f a l s e  
  
 	 i f   ( v a l i d a t e C h a r s ( n u m b e r F i e l d ,   ! L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " ) )   r e t u r n  
 	 i f   ( t y p e V i s a )   {  
 	 	 f i r s t C h a r   =   c c N u m b e r . s u b s t r i n g ( 0 ,   1 )  
 	 	 i f   ( c c N u m b e r . l e n g t h   ! =   1 3   & &   c c N u m b e r . l e n g t h   ! =   1 6 )   {  
 	 	 	 e r r o r ( v i s a L e n g t h ,   n u m b e r F i e l d ,   " v i s a L e n g t h " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 	 i f   ( f i r s t C h a r   ! =   " 4 " )   {  
 	 	 	 e r r o r ( v i s a C h a r ,   n u m b e r F i e l d ,   " v i s a C h a r " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 	 i f   ( ! v a l i d a t e C r e d i t C a r d F o r m a t ( c c N u m b e r ) )   {  
 	 	 	 e r r o r ( c a r d F o r m a t ,   n u m b e r F i e l d ,   " c a r d F o r m a t " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }   e l s e   i f   ( t y p e M a s t e r )   {  
 	 	 f i r s t C h a r   =   c c N u m b e r . s u b s t r i n g ( 0 ,   1 )  
 	 	 i f   ( c c N u m b e r . l e n g t h   ! =   1 6 )   {  
 	 	 	 e r r o r ( m c L e n g t h ,   n u m b e r F i e l d ,   " m c L e n g t h " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }   e l s e   i f   ( f i r s t C h a r   ! =   " 5 " )   {  
 	 	 	 e r r o r ( m c C h a r ,   n u m b e r F i e l d ,   " m c C h a r " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 	 i f   ( ! v a l i d a t e C r e d i t C a r d F o r m a t ( c c N u m b e r ) )   {  
 	 	 	 e r r o r ( c a r d F o r m a t ,   n u m b e r F i e l d ,   " c a r d F o r m a t " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }   e l s e   i f   ( c c T y p e   = =   " A m e r i c a n   E x p r e s s " )   {  
 	 	 f i r s t C h a r   =   c c N u m b e r . s u b s t r i n g ( 0 ,   2 )  
 	 	 i f   ( c c N u m b e r . l e n g t h   ! =   1 5 )   {  
 	 	 	 e r r o r ( a x L e n g t h ,   n u m b e r F i e l d ,   " a x L e n g t h " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }   e l s e   i f   ( f i r s t C h a r   ! =   " 3 7 " )   {  
 	 	 	 e r r o r ( a x C h a r ,   n u m b e r F i e l d ,   " a x C h a r " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e C r e d i t C a r d F o r m a t ( c c ) {  
         s b   =   " " ;  
         s u m   =   0 ;  
         f o r ( v a r   i = 1 ;   i   < =   c c . l e n g t h ;   i + + )   {  
                 a   =   p a r s e I n t ( c c . c h a r A t ( c c . l e n g t h   -   i ) ) ;  
                 b   =   ( i % 2   = =   0 )   ?   2 : 1 ;  
  
                 s b   + =   a * b ;  
         }  
         f o r ( v a r   j   =   0 ;   j   <   s b . l e n g t h ;   j + + )   {  
                 s u m   + =   p a r s e I n t ( s b . c h a r A t ( j ) ) ;  
         }  
  
         r e t u r n   s u m   %   1 0   = =   0 ;  
 }  
  
 f u n c t i o n   v a l i d a t e D a t e ( f i e l d )   {  
 	 v a r   r e g E x p   =   n e w   R e g E x p ( " ^ ( [ 0 - 9 ] [ 0 - 9 ] ? ) [ ^ 0 - 9 ] ( [ 0 - 9 ] [ 0 - 9 ] ? ) [ ^ 0 - 9 ] ( [ 0 - 9 ] [ 0 - 9 ] ( [ 0 - 9 ] [ 0 - 9 ] ) ? ) $ " )  
 	 v a r   r e s u l t   =   r e g E x p . e x e c ( f i e l d . g e t V a l u e ( ) )  
 	 i f   ( r e s u l t   ! =   n u l l )   {  
 	 	 v a r   m o n t h   =   r e s u l t [ 1 ]  
 	 	 v a r   d a y   =   r e s u l t [ 2 ]  
 	 	 v a r   y e a r   =   r e s u l t [ 3 ]  
 	 	 i f   ( y e a r . l e n g t h   = =   2 )   {  
 	 	 	 y e a r   =   " 2 0 "   +   y e a r  
 	 	 }  
 	 	 v a r   d a t e   =   n e w   D a t e ( m o n t h   + " / " +   d a y   + " / " +   y e a r )  
 	 	 i f   (  
 	 	 	 d a t e . g e t M o n t h ( )   +   1   ! =   p a r s e I n t ( r e m o v e L e a d i n g Z e r o s ( m o n t h ) )   | |  
 	 	 	 d a t e . g e t D a t e ( )   ! =   p a r s e I n t ( r e m o v e L e a d i n g Z e r o s ( d a y ) )   | |  
 	 	 	 ( d a t e . g e t Y e a r ( )   ! =   p a r s e I n t ( y e a r )   & &   d a t e . g e t Y e a r ( )   +   1 9 0 0   ! =   p a r s e I n t ( y e a r ) )  
 	 	 )   {  
 	 	 	 r e s u l t   =   n u l l  
 	 	 }  
 	 }  
 	 i f   ( r e s u l t   = =   n u l l )   {  
 	 	 e r r o r ( n o t A V a l i d D a t e ,   f i e l d ,   " d a t e " )  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e  
 	 }  
 }  
  
 f u n c t i o n   r e m o v e L e a d i n g Z e r o s ( v a l u e )   {  
 	 i f   ( v a l u e   = =   n u l l )   r e t u r n   " "  
 	 w h i l e   ( v a l u e . c h a r A t ( 0 )   = =   " 0 "   & &   v a l u e . l e n g t h   >   1 )   {  
 	 	 v a l u e   =   v a l u e . s u b s t r i n g ( 1 )  
 	 }  
 	 r e t u r n   v a l u e  
 }  
  
 f u n c t i o n   v a l i d a t e D e p e n d a n t ( f i e l d )   {  
 	 t a r g e t s   =   f i e l d . t a r g e t s  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f i e l d T y p e   =   ( f i e l d R e f . t y p e   = =   n u l l )   ?   f i e l d R e f [ 0 ] . t y p e   :   f i e l d R e f . t y p e  
 	 f o r   ( v a r   n   =   0 ;   n   <   t a r g e t s . l e n g t h ;   n + + )   {  
 	 	 t a r g e t   =   f i e l d s [ t a r g e t s [ n ] [ 0 ] ]  
 	 	 t a r g e t R e q u i r e d V a l u e   =   t a r g e t s [ n ] [ 1 ]  
 	 	 t a r g e t A c t u a l V a l u e   =   t a r g e t . g e t V a l u e ( )  
 	 	 t a r g e t T y p e   =   t a r g e t . t y p e  
 	 	 i f   (  
 	 	 	 ( t a r g e t R e q u i r e d V a l u e   = =   " "   & &   ( ( t a r g e t T y p e   ! =   " c h e c k b o x "   & &   t a r g e t A c t u a l V a l u e   ! =   " " )   | |   ( t a r g e t T y p e   = =   " c h e c k b o x "   & &   t a r g e t A c t u a l V a l u e   ! =   " o f f " ) ) )   | |  
 	 	 	 ( t a r g e t R e q u i r e d V a l u e   ! =   " "   & &   t a r g e t A c t u a l V a l u e   = =   t a r g e t R e q u i r e d V a l u e )  
 	 	 )   {  
 	 	 	 i f   ( f i e l d T y p e   = =   " c h e c k b o x " )   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t B e C h e c k e d ,   f i e l d ) ,   f i e l d ,   " d e p e n d a n t " )  
 	 	 	 }   e l s e   i f   ( f i e l d T y p e   = =   " r a d i o " )   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t S e l e c t O n e R a d i o B u t t o n ,   f i e l d ) ,   f i e l d ,   " d e p e n d a n t " )  
 	 	 	 }   e l s e   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( i s R e q u i r e d A n d M i s s i n g ,   f i e l d ) ,   f i e l d ,   " d e p e n d a n t " )  
 	 	 	 }  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e E m a i l I D ( f i e l d )   {  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 v a r   v a l i d I D   =   t r u e  
 	 i f   ( f i e l d V a l u e . l e n g t h   <   1   & &   f i e l d V a l u e . l e n g t h   >   4 0 )   {  
 	 	 v a l i d I D   =   f a l s e  
 	 }  
 	 n u m A t S i g n s   =   0  
 	 f o r   ( v a r   i   =   0 ;   v a l i d I D   & &   i   <   f i e l d V a l u e . l e n g t h ;   i + + )   {  
 	 	 c h   =   f i e l d V a l u e . c h a r A t ( i )  
 	 	 c h V a l u e   =   p a r s e I n t ( c h )  
 	 	 i f   ( c h V a l u e   <   3 2   & &   c h V a l u e   >   1 2 6 )   v a l i d I D   =   f a l s e  
 	 	 i f   ( c h   = =   " @ " )   {  
 	 	 	 n u m A t S i g n s   =   n u m A t S i g n s   +   1  
 	 	 	 i f   ( n u m A t S i g n s   >   1 )   v a l i d I D   =   f a l s e  
 	 	 }  
 	 }  
 	 i f   ( n u m A t S i g n s   ! =   1 )   v a l i d I D   =   f a l s e  
 	 e l s e   i f   ( f i e l d V a l u e . i n d e x O f ( " @ " )   < =   0   | |   f i e l d V a l u e . i n d e x O f ( " @ " )   >   ( f i e l d V a l u e . l e n g t h   -   3 ) )   v a l i d I D   =   f a l s e  
 	 / / e l s e   i f   ( f i e l d V a l u e . s u b s t r i n g ( f i e l d V a l u e ,   f i e l d V a l u e . i n d e x O f ( " @ " )   +   1 ) . i n d e x O f ( " . " )   <   2 )   v a l i d I D   =   f a l s e  
 	 e l s e   i f   ( f i e l d V a l u e . s u b s t r i n g ( f i e l d V a l u e ,   f i e l d V a l u e . i n d e x O f ( " @ " )   +   1 ) . i n d e x O f ( " . " )   = =   0 )  
 	 {  
 	 	 v a l i d I D   =   f a l s e  
 	 }  
 	 e l s e   i f   ( f i e l d V a l u e . s u b s t r i n g ( f i e l d V a l u e . i n d e x O f ( " @ " )   +   1 , f i e l d V a l u e . l e n g t h ) . i n d e x O f ( " . " )   <   1 )  
 	 {  
 	 	 v a l i d I D   =   f a l s e  
 	 }  
 	 e l s e   i f   ( f i e l d V a l u e . s u b s t r i n g ( f i e l d V a l u e . l e n g t h   -   1 , f i e l d V a l u e . l e n g t h ) . i n d e x O f ( " . " )   >   - 1   )  
 	 {  
 	 	 v a l i d I D   =   f a l s e  
 	 }  
 	 e l s e   i f   ( f i e l d V a l u e . i n d e x O f ( " . " )   = =   ( f i e l d V a l u e . l e n g t h   -   1 ) )   v a l i d I D   =   f a l s e  
 	 i f   ( ! v a l i d I D )   {  
 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( n o t A V a l i d E m a i l A d d r ,   f i e l d ) ,   f i e l d ,   " e m a i l " )  
 	 	 r e t u r n   t r u e  
 	 }  
 	 r e t u r n   v a l i d a t e E m a i l ( f i e l d )  
 }  
  
 f u n c t i o n   v a l i d a t e E m a i l ( f i e l d )   {  
 	 e x c l C h a r s   =   " { } \ \ [ \ \ ] \ \ ( \ \ ) < > , \ " ; @ \ \ n "  
 	 n o r m a l E x c l C h a r s   =   " [ ^ "   +   e x c l C h a r s   +   "   ] "  
 	 n o D o t E x c l C h a r s   =   " [ ^ "   +   e x c l C h a r s   +   " \ \ .   ] "  
 	 i n i t E x c l C h a r s   =   " [ ^ "   +   e x c l C h a r s   +   " ] "  
 	 m a i l B o x   =   n o r m a l E x c l C h a r s   +   " + @ ( "   +   n o D o t E x c l C h a r s   +   " + \ \ . ) + "   +   n o D o t E x c l C h a r s   +   " + "  
 	 r e g E x p   =   " ^ "   +   m a i l B o x   +   " $ "   +  
 	 	 " | ^ "   +   i n i t E x c l C h a r s   +   " * < "   +   m a i l B o x   +   " > $ "   +  
 	 	 " | ^ "   +   i n i t E x c l C h a r s   +   " * \ \ { "   +   m a i l B o x   +   " \ \ } $ "   +  
 	 	 " | ^ "   +   i n i t E x c l C h a r s   +   " * \ \ [ "   +   m a i l B o x   +   " \ \ ] $ "   +  
 	 	 " | ^ "   +   i n i t E x c l C h a r s   +   " * \ \ ( "   +   m a i l B o x   +   " \ \ ) $ "  
 	 r e   =   n e w   R e g E x p ( r e g E x p )  
 	 r e s u l t   =   r e . e x e c ( f i e l d . g e t V a l u e ( ) )  
 	 i f   ( r e s u l t   = =   n u l l )   {  
 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( n o t A V a l i d E m a i l A d d r ,   f i e l d ) ,   f i e l d ,   " e m a i l " )  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e E x c l u s i v e ( f i e l d )   {  
 	 t a r g e t s   =   f i e l d . t a r g e t s  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f i e l d T y p e   =   ( f i e l d R e f . t y p e   = =   n u l l )   ?   f i e l d R e f [ 0 ] . t y p e   :   f i e l d R e f . t y p e  
  
 	 f o r   ( v a r   n   =   0 ;   n   <   t a r g e t s . l e n g t h ;   n + + )   {  
 	 	 t a r g e t   =   f i e l d s [ t a r g e t s [ n ] [ 0 ] ]  
 	 	 t a r g e t R e q u i r e d V a l u e   =   t a r g e t s [ n ] [ 1 ]  
 	 	 t a r g e t A c t u a l V a l u e   =   t a r g e t . g e t V a l u e ( )  
 	 	 t a r g e t T y p e   =   t a r g e t . t y p e  
 	 	 i f   (  
 	 	 	 ( t a r g e t R e q u i r e d V a l u e   = =   " "   & &   ( ( t a r g e t T y p e   ! =   " c h e c k b o x "   & &   t a r g e t A c t u a l V a l u e   = =   " " )   | |   ( t a r g e t T y p e   = =   " c h e c k b o x "   & &   t a r g e t A c t u a l V a l u e   = =   " o f f " ) ) )   | |  
 	 	 	 ( t a r g e t R e q u i r e d V a l u e   ! =   " "   & &   t a r g e t A c t u a l V a l u e   ! =   t a r g e t R e q u i r e d V a l u e )  
 	 	 )   {  
 	 	 	 i f   ( f i e l d T y p e   = =   " c h e c k b o x " )   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t B e C h e c k e d ,   f i e l d ) ,   f i e l d ,   " e x c l u s i v e " )  
 	 	 	 }   e l s e   i f   ( f i e l d T y p e   = =   " r a d i o " )   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t S e l e c t O n e R a d i o B u t t o n ,   f i e l d ) ,   f i e l d ,   " e x c l u s i v e " )  
 	 	 	 }   e l s e   {  
 	 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( i s R e q u i r e d A n d M i s s i n g ,   f i e l d ) ,   f i e l d ,   " e x c l u s i v e " )  
 	 	 	 }  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e F i e l d M a t c h ( f i e l d )   {  
 	 t a r g e t s   =   f i e l d . t a r g e t s  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f i e l d L a b e l   =   f i e l d . l a b e l  
  
 	 f o r   ( v a r   n   =   0 ;   n   <   t a r g e t s . l e n g t h ;   n + + )   {  
 	 	 t a r g e t   =   f i e l d s [ t a r g e t s [ n ] [ 0 ] ]  
 	 	 t a r g e t A c t u a l V a l u e   =   t a r g e t . g e t V a l u e ( )  
 	 	 i f   ( t a r g e t A c t u a l V a l u e   ! =   f i e l d V a l u e )   {  
 	 	 	 m e s s a g e   =   c o n v e r t C h a r ( f i e l d s D o N o t M a t c h ,   " [ M ] " ,   f i e l d L a b e l )  
 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m e s s a g e ,   t a r g e t ) ,   f i e l d ,   " m a t c h " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e F i e l d I g n o r e C a s e ( f i e l d )   {  
 	 t a r g e t s   =   f i e l d . t a r g e t s  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f i e l d L a b e l   =   f i e l d . l a b e l  
  
 	 f o r   ( v a r   n   =   0 ;   n   <   t a r g e t s . l e n g t h ;   n + + )   {  
 	 	 t a r g e t   =   f i e l d s [ t a r g e t s [ n ] [ 0 ] ]  
 	 	 t a r g e t A c t u a l V a l u e   =   t a r g e t . g e t V a l u e ( )  
 	 	 i f   ( t a r g e t A c t u a l V a l u e . t o U p p e r C a s e ( )   ! =   f i e l d V a l u e . t o U p p e r C a s e ( ) )   {  
 	 	 	 m e s s a g e   =   c o n v e r t C h a r ( f i e l d s D o N o t M a t c h ,   " [ M ] " ,   f i e l d L a b e l )  
 	 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m e s s a g e ,   t a r g e t ) ,   f i e l d ,   " m a t c h " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 }  
 	 r e t u r n   f a l s e  
 }  
  
 f u n c t i o n   v a l i d a t e L e n g t h ( f i e l d )   {  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 f i e l d L e n g t h   =   f i e l d . l e n g t h  
 	 m a x L e n g t h   =   " "  
 	 i f   ( ( o f f s e t   =   f i e l d L e n g t h . i n d e x O f ( " , " ) )   ! =   - 1 )   {  
 	 	 m a x L e n g t h   =   p a r s e I n t ( f i e l d L e n g t h . s u b s t r i n g ( o f f s e t   +   1 ) )  
 	 	 f i e l d L e n g t h   =   p a r s e I n t ( f i e l d L e n g t h . s u b s t r i n g ( 0 ,   o f f s e t ) )  
 	 	 f i e l d L e n g t h V a l i d a t i o n   =   " , "  
 	 }   e l s e   {  
 	 	 f i e l d L e n g t h V a l i d a t i o n   =   f i e l d L e n g t h . c h a r A t ( 0 )  
 	 	 f i e l d L e n g t h   =   p a r s e I n t ( f i e l d L e n g t h . s u b s t r i n g ( 1 ) )  
 	 }  
 	 i f   (  
 	 	 f i e l d L e n g t h V a l i d a t i o n   = =   " "   | |  
 	 	 ( f i e l d L e n g t h V a l i d a t i o n   = =   " - "   & &   f i e l d V a l u e . l e n g t h   < =   f i e l d L e n g t h )   | |  
 	 	 ( f i e l d L e n g t h V a l i d a t i o n   = =   " = "   & &   f i e l d V a l u e . l e n g t h   = =   f i e l d L e n g t h )   | |  
 	 	 ( f i e l d L e n g t h V a l i d a t i o n   = =   " + "   & &   f i e l d V a l u e . l e n g t h   > =   f i e l d L e n g t h )   | |  
 	 	 ( f i e l d L e n g t h V a l i d a t i o n   = =   " , "   & &   f i e l d V a l u e . l e n g t h   > =   f i e l d L e n g t h   & &   f i e l d V a l u e . l e n g t h   < =   m a x L e n g t h )  
 	 )   {  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   {  
 	 	 i f   ( f i e l d L e n g t h V a l i d a t i o n   = =   " = " )   {  
 	 	 	 m e s s a g e   =   l e n g t h V a l i d a t i o n E q u a l s  
 	 	 }   e l s e   i f   ( f i e l d L e n g t h V a l i d a t i o n   = =   " - " )   {  
 	 	 	 m e s s a g e   =   l e n g t h V a l i d a t i o n L e s s T h a n  
 	 	 }   e l s e   i f   ( f i e l d L e n g t h V a l i d a t i o n   = =   " + " )   {  
 	 	 	 m e s s a g e   =   l e n g t h V a l i d a t i o n G r e a t e r T h a n  
 	 	 }   e l s e   i f   ( f i e l d L e n g t h V a l i d a t i o n   = =   " , " )   {  
 	 	 	 m e s s a g e   =   l e n g t h V a l i d a t i o n I n R a n g e  
 	 	 }  
 	 	 m e s s a g e   =   c o n v e r t C h a r ( m e s s a g e ,   " [ L ] " ,   f i e l d L e n g t h )  
 	 	 m e s s a g e   =   c o n v e r t C h a r ( m e s s a g e ,   " [ M ] " ,   m a x L e n g t h )  
 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m e s s a g e ,   f i e l d ) ,   f i e l d ,   " l e n g t h V a l " ,   [ [ " [ N ] " ,   f i e l d . l a b e l ] , [ " [ L ] " ,   f i e l d L e n g t h ] , [ " [ M ] " ,   m a x L e n g t h ] , [ " [ A ] " ,   f i e l d V a l u e . l e n g t h ] ] )  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e O n e A n d O n l y O n e ( f i e l d ,   f i e l d S e t ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 i f   ( f i e l d S e t   = =   n u l l )   {  
 	 	 f i e l d S e t   =   g r o u p s [ f i e l d . g r o u p ]  
 	 }  
 	 f i r s t F i e l d W i t h V a l u e   =   n u l l  
 	 h a s E r r o r   =   f a l s e  
 	 f i e l d S e t L e n g t h   =   f i e l d S e t . l e n g t h  
 	 f i e l d L i s t   =   " "  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t L e n g t h ;   k + + )   {  
 	 	 f i e l d L i s t   + =   ( k   ! =   0   ?   ( k   = =   f i e l d S e t L e n g t h   -   1   ?   o r   :   " ,   " )   :   " " )   +   f i e l d S e t [ k ] . l a b e l  
 	 }  
 	 f o r   ( v a r   k   =   0 ;   k   <   f i e l d S e t L e n g t h ;   k + + )   {  
 	 	 i f   ( f i e l d S e t [ k ] . g e t V a l u e ( )   ! =   " " )   {  
 	 	 	 i f   ( f i r s t F i e l d W i t h V a l u e   = =   n u l l )   {  
 	 	 	 	 f i r s t F i e l d W i t h V a l u e   =   f i e l d S e t [ k ]  
 	 	 	 }   e l s e   {  
 	 	 	 	 h a s E r r o r   =   t r u e  
 	 	 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( c o n v e r t C h a r ( c o n v e r t C h a r ( a t M o s t O n e ,   " [ N ] " ,   f i e l d S e t [ k ] . l a b e l ) ,   " [ M ] " ,   f i r s t F i e l d W i t h V a l u e . l a b e l ) ,   f i e l d S e t [ k ] ,   " o n e A n d O n l y O n e " )  
 	 	 	 }  
 	 	 }  
 	 }  
 	 i f   ( f i r s t F i e l d W i t h V a l u e   = =   n u l l )   {  
 	 	 h a s E r r o r   =   t r u e  
 	 	 i f   ( d i s p l a y E r r o r )   g r o u p E r r o r ( c o n v e r t C h a r ( a t L e a s t O n e ,   " [ N ] " ,   f i e l d L i s t ) ,   f i e l d S e t ,   " o n e A n d O n l y O n e " )  
 	 }  
 	 i f   ( h a s E r r o r )   {  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   {  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e P o s t a l C o d e ( f i e l d ,   d i s p l a y E r r o r )   {  
 }  
  
 f u n c t i o n   v a l i d a t e R e q u i r e d ( f i e l d ,   d i s p l a y E r r o r )   {  
 	 i f   ( d i s p l a y E r r o r   = =   n u l l )   d i s p l a y E r r o r   =   t r u e  
 	 f i e l d R e f   =   f i e l d . g e t F i e l d ( )  
 	 f i e l d V a l u e   =   f i e l d . g e t V a l u e ( )  
 	 t y p e   =   ( f i e l d R e f . t y p e   = =   n u l l )   ?   f i e l d R e f [ 0 ] . t y p e   :   f i e l d R e f . t y p e  
 	 i f   ( t y p e   = =   " c h e c k b o x " )   {  
 	 	 i f   ( f i e l d V a l u e   = =   " o f f " )   {  
 	 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t B e C h e c k e d ,   f i e l d ) ,   f i e l d ,   " r e q u i r e d " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 	 r e t u r n   f a l s e  
 	 }   e l s e   i f   ( t y p e   = =   " r a d i o " )   {  
 	 	 o n e I s S e l e c t e d   =   f a l s e  
 	 	 f o r   ( v a r   i   =   0 ;   i   <   f i e l d R e f . l e n g t h ;   i + + )   {  
 	 	 	 o n e I s S e l e c t e d   =   o n e I s S e l e c t e d   | |   f i e l d R e f [ i ] . c h e c k e d  
 	 	 }  
 	 	 i f   ( ! o n e I s S e l e c t e d )   {  
 	 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( m u s t S e l e c t O n e R a d i o B u t t o n ,   f i e l d ) ,   f i e l d ,   " r e q u i r e d " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }   e l s e   {  
 	 	 	 r e t u r n   f a l s e  
 	 	 }  
 	 }   e l s e   i f   ( f i e l d R e f   = =   n u l l   | |   f i e l d V a l u e   = =   " " )   {  
 	 	 i f   ( d i s p l a y E r r o r )   e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( i s R e q u i r e d A n d M i s s i n g ,   f i e l d ) ,   f i e l d ,   " r e q u i r e d " )  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e  
 	 }  
 }  
  
 f u n c t i o n   v a l i d a t e Z i p ( f i e l d ,   a l l o w Z i p P l u s 4 )   {  
 	 v a r   r e g E x p  
 	 i f   ( a l l o w Z i p P l u s 4   = =   t r u e )   {  
 	 	 r e g E x p   =   " ^ \ \ d \ \ d \ \ d \ \ d \ \ d $ | ^ \ \ d \ \ d \ \ d \ \ d \ \ d - \ \ d \ \ d \ \ d \ \ d $ "  
 	 }   e l s e   {  
 	 	 r e g E x p   =   " ^ \ \ d \ \ d \ \ d \ \ d \ \ d $ "  
 	 }  
 	 v a r   p o s t a l C o d e R e g E x p   =   n e w   R e g E x p ( r e g E x p )  
 	 v a r   r e s u l t   =   p o s t a l C o d e R e g E x p . e x e c ( f i e l d . g e t V a l u e ( ) )  
 	 i f   ( r e s u l t   = =   n u l l )   {  
 	 	 e r r o r ( i n s e r t F i e l d N a m e I n t o M e s s a g e ( n o t A V a l i d Z i p C o d e ,   f i e l d ) ,   f i e l d ,   " z i p C o d e " )  
 	 	 r e t u r n   t r u e  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e  
 	 }  
 }  
  
 / / * * *   V a l i d a t i o n   f o r   T D   1 6 6 7   * * *  
 f u n c t i o n   v a l i d a t e P h o n e N u m b e r ( f i e l d )   {  
 	 v a r   b V a l i d   =   v a l i d a t e C h a r s ( f i e l d ,   ! L E T T E R S ,   N U M B E R S ,   ! S P A C E S ,   ! R E T U R N S ,   " " )    
 	 i f   ( ! b V a l i d )  
 	 {  
 	 	 v a r   n u m b e r   =   p a r s e I n t ( f i e l d . g e t V a l u e ( ) )  
 	 	 i f ( n u m b e r   = =   0 )  
 	 	 {  
 	 	 	 e r r o r ( i n v a l i d P h o n e ,   f i e l d ,   " i n v a l i d P h o n e " )  
 	 	 	 r e t u r n   t r u e  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 r e t u r n   f a l s e  
 	 	 }  
 	 }  
 	 e l s e  
 	 {  
 	 	 r e t u r n   t r u e  
 	 }  
 }  
  
  
 / / * * *   S T A R T   B U B B L E   U P   H E L P   F U N C T I O N S   * * *  
  
 / /   P o p u p   H e l p  
 v a r   W A I T _ I N _ M S E C S   =   5 0 0  
 v a r   W A I T _ I N _ M S E C S _ H I D E   =   2 0 0  
 v a r   h e l p T i m e r   =   n u l l  
 v a r   h i d e H e l p T i m e r   =   n u l l  
  
 f u n c t i o n   r e g i s t e r M o u s e O v e r ( h e l p W i n d o w I d ,   h o t s p o t I d ,   v O f f s e t ,   l o c a t i o n )   {  
 	 s t r E x e c u t e   =   " s h o w H e l p ( ' "   +   h e l p W i n d o w I d   +   " ' ,   ' "   +   h o t s p o t I d   +   " ' ,   "   +   ( ( v O f f s e t   ! =   " "   ?   v O f f s e t   :   0 )   - 6 0 )   +   " ,   ' "   +   l o c a t i o n   +   " ' ) "  
 	 i f   ( h e l p T i m e r   = =   n u l l )   h e l p T i m e r   =   s e t T i m e o u t ( s t r E x e c u t e ,   W A I T _ I N _ M S E C S )  
 }  
  
 f u n c t i o n   r e g i s t e r M o u s e O u t ( h e l p W i n d o w I d )   {  
 	 h i d e S t a t e m e n t   =   " h i d e H e l p ( ' "   +   h e l p W i n d o w I d   +   " ' ) "  
 	 i f   ( h i d e H e l p T i m e r   = =   n u l l )   {  
 	 	 h i d e H e l p T i m e r   =   s e t T i m e o u t ( h i d e S t a t e m e n t ,   W A I T _ I N _ M S E C S _ H I D E )  
 	 }  
 	 i f   ( h e l p T i m e r   ! =   n u l l )   {  
 	 	 c l e a r T i m e o u t ( h e l p T i m e r )  
 	 	 h e l p T i m e r   =   n u l l  
 	 }  
 }  
  
 f u n c t i o n   s h o w H e l p ( h e l p W i n d o w I d ,   h o t s p o t I d ,   v O f f s e t ,   l o c a t i o n )   {  
 	 v a r   h e l p W i n d o w S t y l e   =   g e t O b j S t y l e ( h e l p W i n d o w I d )  
 	 v a r   h o t s p o t   =   g e t O b j ( h o t s p o t I d )  
 	 h e l p W i n d o w S t y l e . t o p   =   g e t E l e m e n t T o p ( h o t s p o t )   +   v O f f s e t  
 	 h e l p W i n d o w S t y l e . l e f t   =   g e t E l e m e n t L e f t ( h o t s p o t )   +   ( l o c a t i o n   = =   " r i g h t "   ?   3 2   :   - 2 0 4 )  
 	 h e l p W i n d o w S t y l e . v i s i b i l i t y   =   " v i s i b l e "  
 }  
  
 f u n c t i o n   c l e a r H i d e H e l p T i m e r ( )   {  
   	 i f   ( h i d e H e l p T i m e r   ! =   n u l l )   {  
 	 	 c l e a r T i m e o u t ( h i d e H e l p T i m e r )  
 	 	 h i d e H e l p T i m e r   =   n u l l  
 	 }  
 }  
  
 f u n c t i o n   h i d e H e l p ( h e l p W i n d o w I d )   {  
 	 g e t O b j S t y l e ( h e l p W i n d o w I d ) . v i s i b i l i t y   =   " h i d d e n "  
 	 c l e a r H i d e H e l p T i m e r ( )  
 }  
  
 f u n c t i o n   g e t E l e m e n t L e f t ( e l e m e n t )   {  
 	 v a r   l e f t P o s i t i o n   =   e l e m e n t . o f f s e t L e f t  
 	 v a r   p a r e n t E l e m e n t   =   e l e m e n t . o f f s e t P a r e n t    
 	 w h i l e   ( p a r e n t E l e m e n t   ! =   n u l l )   {  
 	 	 l e f t P o s i t i o n   + =   p a r e n t E l e m e n t . o f f s e t L e f t  
 	 	 p a r e n t E l e m e n t   =   p a r e n t E l e m e n t . o f f s e t P a r e n t  
 	 }  
 	 r e t u r n   l e f t P o s i t i o n  
 }  
  
 f u n c t i o n   g e t E l e m e n t T o p ( e l e m e n t )   {  
 	 v a r   t o p P o s i t i o n   =   e l e m e n t . o f f s e t T o p  
 	 v a r   p a r e n t E l e m e n t   =   e l e m e n t . o f f s e t P a r e n t      
 	 w h i l e   ( p a r e n t E l e m e n t   ! =   n u l l )   {  
 	 	 t o p P o s i t i o n   + =   p a r e n t E l e m e n t . o f f s e t T o p  
 	 	 p a r e n t E l e m e n t   =   p a r e n t E l e m e n t . o f f s e t P a r e n t  
 	 }  
 	 r e t u r n   t o p P o s i t i o n  
 }  
 / / * * *   E N D   B U B B L E   U P   H E L P   F U N C T I O N S   * * * 
