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