ÿþf u n c t i o n   s h o w D a t e V N ( )  
 {  
 	 v a r   s t r d a t e ;  
 	 v a r   d t   =   n e w   D a t e ( ) ;  
                             v a r   s t r a r r D a y   =   n e w   A r r a y ( " C h ç  n h ­t " ,   " T h é  h a i " ,   " T h é  b a " ,   " T h é  t °" ,   " T h é  n m " ,   " T h é  s á u " ,   " T h é  b £y " ) ;    
                             v a r   s t r a r r M o n t h   =   n e w   A r r a y ( " 0 1 " , " 0 2 " , " 0 3 " , " 0 4 " , " 0 5 " , " 0 6 " , " 0 7 " , " 0 8 " , " 0 9 " , " 1 0 " , " 1 1 " , " 1 2 " ) ;    
                             v a r   s t r T h u   =   d t . g e t D a y ( ) ;  
                             s t r T h u   =   s t r a r r D a y [ s t r T h u ]   +   " ,   " ;  
                             v a r   s t r D a y = d t . g e t D a t e ( ) ;  
                             i f   ( s t r D a y < 1 0 )   s t r D a y = " 0 "   +   s t r D a y  
                             v a r   s t r M o n t h =   d t . g e t M o n t h ( ) ;  
                             s t r M o n t h =   s t r a r r M o n t h [ s t r M o n t h ]   ;  
                             v a r   s t r Y e a r s   =   d t . g e t Y e a r ( ) ;  
                             i f   ( s t r Y e a r s < 1 9 0 0 )   s t r Y e a r s   + =   1 9 0 0 ;  
                             s t r d a t e = s t r T h u   +   "   "   +   s t r D a y   +   " / "   +   s t r M o n t h   +   " / "   +   s t r Y e a r s  
                             w i n d o w . d o c u m e n t . w r i t e   ( s t r d a t e ) ;  
 }  
 f u n c t i o n   s h o w D a t e E N ( )  
 {  
 	 v a r   s t r d a t e ;  
 	 v a r   d t   =   n e w   D a t e ( ) ;  
                             v a r   s t r a r r D a y   =   n e w   A r r a y ( " S u n d a y " ,   " M o n d a y " ,   " T u e s d a y " ,   " W e d n e s d a y " ,   " T h u r s d a y " ,   " F r i d a y " ,   " S a t u r d a y " ) ;    
                             v a r   s t r a r r M o n t h   =   n e w   A r r a y ( " 0 1 " , " 0 2 " , " 0 3 " , " 0 4 " , " 0 5 " , " 0 6 " , " 0 7 " , " 0 8 " , " 0 9 " , " 1 0 " , " 1 1 " , " 1 2 " ) ;    
                             v a r   s t r T h u   =   d t . g e t D a y ( ) ;  
                             s t r T h u   =   s t r a r r D a y [ s t r T h u ]   +   " ,   " ;  
                             v a r   s t r D a y = d t . g e t D a t e ( ) ;  
                             i f   ( s t r D a y < 1 0 )   s t r D a y = " 0 "   +   s t r D a y  
                             v a r   s t r M o n t h =   d t . g e t M o n t h ( ) ;  
                             s t r M o n t h =   s t r a r r M o n t h [ s t r M o n t h ]   ;  
                             v a r   s t r Y e a r s   =   d t . g e t Y e a r ( ) ;  
                             i f   ( s t r Y e a r s < 1 9 0 0 )   s t r Y e a r s   + =   1 9 0 0 ;  
                             s t r d a t e = s t r T h u   +   "   "   +   s t r M o n t h   +   " / "   +   s t r D a y   +   " / "   +   s t r Y e a r s  
                             w i n d o w . d o c u m e n t . w r i t e   ( s t r d a t e ) ;  
 }  
 f u n c t i o n   s h o w D a t e C N ( )  
 {  
 	 v a r   s t r d a t e ;  
 	 v a r   d t   =   n e w   D a t e ( ) ;  
                             v a r   s t r a r r D a y   =   n e w   A r r a y ( " f  g  åe" ,   " f  g   N" ,   " f  g  ŒN" ,   " f  g  	N" ,   " f  g  ÛV" ,   " f  g  ”N" ,   " f  g  mQ" ) ;    
                             v a r   s t r a r r M o n t h   =   n e w   A r r a y ( " 0 1 " , " 0 2 " , " 0 3 " , " 0 4 " , " 0 5 " , " 0 6 " , " 0 7 " , " 0 8 " , " 0 9 " , " 1 0 " , " 1 1 " , " 1 2 " ) ;    
                             v a r   s t r T h u   =   d t . g e t D a y ( ) ;  
                             s t r T h u   =   s t r a r r D a y [ s t r T h u ]   +   " ,   " ;  
                             v a r   s t r D a y = d t . g e t D a t e ( ) ;  
                             i f   ( s t r D a y < 1 0 )   s t r D a y = " 0 "   +   s t r D a y  
                             v a r   s t r M o n t h =   d t . g e t M o n t h ( ) ;  
                             s t r M o n t h =   s t r a r r M o n t h [ s t r M o n t h ]   ;  
                             v a r   s t r Y e a r s   =   d t . g e t Y e a r ( ) ;  
                             i f   ( s t r Y e a r s < 1 9 0 0 )   s t r Y e a r s   + =   1 9 0 0 ;  
                             s t r d a t e = s t r T h u   +   "   "   +   s t r D a y   +   " / "   +   s t r M o n t h   +   " / "   +   s t r Y e a r s  
                             w i n d o w . d o c u m e n t . w r i t e   ( s t r d a t e ) ;  
 }  
 f u n c t i o n   o p e n p a g e ( p a g e u r l ,   p a g e n a m e ,   p a g e w i d t h ,   p a g e h e i g h t )    
 {                                                                                      
 	 v a r   a t t r ;                                                                                      
 	 a t t r = " w i d t h = " + p a g e w i d t h + " , h e i g h t = " + p a g e h e i g h t + " , s c r o l l b a r s = y e s , s t a t u s = n o , t i t l e = y e s , t o o l b a r s = y e s , r e s i z a b l e = n o " ;  
 	 w i n d o w . o p e n ( p a g e u r l ,   p a g e n a m e ,   a t t r ) ;                                                                                      
 }  
  
 f u n c t i o n   G e t P a g e ( C , P )  
 {  
 	 v a r   f r m S u b m i t = d o c u m e n t . f r m W e b s i t e ;  
 	 f r m S u b m i t . a c t i o n = " d e f a u l t . a s p x ? c = "   +   C   +   " & p = "   +   P   +   " # c o n t e n t " ;  
 	 f r m S u b m i t . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   G e t P a g e 1 ( P )  
 {  
 	 v a r   f r m S u b m i t = d o c u m e n t . f r m W e b s i t e ;  
 	 f r m S u b m i t . a c t i o n = " d e f a u l t . a s p x ? s = 1 & s t = 1 & p = "   +   P   +   " # c o n t e n t " ;  
 	 f r m S u b m i t . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   G e t P a g e 2 ( T , P )  
 {  
 	 v a r   f r m S u b m i t = d o c u m e n t . f r m W e b s i t e ;  
 	 f r m S u b m i t . a c t i o n = " d e f a u l t . a s p x ? t o p i c _ i d = "   +   T   +   " & p = "   +   P   +   " # c o n t e n t " ;  
 	 f r m S u b m i t . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   G e t P a g e 3 ( P )  
 {  
 	 v a r   f r m S u b m i t = d o c u m e n t . f r m W e b s i t e ;  
 	 f r m S u b m i t . a c t i o n = " d e f a u l t . a s p x ? s = 1 "   +   " & p = "   +   P   +   " # c o n t e n t " ;  
 	 f r m S u b m i t . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   d o A d v a n c e S e a r c h ( )  
 {  
 	 f r m W e b s i t e . a c t i o n = " d e f a u l t . a s p x ? s = 1 & s t = 1 # c o n t e n t " ;  
 	 f r m W e b s i t e . s u b m i t ( ) ;  
 }  
  
 f u n c t i o n   t r i m ( t e x t )  
 {  
 	 p o s 1 = 0 ;  
 	 p o s 2 = t e x t . l e n g t h - 1 ;  
 	 f o r ( i = 0 ; i < = t e x t . l e n g t h - 1 ; i + + )  
 	 	 i f ( t e x t . s u b s t r ( i , 1 ) = = "   " )   p o s 1 = i ;  
 	 	 e l s e   b r e a k ;  
 	 f o r ( i = l e n g t h - 1 ; i > = 0 ; i - - )  
 	 	 i f ( t e x t . s u b s t r ( i , 1 ) = = "   " )   p o s 2 = i ;  
 	 	 e l s e   b r e a k ;  
 	 i f   ( p o s 2 < p o s 1 )   r e t u r n   " " ;  
 	 r e t u r n   t e x t . s u b s t r ( p o s 1 , p o s 2 - p o s 1 ) ;  
 }  
  
 f u n c t i o n   t r i m s t r i n g ( s t r i n )  
 {    
 	 v a r   s t r t e m p ;  
 	 v a r   i ;    
 	 s t r t e m p = " " ;  
 	 i = 0 ;  
 	 i f   ( s t r i n . c h a r A t ( i ) ! = "   " ) { s t r t e m p = s t r t e m p + s t r i n . c h a r A t ( i ) ; }  
 	 f o r   ( v a r   i = 1 ; i < s t r i n . l e n g t h - 1 ; i + + ) {  
 	 	 i f   ( s t r i n . c h a r A t ( i ) = = "   " ) {  
 	 	 	 i f   ( s t r i n . c h a r A t ( i + 1 ) ! = "   " )   { s t r t e m p = s t r t e m p + s t r i n . c h a r A t ( i ) }  
 	 	 }  
 	 	 e l s e   { s t r t e m p = s t r t e m p + s t r i n . c h a r A t ( i ) }    
 	 }  
 	 i = s t r i n . l e n g t h ;  
 	 i f   ( s t r i n . c h a r A t ( i ) ! = "   " ) { s t r t e m p = s t r t e m p + s t r i n . c h a r A t ( i ) }  
 	 r e t u r n   s t r t e m p ;    
 }  
  
 f u n c t i o n   i m a g e _ c h a n g e ( o b j I m g ,   s t r I m g P a t h ,   i n t P r o I D ,   i n t C o u n t ,   s t r A r r )  
 {        
 	 v a r   a   =   n e w   A r r a y ( ) ;  
 	 v a r   k ;  
 	 / / l = s t r A r r . l e n g t h ;  
 	 a = s t r A r r . s p l i t ( " , " ) ;  
  
 	 v a r   o b j T e x t ;  
 	 o b j I m g . s r c = s t r I m g P a t h ;  
 	  
 	 f o r   ( k = 1 ; k < = i n t C o u n t ; k + + )    
 	 { 	  
 	 	 o b j T e x t   =   ' t b d _ '   +   a [ k ] ;  
 	 	 v a r   g = d o c u m e n t . a l l ( o b j T e x t ) ;  
 	 	 i f   ( a [ k ] = = i n t P r o I D )  
 	 	 {  
 	 	 	 g . s t y l e . d i s p l a y = ' b l o c k ' ;  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 g . s t y l e . d i s p l a y = ' n o n e ' ;  
 	 	 }  
 	 } 	  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   i m a g e _ f i r s t s h o w ( o b j I m g ,   s t r I m g P a t h ,   i n t P r o I D ,   i n t C o u n t ,   s t r A r r ,   i n t C u r P r o I D )  
 {        
 	 i f   ( i n t C u r P r o I D = = i n t P r o I D )  
 	 {  
 	 	 v a r   a   =   n e w   A r r a y ( ) ;  
 	 	 v a r   k ;  
 	 	 / / l = s t r A r r . l e n g t h ;  
 	 	 a = s t r A r r . s p l i t ( " , " ) ;  
  
 	 	 v a r   o b j T e x t ;  
 	 	 o b j I m g . s r c = s t r I m g P a t h ;  
  
 	 	 f o r   ( k = 1 ; k < = i n t C o u n t ; k + + )    
 	 	 { 	  
 	 	 	 o b j T e x t   =   ' t b d _ '   +   a [ k ] ;  
 	 	 	 v a r   g = d o c u m e n t . a l l ( o b j T e x t ) ;  
 	 	 	 i f   ( a [ k ] = = i n t P r o I D )  
 	 	 	 {  
 	 	 	 	 g . s t y l e . d i s p l a y = ' b l o c k ' ;  
 	 	 	 }  
 	 	 	 e l s e  
 	 	 	 {  
 	 	 	 	 g . s t y l e . d i s p l a y = ' n o n e ' ;  
 	 	 	 }  
 	 	 }  
 	 } 	  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   m e n u _ s h o w ( i n t C a t I D   , i n t C o u n t ,   s t r A r r )  
 {        
 	 	 v a r   a   =   n e w   A r r a y ( ) ;  
 	 	 v a r   k ;  
 	 	 / / l = s t r A r r . l e n g t h ;  
 	 	 a = s t r A r r . s p l i t ( " , " ) ;  
  
 	 	 v a r   o b j T e x t ;  
 	 	 f o r   ( k = 1 ; k < = i n t C o u n t ; k + + )    
 	 	 { 	  
 	 	 	 o b j T e x t   =   ' t b c a t _ '   +   a [ k ] ;  
 	 	 	 v a r   g = d o c u m e n t . a l l ( o b j T e x t ) ;  
 	 	 	 i f   ( a [ k ] = = i n t C a t I D )  
 	 	 	 { 	 / / i f   ( g . s t y l e . d i s p l a y = = ' n o n e ' )  
 	 	 	 	 / / {  
 	 	 	 	 	 g . s t y l e . d i s p l a y = ' b l o c k ' ; 	 	 	 	 	 	 	 	 	 	  
 	 	 	 	 }  
 	 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 	 g . s t y l e . d i s p l a y = ' n o n e ' ; 	 	 	 	 	  
 	 	 	 	 / / } 	 	 	 	  
 	 	 	 } 	 	 	  
 	 	 } 	 	 	 	  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   m e n u _ s h o w f i r s t ( i n t C a t I D )  
 {        
 	 v a r   o b j T e x t ;  
 	 o b j T e x t   =   ' t b c a t _ '   +   i n t C a t I D ;  
 	 v a r   g = d o c u m e n t . a l l ( o b j T e x t ) ; 	 	  
 	 g . s t y l e . d i s p l a y = ' b l o c k ' ; 	 	  
 	 r e t u r n   t r u e ;  
 }  
  
  
 	 	 f u n c t i o n   d o C l i c k ( c t r l N a m e ,   e )  
 	 	 {  
 	 	 	 v a r   k e y ;  
 	 	 	 i f   ( w i n d o w . e v e n t )  
 	 	 	 	 k e y = w i n d o w . e v e n t . k e y C o d e ;  
 	 	 	 e l s e  
 	 	 	 	 k e y = e . w h i c h ; 	 	 	 	 	  
 	 	 	  
 	 	 	 i f   ( k e y   = =   1 3 )  
 	 	 	 {  
 	 	 	 	 / / G e t   t h e   b u t t o n   t h e   u s e r   w a n t s   t o   h a v e   c l i c k e d  
 	 	 	 	 v a r   c t r l   =   d o c u m e n t . g e t E l e m e n t B y I d ( c t r l N a m e ) ;  
 	 	 	 	 i f   ( c t r l   ! =   n u l l )  
 	 	 	 	 {   / / I f   w e   f i n d   t h e   b u t t o n   c l i c k   i t  
 	 	 	 	 	 c t r l . f o c u s ( ) ;  
 	 	 	 	 	 e v e n t . k e y C o d e   =   0 ;  
 	 	 	 	 } 	 	 	 	  
 	 	 	 }  
 	 	 }  
 	 	  
 	 	 f u n c t i o n   d o S u b m i t ( b t n N a m e ,   e )  
 	 	 {  
 	 	 	 v a r   k e y ;  
 	 	 	 i f   ( w i n d o w . e v e n t )  
 	 	 	 	 k e y = w i n d o w . e v e n t . k e y C o d e ;  
 	 	 	 e l s e  
 	 	 	 	 k e y = e . w h i c h ;  
 	 	 	   i f   ( k e y   = =   1 3 )  
 	 	 	 {  
 	 	 	 	 / / G e t   t h e   b u t t o n   t h e   u s e r   w a n t s   t o   h a v e   c l i c k e d  
 	 	 	 	 v a r   b t n   =   d o c u m e n t . g e t E l e m e n t B y I d ( b t n N a m e ) ;  
 	 	 	 	 i f   ( b t n   ! =   n u l l )  
 	 	 	 	 {   / / I f   w e   f i n d   t h e   b u t t o n   c l i c k   i t  
 	 	 	 	 	 b t n . c l i c k ( ) ;  
 	 	 	 	 	 e v e n t . k e y C o d e   =   0 ;  
 	 	 	 	 }  
 	 	 	 }  
 	 	 } 	 	 	 	 	 	  
 	 	  
 f u n c t i o n   p o p u p I m a g e ( s r c ,   n o t e ,   t i t l e ,   c s s ,   b o r d e r )    
 {  
         v a r   p p i m g N W ;  
         i f   ( b o r d e r = = n u l l )   b o r d e r   =   0 ;  
         i f   ( n o t e = = n u l l )   n o t e   =   ' ' ;  
         i f   ( p p i m g N W   ! =   n u l l )   p p i m g N W . c l o s e ( ) ;  
         p p i m g N W   =   w i n d o w . o p e n ( ' ' , ' _ b l a n k ' , ' w i d t h = 5 0 0 , h e i g h t = 5 0 0 ' ) ;  
         v a r   d o c   =   p p i m g N W . d o c u m e n t ;  
         d o c . w r i t e ( ' < h t m l > ' ) ;  
         d o c . w r i t e ( ' < h e a d > ' ) ;  
         i f   ( t i t l e ! = n u l l )   d o c . w r i t e ( ' < t i t l e > ' +   t i t l e   + ' < / t i t l e > ' ) ;  
         d o c . w r i t e ( ' < s t y l e >   b o d y   { ' + c s s + ' }   # p p I m g T e x t { ' +   c s s   + ' }   # p p I m g { c u r s o r : h a n d } < / s t y l e > < / h e a d > ' ) ;  
         d o c . w r i t e ( ' < b o d y   l e f t m a r g i n = " 0 "   t o p m a r g i n = " '   +   b o r d e r   +   ' "   o n l o a d = " d o R e s i z e ( ) ; " > ' ) ;  
         d o c . w r i t e ( ' < d i v   a l i g n = " c e n t e r "   > ' ) ;  
         d o c . w r i t e ( ' < i m g   s r c = " '   +   s r c   +   ' "   i d = " p p I m g "   o n c l i c k = " s e l f . c l o s e ( ) ; "   t i t l e = " C l o s e " > ' ) ;  
         d o c . w r i t e ( ' < / d i v > ' ) ;  
         d o c . w r i t e ( ' < d i v   s t y l e = " h e i g h t : 1 ;   w i d t h : '   +   b o r d e r   +   ' ;   f o n t - s i z e : 4 p t ; " > ' ) ;  
         d o c . w r i t e ( ' < / d i v > ' ) ;  
         d o c . w r i t e ( ' < d i v   i d = " p p I m g T e x t "   a l i g n = " c e n t e r "   > ' ) ;  
         d o c . w r i t e ( n o t e ) ;  
         d o c . w r i t e ( ' < / d i v > ' ) ;  
         d o c . w r i t e ( ' < / b o d y > ' ) ;  
         d o c . w r i t e ( ' < / h t m l > ' ) ;  
         d o c . w r i t e ( ' < '   +   ' s c r i p t > ' ) ;  
         d o c . w r i t e ( ' f u n c t i o n   d o R e s i z e ( )   { ' ) ;  
         d o c . w r i t e ( '     v a r   i m g W   =   p p I m g . w i d t h ,   i m g H   =   p p I m g . h e i g h t ; ' ) ;        
         d o c . w r i t e ( '     w i n d o w . r e s i z e T o ( i m g W   +   2 4   + '   +   b o r d e r * 2   + ' ,   i m g H   +   p p I m g T e x t . o f f s e t H e i g h t   +   5 4   +   ' +   b o r d e r * 2   + ' ) ; ' ) ;  
         d o c . w r i t e ( '     s e t T i m e o u t ( \ ' d o R e s i z e ( ) \ ' ,   1 0 0 0 ) ; ' ) ;  
         d o c . w r i t e ( ' } ' ) ;  
         d o c . w r i t e ( ' d o R e s i z e ( ) ;   ' ) ;  
         d o c . w r i t e ( ' < / '   +   ' s c r i p t > ' ) ;  
 }  
  
 f u n c t i o n   c h e c k S e a r c h ( M y F o r m )    
 {  
 	 v a r   k e y w o r d = t r i m s t r i n g ( M y F o r m . k e y w o r d . v a l u e ) ;  
 	 i f   ( k e y w o r d = = " " )    
 	 {    
 	 	 a l e r t ( " V u i   l o n g   n h a p   t h o n g   t i n   d e   t i m   k i e m " ) ;    
 	 	 M y F o r m . k e y w o r d . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 i f   ( ( k e y w o r d . s e a r c h ( " s c r i p " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " o b j e c " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " a p p l e " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " T h o n g   t i n   t i m   k i e m   k h o n g   h o p   l e . " ) ;  
 	 	 M y F o r m . k e y w o r d . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   c h e c k S e a r c h E N ( M y F o r m )    
 {  
 	 v a r   k e y w o r d = t r i m s t r i n g ( M y F o r m . k e y w o r d . v a l u e ) ;  
 	 i f   ( k e y w o r d = = " " )    
 	 {    
 	 	 a l e r t ( " P l e a s e   i n p u t   y o u r   k e y w o r d " ) ;    
 	 	 M y F o r m . k e y w o r d . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 i f   ( ( k e y w o r d . s e a r c h ( " s c r i p " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " o b j e c " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " a p p l e " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " Y o u r   k e y w o r d   i s   n o t   v a l i d . " ) ;  
 	 	 M y F o r m . k e y w o r d . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   c h e c k S e a r c h _ D e t a i l ( M y F o r m )    
 {  
 	 v a r   k e y w o r d = t r i m s t r i n g ( M y F o r m . k e y w o r d . v a l u e ) ;  
 	  
 	 i f   ( ( k e y w o r d . s e a r c h ( " s c r i p " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " o b j e c " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " a p p l e " ) > = 0 ) | | ( k e y w o r d . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " T h o n g   t i n   t i m   k i e m   k h o n g   h o p   l e . " ) ;  
 	 	 M y F o r m . k e y w o r d . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   d o M o u s e O v e r M e n u L e v e l 2 ( i t e m )  
 {  
 	 f o r ( i = 0 ; i < i t e m . c h i l d r e n . l e n g t h ; i + + )    
 	 {  
 	 	 i t e m . c h i l d r e n ( i ) . s t y l e . c u r s o r = ' h a n d ' ;    
 	 	 i t e m . c h i l d r e n ( i ) . s t y l e . b a c k g r o u n d C o l o r = ' # F C F 8 D 4 '  
 	 }  
 }  
 	  
 f u n c t i o n   d o M o u s e O u t M e n u L e v e l 2 ( i t e m , s t r B g c o l o r )  
 {  
 	 f o r ( i = 0 ; i < i t e m . c h i l d r e n . l e n g t h ; i + + )    
 	 	 i t e m . c h i l d r e n ( i ) . s t y l e . b a c k g r o u n d C o l o r = s t r B g c o l o r  
 }  
 	  
 f u n c t i o n   d o M o u s e C l i c k ( i t e m )  
 {  
 	 i t e m . f i r s t C h i l d . f i r s t C h i l d . c l i c k ( ) ;  
 }  
  
 f u n c t i o n   c h e c k F e e d b a c k F o r m ( f r m F o r m )  
 {  
 	 v a r   f u l l n a m e ;  
 	 v a r   c o n t e n t ;  
 	 f u l l n a m e = t r i m s t r i n g ( f r m F o r m . f u l l n a m e . v a l u e ) ;  
 	 i f   ( f u l l n a m e = = " " )   {  
 	 	 a l e r t ( " V u i   l o n g   n h a p   h o   t e n . " ) ;  
 	 	 f r m F o r m . f u l l n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( ( f u l l n a m e . s e a r c h ( " s c r i p " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " o b j e c " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " a p p l e " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " H o   t e n   k h o n g   h o p   l e . " ) ;  
 	 	 f r m F o r m . f u l l n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 c o n t e n t = t r i m s t r i n g ( f r m F o r m . c o n t e n t . v a l u e ) ;  
 	 i f   ( c o n t e n t = = " " )   {  
 	 	 a l e r t ( " V u i   l o n g   n h a p   n o i   d u n g . " ) ;  
 	 	 f r m F o r m . c o n t e n t . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( ( c o n t e n t . s e a r c h ( " s c r i p " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " o b j e c " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " a p p l e " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " N o i   d u n g   k h o n g   h o p   l e . " ) ;  
 	 	 f r m F o r m . c o n t e n t . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 	  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   c h e c k F e e d b a c k F o r m E N ( f r m F o r m )  
 {  
 	 v a r   f u l l n a m e ;  
 	 v a r   c o n t e n t ;  
 	 f u l l n a m e = t r i m s t r i n g ( f r m F o r m . f u l l n a m e . v a l u e ) ;  
 	 i f   ( f u l l n a m e = = " " )   {  
 	 	 a l e r t ( " P l e a s e   i n p u t   y o u r   f u l l n a m e . " ) ;  
 	 	 f r m F o r m . f u l l n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( ( f u l l n a m e . s e a r c h ( " s c r i p " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " o b j e c " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " a p p l e " ) > = 0 ) | | ( f u l l n a m e . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " Y o u r   f u l l n a m e   i s   n o t   v a l i d . " ) ;  
 	 	 f r m F o r m . f u l l n a m e . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 c o n t e n t = t r i m s t r i n g ( f r m F o r m . c o n t e n t . v a l u e ) ;  
 	 i f   ( c o n t e n t = = " " )   {  
 	 	 a l e r t ( " P l e a s e   i n p u t   y o u r   c o n t e n t . " ) ;  
 	 	 f r m F o r m . c o n t e n t . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 i f   ( ( c o n t e n t . s e a r c h ( " s c r i p " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " o b j e c " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " a p p l e " ) > = 0 ) | | ( c o n t e n t . s e a r c h ( " e m b e " ) > = 0 ) )  
 	 {  
 	 	 a l e r t ( " Y o u r   c o n t e n t   i s   n o t   v a l i d . " ) ;  
 	 	 f r m F o r m . c o n t e n t . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 	  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   S u b m i t _ o n c l i c k ( M y F o r m )  
 {    
 	 v a r   t x t f u l l n a m e _ s e n d e r = t r i m s t r i n g ( M y F o r m . f u l l n a m e _ s e n d e r . v a l u e ) ;  
 	 v a r   t x t e m a i l _ s e n d e r = t r i m f u l l s t r i n g ( M y F o r m . e m a i l _ s e n d e r . v a l u e ) ;    
 	 v a r   t x t f u l l n a m e _ r e c e i v e r = t r i m s t r i n g ( M y F o r m . f u l l n a m e _ r e c e i v e r . v a l u e ) ;    
 	 v a r   t x t e m a i l _ r e c e i v e r = t r i m f u l l s t r i n g ( M y F o r m . e m a i l _ r e c e i v e r . v a l u e ) ;    
 	 i f   ( t x t f u l l n a m e _ s e n d e r = = " " )    
 	 {    
 	 	 a l e r t   ( " V u i   l o n g   c u n g   c a p   h o   t e n   n g u o i   g u i . " ) ;    
 	 	 M y F o r m . f u l l n a m e _ s e n d e r . v a l u e = " " ;  
 	 	 M y F o r m . f u l l n a m e _ s e n d e r . f o c u s ( ) ;  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 	 i f   ( t x t e m a i l _ s e n d e r = = " " )    
 	 {    
 	 	 a l e r t   ( " V u i   l o n g   c u n g   c a p   e m a i l   c u a   n g u o i   g u i . " ) ;    
 	 	 M y F o r m . e m a i l _ s e n d e r . v a l u e = " " ;  
 	 	 M y F o r m . e m a i l _ s e n d e r . f o c u s ( ) ;    
 	 	 r e t u r n   f a l s e ;    
 	 }    
 	 i f   ( ! i s E m a i l ( t x t e m a i l _ s e n d e r ) )  
 	 {    
 	 	 a l e r t   ( " E m a i l   c u a   n g u o i   g u i   k h o n g   h o p   l e . " ) ;    
 	 	 M y F o r m . e m a i l _ s e n d e r . f o c u s ( ) ;    
 	 	 r e t u r n   f a l s e ;    
 	 }    
 	 i f   ( t x t f u l l n a m e _ r e c e i v e r = = " " )    
 	 {    
 	 	 a l e r t   ( " V u i   l o n g   c u n g   c a p   h o   t e n   n g u o i   n h a n . " ) ;    
 	 	 M y F o r m . f u l l n a m e _ r e c e i v e r . v a l u e = " " ;  
 	 	 M y F o r m . f u l l n a m e _ r e c e i v e r . f o c u s ( ) ;    
 	 	 r e t u r n   f a l s e ;    
 	 }    
 	 i f   ( t x t e m a i l _ r e c e i v e r = = " " )    
 	 {    
 	 	 a l e r t   ( " V u i   l o n g   c u n g   c a p   e m a i l   c u a   n g u o i   n h a n . " ) ;    
 	 	 M y F o r m . e m a i l _ r e c e i v e r . v a l u e = " " ;  
 	 	 M y F o r m . e m a i l _ r e c e i v e r . f o c u s ( ) ;    
 	 	 r e t u r n   f a l s e ;    
 	 }    
 	 i f   ( ! i s E m a i l ( t x t e m a i l _ r e c e i v e r ) )  
 	 {      
 	 	 a l e r t   ( " E m a i l   c u a   n g u o i   n h a n   k h o n g   h o p   l e . " ) ;    
 	 	 M y F o r m . e m a i l _ r e c e i v e r . f o c u s ( ) ;    
 	 	 r e t u r n   f a l s e ;    
 	 }    
 	 r e t u r n   t r u e ;    
 }    
  
  
 f u n c t i o n   d o V o t e V N ( )  
 {  
 	 a l e r t ( " C h â n   t h à n h   c á m   ¡n   s ñ  q u a n   t â m   c ça   b ¡n ! " ) ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . a c t i o n = " v o t e _ d e t a i l . a s p x ? a c t i o n = 1 " ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . s u b m i t ( ) ;  
 	 / / w i n d o w . c l o s e ( ) ;  
 	 / / r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   s u b m i t V o t e V N ( i n t V o t e _ i d )  
 {  
 	 v a r   s t r I t e m L i s t ;  
 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   =   ' ' ;  
 	 f o r   ( i = 0 ;   i   <   f r m W e b s i t e . e l e m e n t s . l e n g t h   -   1 ;   i + + )  
 	 {  
 	 	 i f   ( f r m W e b s i t e . e l e m e n t s [ i ] . c h e c k e d )  
 	 	 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e = w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   +   ' , '   +   f r m W e b s i t e . e l e m e n t s [ i ] . v a l u e ;  
 	 }  
 	 o p e n p a g e _ n o r e s i z e ( ' . . / v i - v n / v o t e _ d e t a i l . a s p x ? v o t e _ i d = '   +   i n t V o t e _ i d   +   ' & a c t i o n = 1 '   +   ' & i t e m l i s t = '   +   w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   , ' i t e m v o t e ' , ' 5 2 0 ' , ' 3 1 0 ' ) ;  
 }  
  
 f u n c t i o n   d o V o t e E N ( )  
 {  
 	 a l e r t ( " T h a n k s   f o r   y o u r   c a r e ! " ) ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . a c t i o n = " v o t e _ d e t a i l . a s p x ? a c t i o n = 1 " ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . s u b m i t ( ) ;  
 	 / / w i n d o w . c l o s e ( ) ;  
 	 / / r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   s u b m i t V o t e E N ( i n t V o t e _ i d )  
 {  
 	 v a r   s t r I t e m L i s t ;  
 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   =   ' ' ;  
 	 f o r   ( i = 0 ;   i   <   f r m W e b s i t e . e l e m e n t s . l e n g t h   -   1 ;   i + + )  
 	 {  
 	 	 i f   ( f r m W e b s i t e . e l e m e n t s [ i ] . c h e c k e d )  
 	 	 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e = w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   +   ' , '   +   f r m W e b s i t e . e l e m e n t s [ i ] . v a l u e ;  
 	 }  
 	 o p e n p a g e _ n o r e s i z e ( ' . . / e n / v o t e _ d e t a i l . a s p x ? v o t e _ i d = '   +   i n t V o t e _ i d   +   ' & a c t i o n = 1 '   +   ' & i t e m l i s t = '   +   w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   , ' i t e m v o t e ' , ' 5 2 0 ' , ' 3 1 0 ' ) ;  
 }  
  
 f u n c t i o n   d o V o t e C N ( )  
 {  
 	 a l e r t ( " T h a n k s   f o r   y o u r   c a r e ! " ) ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . a c t i o n = " v o t e _ d e t a i l . a s p x ? a c t i o n = 1 " ;  
 	 / / w i n d o w . d o c u m e n t . f r m V o t e D e t a i l . s u b m i t ( ) ;  
 	 / / w i n d o w . c l o s e ( ) ;  
 	 / / r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   s u b m i t V o t e C N ( i n t V o t e _ i d )  
 {  
 	 v a r   s t r I t e m L i s t ;  
 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   =   ' ' ;  
 	 f o r   ( i = 0 ;   i   <   f r m W e b s i t e . e l e m e n t s . l e n g t h   -   1 ;   i + + )  
 	 {  
 	 	 i f   ( f r m W e b s i t e . e l e m e n t s [ i ] . c h e c k e d )  
 	 	 	 w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e = w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   +   ' , '   +   f r m W e b s i t e . e l e m e n t s [ i ] . v a l u e ;  
 	 }  
 	 o p e n p a g e _ n o r e s i z e ( ' . . / c n / v o t e _ d e t a i l . a s p x ? v o t e _ i d = '   +   i n t V o t e _ i d   +   ' & a c t i o n = 1 '   +   ' & i t e m l i s t = '   +   w i n d o w . d o c u m e n t . f r m W e b s i t e . V o t e I t e m . v a l u e   , ' i t e m v o t e ' , ' 5 2 0 ' , ' 3 1 0 ' ) ;  
 } 
