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