ÿþv a r   o m i t f o r m t a g s = [ " i n p u t " ,   " t e x t a r e a " ,   " s e l e c t " ]  
 o m i t f o r m t a g s = o m i t f o r m t a g s . j o i n ( " | " )  
 f u n c t i o n   d i s a b l e s e l e c t ( e ) {  
 i f   ( o m i t f o r m t a g s . i n d e x O f ( e . t a r g e t . t a g N a m e . t o L o w e r C a s e ( ) ) = = - 1 )  
 r e t u r n   f a l s e  
 }  
 f u n c t i o n   r e E n a b l e ( ) {  
 r e t u r n   t r u e  
 }  
 i f   ( t y p e o f   d o c u m e n t . o n s e l e c t s t a r t ! = " u n d e f i n e d " )  
 d o c u m e n t . o n s e l e c t s t a r t = n e w   F u n c t i o n   ( " r e t u r n   f a l s e " )  
 e l s e {  
 d o c u m e n t . o n m o u s e d o w n = d i s a b l e s e l e c t  
 d o c u m e n t . o n m o u s e u p = r e E n a b l e  
 }  
  
 
