/ / c h a n g e   t a b  
 	 	 f u n c t i o n   g e t R a n d o m T a b ( )   {  
 	 	 	 	 	 	 	 v a r   r a n d   = g e t R a n d o m ( 1 , 5 ) ;  
 	 	 	 	 	 	 	 v a r   a   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D " + r a n d ) ; 	 	 	 	 	 	  
 	 	 	 	 	 	 	 a . c l a s s N a m e   =   " T a b _ 1 " ; 	 	 	 	 	 	  
 	 	 	 	 	 	 	 a . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	 	 	 }  
  
 	 	 f u n c t i o n   C h a n g e T a b T G K D ( v a l )  
 	 	 {  
 	 	 	 v a r   t d T G K D   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t d T G K D " ) ;  
 	 	 	 v a r   a 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D 1 " ) ;  
 	 	 	 v a r   a 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D 2 " ) ;  
 	 	 	 v a r   a 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D 3 " ) ;  
 	 	 	 v a r   a 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D 4 " ) ;  
 	 	 	 v a r   a 5   =   d o c u m e n t . g e t E l e m e n t B y I d ( " t a b T G K D 5 " ) ;  
 	 	 	 v a r   a   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h p l V i e w N e x t 1 " ) ;  
 	 	 	 i f   ( ( v a l   = =   1   & &   a 1 . c l a s s N a m e   = =   " T a b _ 1 " ) | | ( v a l   = =   2   & &   a 2 . c l a s s N a m e   = =   " T a b _ 1 " ) | | ( v a l   = =   3   & &   a 3 . c l a s s N a m e   = =   " T a b _ 1 " ) | | ( v a l   = =   4   & &   a 4 . c l a s s N a m e   = =   " T a b _ 1 " ) | | ( v a l   = =   5   & &   a 5 . c l a s s N a m e   = =   " T a b _ 1 " ) )    
 	 	 	 	 r e t u r n ;  
 	 	 	 / / t d T G K D . b a c k g r o u n d   =   " i m a g e s / h o m e / c o n t e n t _ b g _ h e a d e r _ 2 . "   +   v a l   +   " . g i f " ;  
 	 	 	 t d T G K D . c l a s s N a m e   =   " t a b "   +   v a l ;  
 	 	 	 i f   ( v a l   = =   " 1 " )  
 	 	 	 {  
 	 	 	 	 a 1 . c l a s s N a m e   =   " T a b _ 1 " ;  
 	 	 	 	 a 2 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 3 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 4 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 5 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 1 " ) . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 2 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 3 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 4 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 5 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 }  
 	 	 	 e l s e   i f   ( v a l   = =   " 2 " )  
 	 	 	 {  
 	 	 	 	 a 1 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 2 . c l a s s N a m e   =   " T a b _ 1 " ;  
 	 	 	 	 a 3 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 4 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 5 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 1 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 2 " ) . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 3 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 4 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 5 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 }  
 	 	 	 e l s e   i f   ( v a l   = =   " 3 " )  
 	 	 	 {  
 	 	 	 	 a 1 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 2 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 3 . c l a s s N a m e   =   " T a b _ 1 " ;  
 	 	 	 	 a 4 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 5 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 1 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 2 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 3 " ) . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 4 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 5 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 }  
 	 	 	 e l s e   i f   ( v a l   = =   " 4 " )  
 	 	 	 {  
 	 	 	 	 a 1 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 2 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 3 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 4 . c l a s s N a m e   =   " T a b _ 1 " ;  
 	 	 	 	 a 5 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 1 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 2 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 3 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 4 " ) . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 5 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 }  
 	 	 	 e l s e  
 	 	 	 {  
 	 	 	 	 a 1 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 2 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 3 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 4 . c l a s s N a m e   =   " T a b _ 2 " ;  
 	 	 	 	 a 5 . c l a s s N a m e   =   " T a b _ 1 " ; 	 	 	 	  
 	 	 	 	 a . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 	  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 1 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 2 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 3 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 4 " ) . s t y l e . d i s p l a y   =   " n o n e " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t b l T G 5 " ) . s t y l e . d i s p l a y   =   " i n l i n e " ;  
 	 	 	 }  
 	 	 }  
  
  
  
  
 / /  
 f u n c t i o n   e m b e d _ f l a s h ( s w f _ c a r d ,   s w f _ w i d t h ,   s w f _ h e i g h t ,   i d ) {  
 	 v a r   s t r   =   ' < O B J E C T   c l a s s i d = " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 "   c o d e b a s e = " h t t p : / / d o w n l o a d . m a c r o m e d i a . c o m / p u b / s h o c k w a v e / c a b s / f l a s h / s w f l a s h . c a b # v e r s i o n = 5 , 0 , 0 , 0 "   ' ;  
 	 	 i f   ( s w f _ w i d t h   ! =   ' ' )    
 	 	 	 s t r   + =   ' W I D T H = ' + s w f _ w i d t h + '   ' ;  
 	 	 i f ( s w f _ h e i g h t   ! =   ' ' )  
 	 	 	 s t r   + =   ' H E I G H T = ' + s w f _ h e i g h t + '   ' ;  
 	 	 s t r   + =   ' i d = " ' + i d + ' " > ' ;  
 	 	 s t r   + =   ' < P A R A M   N A M E = m o v i e   V A L U E = " ' + s w f _ c a r d + ' " > ' ;  
 	 	 s t r   + =   ' < P A R A M   N A M E = q u a l i t y   V A L U E = h i g h > ' ;  
 	 	 s t r   + =   ' < P A R A M   N A M E = w m o d e   V A L U E = " T r a n s p a r e n t " > ' ;  
 	 	 s t r   + =   ' < P A R A M   N A M E = b g c o l o r   V A L U E = " " > ' ;  
 	 	 s t r   + =   ' < P A R A M   N A M E = m e n u   V A L U E = f a l s e > ' ;  
 	 	 s t r   + =   ' < E M B E D   s t y l e = " C U R S O R :   h a n d "   s r c = " ' + s w f _ c a r d + ' "   q u a l i t y = h i g h   ' ;  
 	 	 i f   ( s w f _ w i d t h   ! =   ' ' )    
 	 	 	 s t r   + =   ' W I D T H = ' + s w f _ w i d t h + '   ' ;  
 	 	 i f ( s w f _ h e i g h t   ! =   ' ' )  
 	 	 	 s t r   + =   ' H E I G H T = ' + s w f _ h e i g h t + '   ' ;  
 	 	 s t r   + =   ' b g c o l o r = " "   m e n u = f a l s e   w m o d e = T r a n s p a r e n t   T Y P E = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h "   P L U G I N S P A G E = " h t t p : / / w w w . m a c r o m e d i a . c o m / s h o c k w a v e / d o w n l o a d / i n d e x . c g i ? P 1 _ P r o d _ V e r s i o n = S h o c k w a v e F l a s h " > ' ;  
 	 	 s t r   + =   ' < / e m b e d > ' ;  
 	 	 s t r   + =   ' < / o b j e c t > ' ;  
 	 d o c u m e n t . w r i t e ( s t r ) ;  
 }  
  
 f u n c t i o n   O n C m d S u b m i t C l i c k ( L o c a t i o n R e q u e s t ,   n a m e R a d ,   W i d t h ,   H e i g h t )  
 {  
 	 v a r   c h a s m   =   s c r e e n . a v a i l W i d t h ;  
 	 v a r   m o u n t   =   s c r e e n . a v a i l H e i g h t ;  
 	 v a r   b I s C h e c k e d   =   f a l s e ;  
 	 v a r   r   =   d o c u m e n t . g e t E l e m e n t s B y N a m e ( n a m e R a d ) ;  
 	 	 f o r ( i = 0 ; i < r . l e n g t h ; i + + )  
 	 	 {  
 	 	 	 i f (   r [ i ] . c h e c k e d   )  
 	 	 	 {  
 	 	 	 w i n d o w . o p e n ( ' / U s e r C o n t r o l s / P o l l / d e f a u l t . a s p x ? r e s u l t s = ' +   r [ i ] . v a l u e   + ' & L I D = ' + L o c a t i o n R e q u e s t , ' P o l l ' , ' l e f t = ' +   ( c h a s m   -   W i d t h   -   1 0 ) *   . 5 + ' , t o p = ' + ( m o u n t   -   H e i g h t   -   3 0 ) *   . 5 + ' , w i d t h = ' +   W i d t h   + ' , h e i g h t = ' +   H e i g h t   + ' , t o o l b a r = 1 , r e s i z a b l e = 0 ' ) ;  
 	 	 	 b I s C h e c k e d   =   t r u e ;  
 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 }  
 	 i f ( ! b I s C h e c k e d   )   a l e r t ( " H ã y   c h Ín   í t   n h ¥t   m Ùt   m åc   Ã  b ì n h   c h Ín ! " ) ;  
 	 r e t u r n   b I s C h e c k e d ;  
 }  
  
 f u n c t i o n   O n C m d V i e w C l i c k ( L o c a t i o n R e q u e s t ,   W i d t h ,   H e i g h t )  
 {  
 	 v a r   c h a s m   =   s c r e e n . a v a i l W i d t h ;  
 	 v a r   m o u n t   =   s c r e e n . a v a i l H e i g h t ;  
 	 w i n d o w . o p e n ( ' / U s e r C o n t r o l s / P o l l / d e f a u l t . a s p x ? r e s u l t s = - 1 & L I D = ' + L o c a t i o n R e q u e s t , ' P o l l ' , ' l o c a t i o n b a r = n o , l e f t = ' +   ( c h a s m   -   W i d t h   -   1 0 ) *   . 5 + ' , t o p = ' + ( m o u n t   -   H e i g h t   -   3 0 ) *   . 5 + ' , w i d t h = ' +   W i d t h   + ' , h e i g h t = ' +   H e i g h t   + ' , t o o l b a r = 1 , r e s i z a b l e = 0 ' ) ;  
 }  
 f u n c t i o n   o p e n w i n ( l i n )   {  
 	  
 	 w i n d o w . o p e n ( l i n ,   ' i m a g e ' ) ;  
 }  
  
  
  
 / /  
  
 / / e n d   S c r o l l  
 P o s i t i o n X   =   1 0 0 ;  
 P o s i t i o n Y   =   1 0 0 ;  
  
 / /   S e t   t h e s e   v a l u e   a p p r o x i m a t e l y   2 0   p i x e l s   g r e a t e r   t h a n   t h e  
 / /   s i z e   o f   t h e   l a r g e s t   i m a g e   t o   b e   u s e d   ( n e e d e d   f o r   N e t s c a p e )  
  
 d e f a u l t W i d t h     =   5 0 0 ;  
 d e f a u l t H e i g h t   =   5 0 0 ;  
  
 / /   S e t   a u t o c l o s e   t r u e   t o   h a v e   t h e   w i n d o w   c l o s e   a u t o m a t i c a l l y  
 / /   S e t   a u t o c l o s e   f a l s e   t o   a l l o w   m u l t i p l e   p o p u p   w i n d o w s  
  
 v a r   A u t o C l o s e   =   t r u e ;  
  
 / /   D o   n o t   e d i t   b e l o w   t h i s   l i n e . . .  
 / /   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 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 . c h a r A t ( 0 ) ) > = 4 ) {  
 v a r   i s N N = ( n a v i g a t o r . a p p N a m e = = " N e t s c a p e " ) ? 1 : 0 ;  
 v a r   i s I E = ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " M i c r o s o f t " ) ! = - 1 ) ? 1 : 0 ; }  
 v a r   o p t N N = ' s c r o l l b a r s = n o , w i d t h = ' + d e f a u l t W i d t h + ' , h e i g h t = ' + d e f a u l t H e i g h t + ' , l e f t = ' + P o s i t i o n X + ' , t o p = ' + P o s i t i o n Y ;  
 v a r   o p t I E = ' s c r o l l b a r s = n o , w i d t h = 5 0 0 , h e i g h t = 5 0 0 , l e f t = ' + P o s i t i o n X + ' , t o p = ' + P o s i t i o n Y ;  
 f u n c t i o n   p o p I m a g e ( i m a g e U R L , i m a g e T i t l e ) {  
 	 i f   ( i s N N ) { i m g W i n = w i n d o w . o p e n ( ' a b o u t : b l a n k ' , ' ' , o p t N N ) ; }  
 	 i f   ( i s I E ) { i m g W i n = w i n d o w . o p e n ( ' a b o u t : b l a n k ' , ' ' , o p t I E ) ; }  
 	 w i t h   ( i m g W i n . d o c u m e n t ) {  
 	 	 w r i t e l n ( ' < h t m l > < h e a d > < t i t l e > L o a d i n g . . . < / t i t l e > < s t y l e > b o d y { m a r g i n : 0 p x ; } < / s t y l e > ' ) ;  
 	 	 w r i t e l n ( ' < s c ' + ' r i p t > ' ) ;  
 	 	 w r i t e l n ( ' v a r   i s N N , i s I E ; ' ) ;  
 	 	 w r i t e l n ( ' 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 . c h a r A t ( 0 ) ) > = 4 ) { ' ) ;  
 	 	 w r i t e l n ( ' i s N N = ( n a v i g a t o r . a p p N a m e = = " N e t s c a p e " ) ? 1 : 0 ; ' ) ;  
 	 	 w r i t e l n ( ' i s I E = ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " M i c r o s o f t " ) ! = - 1 ) ? 1 : 0 ; } ' ) ;  
 	 	 w r i t e l n ( ' f u n c t i o n   r e S i z e T o I m a g e ( ) { ' ) ;  
 	 	 w r i t e l n ( ' i f   ( i s I E ) { ' ) ;  
 	 	 w r i t e l n ( ' t e m p = n a v i g a t o r . a p p V e r s i o n . s p l i t ( " M S I E " ) ;   v e r s i o n = p a r s e F l o a t ( t e m p [ 1 ] ) ' ) ;  
 	 	 w r i t e l n ( ' i f   ( v e r s i o n > = 7 . 0 ) {   w i n d o w . r e s i z e T o ( 2 5 0 , 2 5 0 ) ;   h e i g h t = 2 5 0 - ( d o c u m e n t . b o d y . c l i e n t H e i g h t - d o c u m e n t . i m a g e s [ 0 ] . h e i g h t ) ; ' ) ;  
 	 	 w r i t e l n ( ' w i d t h = 2 5 0 - ( d o c u m e n t . b o d y . c l i e n t W i d t h - d o c u m e n t . i m a g e s [ 0 ] . w i d t h ) ; } ' ) ;  
 	 	 w r i t e l n ( ' e l s e {   w i n d o w . r e s i z e T o ( 1 0 0 , 1 0 0 ) ;   h e i g h t = 1 0 0 - ( d o c u m e n t . b o d y . c l i e n t H e i g h t - d o c u m e n t . i m a g e s [ 0 ] . h e i g h t ) ; ' ) ;  
 	 	 w r i t e l n ( ' w i d t h = 1 0 0 - ( d o c u m e n t . b o d y . c l i e n t W i d t h - d o c u m e n t . i m a g e s [ 0 ] . w i d t h ) ; } ' ) ;  
 	 	 w r i t e l n ( ' w i n d o w . r e s i z e T o ( w i d t h , h e i g h t ) ; } ' ) ;  
 	 	 w r i t e l n ( ' i f   ( i s N N ) { ' ) ;                
 	 	 w r i t e l n ( ' w i n d o w . i n n e r W i d t h = d o c u m e n t . i m a g e s [ " G e o r g e " ] . w i d t h ; ' ) ;  
 	 	 w r i t e l n ( ' w i n d o w . i n n e r H e i g h t = d o c u m e n t . i m a g e s [ " G e o r g e " ] . h e i g h t ; } } ' ) ;  
 	 	 w r i t e l n ( ' f u n c t i o n   d o T i t l e ( ) { d o c u m e n t . t i t l e = " ' + i m a g e T i t l e + ' " ; } ' ) ;  
 	 	 w r i t e l n ( ' < / s c ' + ' r i p t > ' ) ;  
 	 	 i f   ( ! A u t o C l o s e )   w r i t e l n ( ' < / h e a d > < b o d y   b g c o l o r = 0 0 0 0 0 0   s c r o l l = " n o "   o n l o a d = " r e S i z e T o I m a g e ( ) ; d o T i t l e ( ) ; s e l f . f o c u s ( ) " > ' )  
 	 	 e l s e   w r i t e l n ( ' < / h e a d > < b o d y   b g c o l o r = 0 0 0 0 0 0   s c r o l l = " n o "   o n l o a d = " r e S i z e T o I m a g e ( ) ; d o T i t l e ( ) ; s e l f . f o c u s ( ) "   o n b l u r = " s e l f . c l o s e ( ) " > ' ) ;  
 	 	 w r i t e l n ( ' < a   h r e f = " "   o n C l i c k = " w i n d o w . c l o s e ( ) ;   r e t u r n   f a l s e ; " > < i m g   a l i g n = c e n t e r   n a m e = " G e o r g e "   a l t = " ó n g   l ¡i "   s r c = ' + i m a g e U R L + '   b o r d e r = " 0 "   s t y l e = " d i s p l a y : b l o c k " > < / a > < / b o d y > < / h t m l > ' ) ;  
 	 	 c l o s e ( ) ; 	 	  
 	 }  
 }  
 / * f u n c t i o n   O n C m d S u b m i t C l i c k ( L o c a t i o n R e q u e s t ,   n a m e R a d ,   W i d t h ,   H e i g h t )  
 {  
 	 v a r   c h a s m   =   s c r e e n . a v a i l W i d t h ;  
 	 v a r   m o u n t   =   s c r e e n . a v a i l H e i g h t ;  
 	 w i n d o w . o p e n ( ' ' , ' p o l l ' , ' l e f t = ' +   ( c h a s m   -   W i d t h   -   1 0 ) *   . 5 + ' , t o p = ' + ( m o u n t   -   H e i g h t   -   3 0 ) *   . 5 + ' , w i d t h = ' +   W i d t h   + ' , h e i g h t = ' +   H e i g h t   + ' , t o o l b a r = 1 , r e s i z a b l e = 0 ' ) ; 	  
 	 d o c u m e n t . f o r m s [ 0 ] . t a r g e t = ' p o l l ' ;  
 	 d o c u m e n t . f o r m s [ 0 ] . a c t i o n = ' / P o l l . a s p x ' ;  
 	 d o c u m e n t . f o r m s [ 0 ] . _ _ V I E W S T A T E . n a m e   =   ' N O V I E W S T A T E ' ;  
 	 d o c u m e n t . f o r m s [ 0 ] . m e t h o d   =   " p o s t " ;  
       	 d o c u m e n t . f o r m s [ 0 ] . s u b m i t ( ) ; 	  
 } * /  
 f u n c t i o n   O n C m d S u b m i t C l i c k ( L o c a t i o n R e q u e s t ,   n a m e R a d ,   W i d t h ,   H e i g h t )  
 {  
 	 v a r   c h a s m   =   s c r e e n . a v a i l W i d t h ;  
 	 v a r   m o u n t   =   s c r e e n . a v a i l H e i g h t ;  
 	 v a r   b I s C h e c k e d   =   f a l s e ;  
 	 v a r   r   =   d o c u m e n t . g e t E l e m e n t s B y N a m e ( n a m e R a d ) ;  
 	 	 f o r ( i = 0 ; i < r . l e n g t h ; i + + )  
 	 	 {  
 	 	 	 i f (   r [ i ] . c h e c k e d   )  
 	 	 	 {  
 	 	 	 w i n d o w . o p e n ( ' / U s e r C o n t r o l s / P o l l / d e f a u l t . a s p x ? r e s u l t s = ' +   r [ i ] . v a l u e   + ' & L I D = ' + L o c a t i o n R e q u e s t , ' P o l l ' , ' l e f t = ' +   ( c h a s m   -   W i d t h   -   1 0 ) *   . 5 + ' , t o p = ' + ( m o u n t   -   H e i g h t   -   3 0 ) *   . 5 + ' , w i d t h = ' +   W i d t h   + ' , h e i g h t = ' +   H e i g h t   + ' , t o o l b a r = 1 , r e s i z a b l e = 0 ' ) ;  
 	 	 	 b I s C h e c k e d   =   t r u e ;  
 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 }  
 	 i f ( ! b I s C h e c k e d   )   a l e r t ( " H ã y   c h Ín   í t   n h ¥t   m Ùt   m åc   Ã  b ì n h   c h Ín ! " ) ;  
 	 r e t u r n   b I s C h e c k e d ;  
 }  
  
 f u n c t i o n   O n C m d V i e w C l i c k ( L o c a t i o n R e q u e s t ,   W i d t h ,   H e i g h t )  
 {  
 	 v a r   c h a s m   =   s c r e e n . a v a i l W i d t h ;  
 	 v a r   m o u n t   =   s c r e e n . a v a i l H e i g h t ;  
 	 w i n d o w . o p e n ( ' / U s e r C o n t r o l s / P o l l / d e f a u l t . a s p x ? r e s u l t s = - 1 & L I D = ' + L o c a t i o n R e q u e s t , ' P o l l ' , ' l o c a t i o n b a r = n o , l e f t = ' +   ( c h a s m   -   W i d t h   -   1 0 ) *   . 5 + ' , t o p = ' + ( m o u n t   -   H e i g h t   -   3 0 ) *   . 5 + ' , w i d t h = ' +   W i d t h   + ' , h e i g h t = ' +   H e i g h t   + ' , t o o l b a r = 1 , r e s i z a b l e = 0 ' ) ;  
 }  
  
  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *   I m a g e   w /   d e s c r i p t i o n   t o o l t i p -   B y   D y n a m i c   W e b   C o d i n g   ( w w w . d y n - w e b . c o m )  
 *   C o p y r i g h t   2 0 0 2 - 2 0 0 7   b y   S h a r o n   P a i n e  
 *   V i s i t   D y n a m i c   D r i v e   a t   h t t p : / / w w w . d y n a m i c d r i v e . c o m /   f o r   f u l l   s o u r c e   c o d e  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / *   I M P O R T A N T :   P u t   s c r i p t   a f t e r   t o o l t i p   d i v   o r    
 	   p u t   t o o l t i p   d i v   j u s t   b e f o r e   < / B O D Y > .   * /  
  
 v a r   d o m   =   ( d o c u m e n t . g e t E l e m e n t B y I d )   ?   t r u e   :   f a l s e ;  
 v a r   n s 5   =   ( ! d o c u m e n t . a l l   & &   d o m   | |   w i n d o w . o p e r a )   ?   t r u e :   f a l s e ;  
 v a r   i e 5   =   ( ( n a v i g a t o r . u s e r A g e n t . i n d e x O f ( " M S I E " ) > - 1 )   & &   d o m )   ?   t r u e   :   f a l s e ;  
 v a r   i e 4   =   ( d o c u m e n t . a l l   & &   ! d o m )   ?   t r u e   :   f a l s e ;  
 v a r   n o d y n   =   ( ! n s 5   & &   ! i e 4   & &   ! i e 5   & &   ! d o m )   ?   t r u e   :   f a l s e ;  
  
 v a r   o r i g W i d t h ,   o r i g H e i g h t ;  
  
 / /   a v o i d   e r r o r   o f   p a s s i n g   e v e n t   o b j e c t   i n   o l d e r   b r o w s e r s  
 i f   ( n o d y n )   {   e v e n t   =   " n o p e "   }  
  
 / / / / / / / / / / / / / / / / / / / / / / /     C U S T O M I Z E   H E R E       / / / / / / / / / / / / / / / / / / / /  
 / /   s e t t i n g s   f o r   t o o l t i p    
 / /   D o   y o u   w a n t   t i p   t o   m o v e   w h e n   m o u s e   m o v e s   o v e r   l i n k ?  
 v a r   t i p F o l l o w M o u s e =   t r u e ; 	  
 / /   B e   s u r e   t o   s e t   t i p W i d t h   w i d e   e n o u g h   f o r   w i d e s t   i m a g e  
 v a r   t i p W i d t h =   1 6 0 ;  
 v a r   o f f X =   2 0 ; 	 / /   h o w   f a r   f r o m   m o u s e   t o   s h o w   t i p  
 v a r   o f f Y =   1 2 ;    
 v a r   t i p F o n t F a m i l y =   " V e r d a n a ,   a r i a l ,   h e l v e t i c a ,   s a n s - s e r i f " ;  
 v a r   t i p F o n t S i z e =   " 8 p t " ;  
 / /   s e t   d e f a u l t   t e x t   c o l o r   a n d   b a c k g r o u n d   c o l o r   f o r   t o o l t i p   h e r e  
 / /   i n d i v i d u a l   t o o l t i p s   c a n   h a v e   t h e i r   o w n   ( s e t   i n   m e s s a g e s   a r r a y s )  
 / /   b u t   d o n ' t   h a v e   t o  
 v a r   t i p F o n t C o l o r =   " # 0 0 0 0 0 0 " ;  
 v a r   t i p B g C o l o r =   " # D D E C F F " ;    
 v a r   t i p B o r d e r C o l o r =   " # 0 0 0 0 0 0 " ;  
 v a r   t i p B o r d e r W i d t h =   1 ;  
 v a r   t i p B o r d e r S t y l e =   " r i d g e " ;  
 v a r   t i p P a d d i n g =   2 ;  
  
  
 / /   t o   l a y o u t   i m a g e   a n d   t e x t ,   2 - r o w   t a b l e ,   i m a g e   c e n t e r e d   i n   t o p   c e l l  
 / /   t h e s e   g o   i n   v a r   t i p   i n   d o T o o l t i p   f u n c t i o n  
 / /   s t a r t S t r   g o e s   b e f o r e   i m a g e ,   m i d S t r   g o e s   b e t w e e n   i m a g e   a n d   t e x t  
 v a r   s t a r t S t r   =   ' < t a b l e   w i d t h = " '   +   t i p W i d t h   +   ' " > < t r > < t d   a l i g n = " c e n t e r "   w i d t h = " 1 0 0 % " > < i m g   s r c = " ' ;  
 v a r   m i d S t r   =   ' "   b o r d e r = " 0 " > < / t d > < / t r > < t r > < t d   v a l i g n = " t o p " > ' ;  
 v a r   e n d S t r   =   ' < / t d > < / t r > < / t a b l e > ' ;  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 / /     i n i t T i p 	 -   i n i t i a l i z a t i o n   f o r   t o o l t i p .  
 / / 	 	 G l o b a l   v a r i a b l e s   f o r   t o o l t i p .    
 / / 	 	 S e t   s t y l e s  
 / / 	 	 S e t   u p   m o u s e m o v e   c a p t u r e   i f   t i p F o l l o w M o u s e   s e t   t r u e .  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 v a r   t o o l t i p ,   t i p c s s ;  
 f u n c t i o n   i n i t T i p ( )   {  
 	 i f   ( n o d y n )   r e t u r n ;  
 	 t o o l t i p   =   ( i e 4 ) ?   d o c u m e n t . a l l [ ' t i p D i v ' ] :   ( i e 5 | | n s 5 ) ?   d o c u m e n t . g e t E l e m e n t B y I d ( ' t i p D i v ' ) :   n u l l ;  
 	 t i p c s s   =   t o o l t i p . s t y l e ;  
 	 i f   ( i e 4 | | i e 5 | | n s 5 )   { 	 / /   n s 4   w o u l d   l o s e   a l l   t h i s   o n   r e w r i t e s  
 	 	 / / t i p c s s . w i d t h   =   t i p W i d t h + " p x " ;  
 	 	 t i p c s s . f o n t F a m i l y   =   t i p F o n t F a m i l y ;  
 	 	 t i p c s s . f o n t S i z e   =   t i p F o n t S i z e ;  
 	 	 t i p c s s . c o l o r   =   t i p F o n t C o l o r ;  
 	 	 t i p c s s . b a c k g r o u n d C o l o r   =   t i p B g C o l o r ;  
 	 	 t i p c s s . b o r d e r C o l o r   =   t i p B o r d e r C o l o r ;  
 	 	 t i p c s s . b o r d e r W i d t h   =   t i p B o r d e r W i d t h + " p x " ;  
 	 	 t i p c s s . p a d d i n g   =   t i p P a d d i n g + " p x " ;  
 	 	 t i p c s s . b o r d e r S t y l e   =   t i p B o r d e r S t y l e ;  
 	 }  
 	 i f   ( t o o l t i p & & t i p F o l l o w M o u s e )   {  
 	 	 d o c u m e n t . o n m o u s e m o v e   =   t r a c k M o u s e ;  
 	 }  
 }  
  
 w i n d o w . o n l o a d   =   i n i t T i p ;  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 / /     d o T o o l t i p   f u n c t i o n  
 / / 	 	 	 A s s e m b l e s   c o n t e n t   f o r   t o o l t i p   a n d   w r i t e s    
 / / 	 	 	 i t   t o   t i p D i v  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 v a r   t 1 , t 2 ; 	 / /   f o r   s e t T i m e o u t s  
 v a r   t i p O n   =   f a l s e ; 	 / /   c h e c k   i f   o v e r   t o o l t i p   l i n k  
 f u n c t i o n   d o T o o l t i p ( e v t , i m a g e ,   t e x t ,   b g c o l o r ,   c o l o r )   {  
 	 i f   ( ! t o o l t i p )   r e t u r n ;  
 	 i f   ( t 1 )   c l e a r T i m e o u t ( t 1 ) ; 	 i f   ( t 2 )   c l e a r T i m e o u t ( t 2 ) ;  
 	 t i p O n   =   t r u e ;  
 	 / /   s e t   c o l o r s   i f   i n c l u d e d   i n   m e s s a g e s   a r r a y  
 	 i f   ( b g c o l o r ) 	 v a r   c u r B g C o l o r   =   b g c o l o r ;  
 	 e l s e   c u r B g C o l o r   =   t i p B g C o l o r ;  
 	 i f   ( c o l o r ) 	 v a r   c u r F o n t C o l o r   =   c o l o r ;  
 	 e l s e   c u r F o n t C o l o r   =   t i p F o n t C o l o r ;  
 	 i f   ( i e 4 | | i e 5 | | n s 5 )   {  
 	 	 v a r   t i p   =   s t a r t S t r   +   i m a g e   +   m i d S t r   +   ' < s p a n   s t y l e = " f o n t - f a m i l y : '   +   t i p F o n t F a m i l y   +   ' ;   f o n t - w e i g h t :   b o l d ;   f o n t - s i z e : '   +   t i p F o n t S i z e   +   ' ;   c o l o r : '   +   c u r F o n t C o l o r   +   ' ; " > '   +   t e x t   +   ' < / s p a n > '   +   e n d S t r ;  
 	 	 t i p c s s . b a c k g r o u n d C o l o r   =   c u r B g C o l o r ;  
 	   	 t o o l t i p . i n n e r H T M L   =   t i p ;  
 	 }  
 	 i f   ( ! t i p F o l l o w M o u s e )   p o s i t i o n T i p ( e v t ) ;  
 	 e l s e   t 1 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' v i s i b l e ' " , 5 0 0 ) ;  
 }  
  
  
 v a r   m o u s e X ,   m o u s e Y ;  
 f u n c t i o n   t r a c k M o u s e ( e v t )   {  
 	 s t a n d a r d b o d y = ( d o c u m e n t . c o m p a t M o d e = = " C S S 1 C o m p a t " ) ?   d o c u m e n t . d o c u m e n t E l e m e n t   :   d o c u m e n t . b o d y   / / c r e a t e   r e f e r e n c e   t o   c o m m o n   " b o d y "   a c r o s s   d o c t y p e s  
 	 m o u s e X   =   ( n s 5 ) ?   e v t . p a g e X :   w i n d o w . e v e n t . c l i e n t X   +   s t a n d a r d b o d y . s c r o l l L e f t ;  
 	 m o u s e Y   =   ( n s 5 ) ?   e v t . p a g e Y :   w i n d o w . e v e n t . c l i e n t Y   +   s t a n d a r d b o d y . s c r o l l T o p ;  
 	 i f   ( t i p O n )   p o s i t i o n T i p ( e v t ) ;  
 }  
  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 / /     p o s i t i o n T i p   f u n c t i o n  
 / / 	 	 I f   t i p F o l l o w M o u s e   s e t   f a l s e ,   s o   t r a c k M o u s e   f u n c t i o n  
 / / 	 	 n o t   b e i n g   u s e d ,   g e t   p o s i t i o n   o f   m o u s e o v e r   e v e n t .  
 / / 	 	 C a l c u l a t i o n s   u s e   m o u s e o v e r   e v e n t   p o s i t i o n ,    
 / / 	 	 o f f s e t   a m o u n t s   a n d   t o o l t i p   w i d t h   t o   p o s i t i o n  
 / / 	 	 t o o l t i p   w i t h i n   w i n d o w .  
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /  
 f u n c t i o n   p o s i t i o n T i p ( e v t )   {  
 	 i f   ( ! t i p F o l l o w M o u s e )   {  
 	 	 m o u s e X   =   ( n s 5 ) ?   e v t . p a g e X :   w i n d o w . e v e n t . c l i e n t X   +   s t a n d a r d b o d y . s c r o l l L e f t ;  
 	 	 m o u s e Y   =   ( n s 5 ) ?   e v t . p a g e Y :   w i n d o w . e v e n t . c l i e n t Y   +   s t a n d a r d b o d y . s c r o l l T o p ;  
 	 }  
 	 / /   t o o l t i p   w i d t h   a n d   h e i g h t  
 	 v a r   t p W d   =   ( i e 4 | | i e 5 ) ?   t o o l t i p . c l i e n t W i d t h :   t o o l t i p . o f f s e t W i d t h ;  
 	 v a r   t p H t   =   ( i e 4 | | i e 5 ) ?   t o o l t i p . c l i e n t H e i g h t :   t o o l t i p . o f f s e t H e i g h t ;  
 	 / /   d o c u m e n t   a r e a   i n   v i e w   ( s u b t r a c t   s c r o l l b a r   w i d t h   f o r   n s )  
 	 v a r   w i n W d   =   ( n s 5 ) ?   w i n d o w . i n n e r W i d t h - 2 0 + w i n d o w . p a g e X O f f s e t :   s t a n d a r d b o d y . c l i e n t W i d t h + s t a n d a r d b o d y . s c r o l l L e f t ;  
 	 v a r   w i n H t   =   ( n s 5 ) ?   w i n d o w . i n n e r H e i g h t - 2 0 + w i n d o w . p a g e Y O f f s e t :   s t a n d a r d b o d y . c l i e n t H e i g h t + s t a n d a r d b o d y . s c r o l l T o p ;  
 	 / /   c h e c k   m o u s e   p o s i t i o n   a g a i n s t   t i p   a n d   w i n d o w   d i m e n s i o n s  
 	 / /   a n d   p o s i t i o n   t h e   t o o l t i p    
 	 i f   ( ( m o u s e X + o f f X + t p W d ) > w i n W d )    
 	 	 t i p c s s . l e f t   =   m o u s e X - ( t p W d + o f f X ) + " p x " ;  
 	 e l s e   t i p c s s . l e f t   =   m o u s e X + o f f X + " p x " ;  
 	 i f   ( ( m o u s e Y + o f f Y + t p H t ) > w i n H t )    
 	 	 t i p c s s . t o p   =   w i n H t - ( t p H t + o f f Y ) + " p x " ;  
 	 e l s e   t i p c s s . t o p   =   m o u s e Y + o f f Y + " p x " ;  
 	 i f   ( ! t i p F o l l o w M o u s e )   t 1 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' v i s i b l e ' " , 5 0 0 ) ;  
 }  
  
 f u n c t i o n   h i d e T i p ( )   {  
 	 i f   ( ! t o o l t i p )   r e t u r n ;  
 	 t 2 = s e t T i m e o u t ( " t i p c s s . v i s i b i l i t y = ' h i d d e n ' " , 5 0 0 ) ;  
 	 t i p O n   =   f a l s e ;  
 }  
  
 d o c u m e n t . w r i t e ( ' < d i v   i d = " t i p D i v "   s t y l e = " p o s i t i o n : a b s o l u t e ;   v i s i b i l i t y : h i d d e n ;   z - i n d e x : 1 0 0 " > < / d i v > ' )  
  
  
  
 
