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