ÿþ 
 f u n c t i o n   c h a n g e C o l o r   ( i t e m I d , c o l o r )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . s t y l e . b a c k g r o u n d C o l o r = c o l o r  
 }  
  
  
 f u n c t i o n   c h a n g e S o u r c e ( i t e m I d , p i c N a m e )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . s r c = " i m a g e s / "   +   p i c N a m e  
 }  
  
  
 f u n c t i o n   g e t F o c u s ( i t e m I d )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . f o c u s ( )  
 }  
  
  
 f u n c t i o n   s e n d F o r m ( f o r m I d )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( f o r m I d ) . s u b m i t ( )  
 }  
  
  
 f u n c t i o n   d i s a b l e B u t t o n ( b u t t o n I d )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( b u t t o n I d ) . d i s a b l e d = t r u e  
 }  
  
  
 f u n c t i o n   c h e c k E m a i l ( e m a i l )  
 { 	  
 v a r   A t S y m = e m a i l . i n d e x O f ( ' @ ' )  
 v a r   p e r i o d = e m a i l . l a s t I n d e x O f ( ' . ' )  
 v a r   S p a c e = e m a i l . i n d e x O f ( '   ' )  
 v a r   L e n g t h 1 = e m a i l . l e n g t h - 1 	 	  
 	 	 	 	  
 i f   ( ( A t S y m < 1 )   | |   ( p e r i o d < = A t S y m + 1 )   | |   ( p e r i o d = = L e n g t h 1 )   | |   ( S p a c e ! = - 1 ) )  
 r e t u r n   f a l s e  
 }  
  
  
 f u n c t i o n   s h o w M o r e ( w h a t I t e m )  
 {  
 o b j = d o c u m e n t . g e t E l e m e n t B y I d ( w h a t I t e m )  
 i f   ( o b j . s t y l e . d i s p l a y = = " b l o c k " )  
 o b j . s t y l e . d i s p l a y = " n o n e "  
 e l s e   i f   ( o b j . s t y l e . d i s p l a y = = " n o n e " )  
 o b j . s t y l e . d i s p l a y = " b l o c k "  
 }  
  
  
 f u n c t i o n   s h o w M o r e W i t h T a b l e ( w h a t I t e m )  
 {  
 v a r   b r o w s e r = n a v i g a t o r . a p p N a m e ;    
 i f ( b r o w s e r = = " N e t s c a p e " )  
 d i s p l a y S t r i n g = " t a b l e - r o w "    
 e l s e    
 d i s p l a y S t r i n g = " b l o c k "    
  
 o b j = d o c u m e n t . g e t E l e m e n t B y I d ( w h a t I t e m )  
 i f   ( o b j . s t y l e . d i s p l a y = = d i s p l a y S t r i n g )  
 o b j . s t y l e . d i s p l a y = " n o n e "  
 e l s e   i f   ( o b j . s t y l e . d i s p l a y = = " n o n e " )  
 o b j . s t y l e . d i s p l a y = d i s p l a y S t r i n g  
 }  
  
  
 f u n c t i o n   c h e k I f N u m b e r s O n l y ( i t e m I d , f i e l d N a m e )  
 {  
 t e m p = d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . v a l u e  
 i f   ( i s N a N ( t e m p ) )  
 {  
 a l e r t ( " áäèÕê  ÑÜÑÓ  ÑéÓÔ"   +   "   "   +   f i e l d N a m e )  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . v a l u e = " "  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . f o c u s ( )  
 }  
 }  
  
  
 f u n c t i o n   s e t T o H o m e ( i t e m I d )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . 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 ) "  
 d o c u m e n t . g e t E l e m e n t B y I d ( i t e m I d ) . s e t H o m e P a g e ( " h t t p : / / w w w . h u m i n t m a r k e t . c o m " )  
 }  
  
  
 f u n c t i o n   s e t T o F a v o r i t e ( )  
 {  
 w i n d o w . e x t e r n a l . A d d F a v o r i t e ( " h t t p : / / w w w . h u m i n t m a r k e t . c o m " ,   " H u m i n t   M a r k e t " )  
 }  
  
  
 v a r   x m l H t t p  
 f u n c t i o n   G e t X m l H t t p O b j e c t ( )  
 {  
 v a r   x m l H t t p = n u l l ;  
 t r y  
     {  
     / /   F i r e f o x ,   O p e r a   8 . 0 + ,   S a f a r i  
     x m l H t t p = n e w   X M L H t t p R e q u e s t ( ) ;  
     }  
 c a t c h   ( e )  
     {  
     / /   I n t e r n e t   E x p l o r e r  
     t r y  
         {  
         x m l H t t p = n e w   A c t i v e X O b j e c t ( " M s x m l 2 . X M L H T T P " ) ;  
         }  
     c a t c h   ( e )  
         {  
         x m l H t t p = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
         }  
     }  
 r e t u r n   x m l H t t p ;  
 }    
  
  
   / /   f u n c t i o n   w h i c h   l o a d   a j a x   o b j e c t   a n d   k e e p   s e s s i o n   w i t h o u t   r e f r e s h   t h e   p a g e  
   f u n c t i o n   k e e p S e s s i o n ( )    
   {        
   x m l H t t p = G e t X m l H t t p O b j e c t ( )    
   i f   ( x m l H t t p = = n u l l )    
           {    
           a l e r t   ( " Y o u r   b r o w s e r   d o e s   n o t   s u p p o r t   A J A X ! " )      
           r e t u r n    
           }        
    
   v a r   u r l = " k e e p S e s s i o n . a s p "      
    
   x m l H t t p . o p e n ( " G E T " , u r l , t r u e )    
   x m l H t t p . s e n d ( n u l l )    
   }  
    
     / /   f u n c t i o n   w h i c h   l o a d   a j a x   o b j e c t   a n d   k i l l   s e s s i o n   w i t h o u t   r e f r e s h   t h e   p a g e  
   f u n c t i o n   k i l l S e s s i o n ( )    
   {        
   x m l H t t p = G e t X m l H t t p O b j e c t ( )    
   i f   ( x m l H t t p = = n u l l )    
           {    
           a l e r t   ( " Y o u r   b r o w s e r   d o e s   n o t   s u p p o r t   A J A X ! " )      
           r e t u r n    
           }        
    
   v a r   u r l = " k i l l S e s s i o n . a s p "  
      
   x m l H t t p . o p e n ( " G E T " , u r l , t r u e )    
   x m l H t t p . s e n d ( n u l l )    
   }  
    
  
 
