ÿþv a r   o l d g r i d S e l e c t e d C o l o r ;  
  
 f u n c t i o n   s e t M o u s e O v e r C o l o r ( e l e m e n t )  
 {  
         o l d g r i d S e l e c t e d C o l o r   =   e l e m e n t . s t y l e . b a c k g r o u n d C o l o r ;  
         e l e m e n t . s t y l e . b a c k g r o u n d C o l o r = ' # 0 0 D D 3 7 ' ;  
         e l e m e n t . s t y l e . c u r s o r = ' h a n d ' ;  
         e l e m e n t . s t y l e . t e x t D e c o r a t i o n = ' n o n e ' ;  
 }  
  
 f u n c t i o n   s e t M o u s e O u t C o l o r ( e l e m e n t )  
 {  
         e l e m e n t . s t y l e . b a c k g r o u n d C o l o r = o l d g r i d S e l e c t e d C o l o r ;  
         e l e m e n t . s t y l e . t e x t D e c o r a t i o n = ' n o n e ' ;  
 }  
 / * D ù n g   c h o   c á c   t e x t b o x * /  
 f u n c t i o n   F i e l d O n F o c u s ( f i e l d ,   s , _ c l a s s 2 )  
 {  
 	 i f ( f i e l d . v a l u e = = s )  
 	 {    
 	 f i e l d . v a l u e   =   ' ' ;    
 	 f i e l d . c l a s s N a m e = _ c l a s s 2 ;  
 	 }  
 	 i f ( f i e l d . v a l u e ! = ' @ @ @ ' )  
 	 {    
 	 f i e l d . c l a s s N a m e = _ c l a s s 2 ;  
 	 }  
 }  
  
 f u n c t i o n   F i e l d O n B l u r ( f i e l d ,   s , _ c l a s s 1 )  
 {  
 	 i f ( f i e l d . v a l u e = = ' ' )  
 	 {  
 	   f i e l d . v a l u e = s ;  
 	 f i e l d . c l a s s N a m e = _ c l a s s 1 ;  
 	 }  
 	 i f ( f i e l d . v a l u e ! = ' ' )  
 	 {  
 	 f i e l d . c l a s s N a m e = _ c l a s s 1 ;  
 	 }  
 }  
  
 f u n c t i o n   F i e l d O n F o c u s _ P a s s ( f i e l d ,   s , _ c l a s s 2 )  
 {  
  
 	 i f ( f i e l d . v a l u e = = s )  
 	 {    
 	  
 	 f i e l d . v a l u e   =   ' ' ;    
 	 f i e l d . c l a s s N a m e = _ c l a s s 2 ;  
 	 f i e l d . t y p e = ' P a s s w o r d ' ;  
 	 }  
 	 e l s e  
 	 i f ( f i e l d . v a l u e 1 = ' @ @ @ ' )  
 	 {    
 	 f i e l d . c l a s s N a m e = _ c l a s s 2 ;  
 	 f i e l d . t y p e = ' P a s s w o r d ' ;  
 	 }  
 	 f i e l d . t y p e = ' P a s s w o r d ' ;  
 }  
  
 f u n c t i o n   F i e l d O n B l u r _ P a s s ( f i e l d ,   s , _ c l a s s 1 )  
 {  
 	 i f ( f i e l d . v a l u e = = ' ' )  
 	 {  
 	 f i e l d . t y p e = ' t e x t ' ;  
 	   f i e l d . v a l u e = s ;  
 	 f i e l d . c l a s s N a m e = _ c l a s s 1 ;  
 	  
 	 }  
 	 i f ( f i e l d . v a l u e ! = ' ' )  
 	 {  
  
 	 f i e l d . c l a s s N a m e = _ c l a s s 1 ;  
 	 f i e l d . t y p e = ' P a s s w o r d ' ;  
 	 }  
 }  
 f u n c t i o n   S e a r c h O n F o c u s ( f i e l d )  
 {  
 	 i f ( f i e l d . v a l u e = = ' T ë  k h ó a   t ì m   k i ¿m ' ) {   f i e l d . v a l u e   =   ' ' ;   }  
 }  
  
 f u n c t i o n   S e a r c h O n B l u r ( f i e l d )  
 {  
 	 i f ( f i e l d . v a l u e = = ' ' ) {   f i e l d . v a l u e = ' T ë  k h ó a   t ì m   k i ¿m ' ; }  
 }  
 f u n c t i o n   s e t A s H o m e P a g e ( i )  
 { 	  
 	 i f   ( d o c u m e n t . a l l )   {  
 	 	 i . s t y l e . b e h a v i o r = ' u r l ( # d e f a u l t # h o m e p a g e ) ' ;  
 	 	 i . s e t H o m e P a g e ( ' h t t p : / / h a l o n g g s m . n e t / h o m e / ' ) ;  
 	 }  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   s h o w P r i c e ( p r i c e )  
 {  
         p r i c e   =   p r i c e . r e p l a c e ( ' . 0 0 0 0 ' , ' ' ) ;  
         p r i c e   =   n u m b e r F o r m a t ( p r i c e ,   3 ,   0 ,   ' . ' ,   ' , ' ) ;  
         i f ( p r i c e   = =   ' '   | |   p r i c e   = =   ' 0 ' )  
         {  
 	         p r i c e   =   ' L i ê n   h Ç' ;  
         } e l s e   p r i c e   + =   '   V N D ' ;  
 	 v a r   s t r   =   ' G i á :   < s p a n   c l a s s = " p r i c e " > '   +   p r i c e   +   ' < / s p a n > ' ;  
 	 r e t u r n   s t r ;  
 }  
  
 
