ÿþf u n c t i o n   S h o w F o r e x R a t e ( )  
 {  
 	 f u n c t i o n   A d d C u r r e n c y R a t e ( C u r r e n c y ,   R a t e )  
 	 {  
 	 	 d o c u m e n t . w r i t e l n ( ' < t r   h e i g h t = 2 2   b g c o l o r = " # E E E E E E " > < t d   w i d t h = 1 0 0   a l i g n = c e n t e r   c l a s s = R e d C o n t e n t > & n b s p ; ' ,   C u r r e n c y ,   ' < / t d > < t d   a l i g n = r i g h t   c l a s s = R e d C o n t e n t > ' ,   R a t e ,   ' & n b s p ; < / t d > < / t r > ' ) ;  
 	 }  
 	 i f   ( ! A d d F o r e x H e a d e r ( ' C u r r e n c y ' ,   ' & n b s p ; T ö  G I Á ' ,   3 ) )  
 	 	 r e t u r n ;  
 	 d o c u m e n t . w r i t e l n ( ' < t r   h e i g h t = 2 2   b g c o l o r = " # f f f f f f " > < t d   w i d t h = 1 0 0   a l i g n = c e n t e r   c l a s s = R e d C o n t e n t > & n b s p ; ' ,   ' N g o ¡i   t Ç' ,   ' < / t d > < t d   a l i g n = r i g h t   c l a s s = R e d C o n t e n t > ' ,   ' G i á ' ,   ' & n b s p ; < / t d > < / t r > ' ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 ,   v C o s t 1 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 2 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 2 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 2 ,   v C o s t 2 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 3 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 3 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 3 ,   v C o s t 3 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 4 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 4 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 4 ,   v C o s t 4 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 5 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 5 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 5 ,   v C o s t 5 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 6 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 6 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 6 ,   v C o s t 6 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 7 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 7 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 7 ,   v C o s t 7 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 8 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 8 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 8 ,   v C o s t 8 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 9 )   ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 9 )   ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 9 ,   v C o s t 9 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 0 ) ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 0 ) ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 0 ,   v C o s t 1 0 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 1 ) ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 1 ) ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 1 ,   v C o s t 1 1 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 2 ) ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 2 ) ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 2 ,   v C o s t 1 2 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 3 ) ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 3 ) ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 3 ,   v C o s t 1 3 ) ;  
 	 i f   ( t y p e o f ( v F o r e x 1 4 ) ! = ' u n d e f i n e d '   & &   t y p e o f ( v C o s t 1 4 ) ! = ' u n d e f i n e d ' )   A d d C u r r e n c y R a t e ( v F o r e x 1 4 ,   v C o s t 1 4 ) ;  
 	 A d d F o r e x F o o t e r ( ) ;  
 }  
 S h o w F o r e x R a t e ( ) ;  
  
 f u n c t i o n   A d d F o r e x H e a d e r ( N a m e ,   H e a d e r ,   B u t t o n s ,   S y m b o l ,   A d d C h i l d T a b l e )  
 {  
 	 d o c u m e n t . w r i t e l n ( ' < t a b l e   w i d t h = " 1 0 0 % "   b o r d e r = 0   c e l l s p a c i n g = 0   c e l l p a d d i n g = 0 > < t r > < t d > ' ) ;  
  
 	 i f   ( H e a d e r ! = ' ' )  
 	 {  
 	 	 d o c u m e n t . w r i t e l n ( ' < t a b l e   w i d t h = " 1 0 0 % "   b o r d e r = 0   c e l l s p a c i n g = 0   c e l l p a d d i n g = 0   b a c k g r o u n d = " i m a g e s / w e b / B a c k G r o u n d S l i d e . j p g " > ' ) ;  
 	 	 d o c u m e n t . w r i t e l n ( ' < t r > ' ) ;  
  
 	 	 d o c u m e n t . w r i t e l n ( ' < t d   h e i g h t = 1 6   w i d t h = " 1 0 0 % "   a l i g n = l e f t   c l a s s = T i t l e L e f t   s t y l e = " c o l o r : # 0 0 0 0 0 0 ; f o n t - w e i g h t : b o l d ; " > < f o n t   s i z e = 2 > & n b s p ; ' ,   H e a d e r ,   ' < / f o n t > < / t d > ' ) ;  
 	 	 d o c u m e n t . w r i t e l n ( ' < / t r > < / t a b l e > ' ) ;  
 	 }  
  
 	 d o c u m e n t . w r i t e l n ( ' < t a b l e   w i d t h = " 1 0 0 % "   b o r d e r = " 0 "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " 0 " > < t r > < t d   i d = " I D M _ ' ,   N a m e ,   ' " > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < t a b l e   w i d t h = " 1 0 0 % "   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " 0 " > < t r > < t d > ' ) ;  
 	  
 	 i f   ( t y p e o f ( A d d C h i l d T a b l e ) = = ' u n d e f i n e d ' )  
 	 {  
 	 	 d o c u m e n t . w r i t e l n ( ' < d i v > ' ) ;  
 	 	 d o c u m e n t . w r i t e l n ( ' < t a b l e   a l i g n = c e n t e r   w i d t h = " 1 0 0 % "   c e l l s p a c i n g = " 1 "   b g c o l o r = " # 9 9 9 9 9 9 "   c l a s s = " R e d C o n t e n t " > ' ) ;  
 	 	 L a s t C h i l d   =   1 ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 L a s t C h i l d   =   0 ;  
 	 }  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   A d d F o r e x F o o t e r ( )  
 {  
 	 d o c u m e n t . w r i t e l n ( ' < / t a b l e > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < / d i v > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < / t d > < / t r > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < / t a b l e > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < / t d > < / t r > < / t a b l e > ' ) ;  
 	 d o c u m e n t . w r i t e l n ( ' < / t d > < / t r > < / t a b l e > ' ) ;  
 }  
 
