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