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