ÿþ/ /   J a v a S c r i p t   D o c u m e n t  
 / *  
  
 v a r   m e s s a g e   =   " S o r r y ,   y o u   d o   n o t   h a v e   p e r m i s s i o n   t o   r i g h t   c l i c k . " ;    
 	 f u n c t i o n   r t c l i c k c h e c k ( k e y p ) {   i f   ( n a v i g a t o r . a p p N a m e   = =   " N e t s c a p e "   & &   k e y p . w h i c h   = =   3 ) {   	 a l e r t ( m e s s a g e ) ;   r e t u r n   f a l s e ;   }    
 	 i f   ( n a v i g a t o r . a p p V e r s i o n . i n d e x O f ( " M S I E " )   ! =   - 1   & &   e v e n t . b u t t o n   = =   2 )   {   	 a l e r t ( m e s s a g e ) ;   	 r e t u r n   f a l s e ;   }   }    
 	 d o c u m e n t . o n m o u s e d o w n   =   r t c l i c k c h e c k ;  
 	  
 	 * /  
 	  
  
 v a r   m e s s a g e =   " S o r r y ,   y o u   d o   n o t   h a v e   p e r m i s s i o n   t o   r i g h t   c l i c k . " ;    
 / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /    
 f u n c t i o n   c l i c k I E ( )   { i f   ( d o c u m e n t . a l l )   { ( m e s s a g e ) ; r e t u r n   f a l s e ; } }    
 f u n c t i o n   c l i c k N S ( e )   { i f    
 ( d o c u m e n t . l a y e r s | | ( d o c u m e n t . g e t E l e m e n t B y I d & & ! d o c u m e n t . a l l ) )   {    
 i f   ( e . w h i c h = = 2 | | e . w h i c h = = 3 )   { ( m e s s a g e ) ; r e t u r n   f a l s e ; } } }    
 i f   ( d o c u m e n t . l a y e r s )    
 { d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E D O W N ) ; d o c u m e n t . o n m o u s e d o w n = c l i c k N S ; }    
 e l s e { d o c u m e n t . o n m o u s e u p = c l i c k N S ; d o c u m e n t . o n c o n t e x t m e n u = c l i c k I E ; }    
 d o c u m e n t . o n c o n t e x t m e n u = n e w   F u n c t i o n ( " r e t u r n   f a l s e " )    
  
  
 / *   n o   s e l e c t * /  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *   D i s a b l e   s e l e c t - t e x t   s c r i p t -   ©   D y n a m i c   D r i v e   ( w w w . d y n a m i c d r i v e . c o m )  
 *   T h i s   n o t i c e   M U S T   s t a y   i n t a c t   f o r   l e g a l   u s e  
 *   V i s i 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  
 *   M o d i f i e d   h e r e   t o   e x c l u d e   f o r m   t a g s   p r o p e r l y ,   c r o s s   b r o w s e r   b y   j s c h e u e r 1  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 / / f o r m   t a g s   t o   o m i t :  
 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 " ]  
  
 f u n c t i o n   d i s a b l e s e l e c t ( e ) {  
 f o r   ( i   =   0 ;   i   <   o m i t f o r m t a g s . l e n g t h ;   i + + )  
 i f   ( o m i t f o r m t a g s [ i ] = = ( 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 ( ) ) )  
 r e t u r n ;  
 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  
 }  
  
 f u n c t i o n   n o S e l e c t ( ) {  
 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 " )  
 i f   ( d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ) {  
 t a g s = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( ' * ' )  
 f o r   ( j   =   0 ;   j   <   t a g s . l e n g t h ;   j + + ) {  
 f o r   ( i   =   0 ;   i   <   o m i t f o r m t a g s . l e n g t h ;   i + + )  
 i f   ( t a g s [ j ] . t a g N a m e . t o L o w e r C a s e ( ) = = o m i t f o r m t a g s [ i ] ) {  
 t a g s [ j ] . o n s e l e c t s t a r t = f u n c t i o n ( ) {  
 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   t r u e ' )  
 }  
 i f   ( t a g s [ j ] . o n m o u s e u p ! = = n u l l ) {  
 v a r   m U p = t a g s [ j ] . o n m o u s e u p . t o S t r i n g ( )  
 m U p = ' 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 \ ' ) ; \ n ' + m U p . s u b s t r ( m U p . i n d e x O f ( ' { ' ) + 2 , m U p . l a s t I n d e x O f ( ' } ' ) - m U p . i n d e x O f ( ' { ' ) - 3 ) ;  
 t a g s [ j ] . o n m o u s e u p = n e w   F u n c t i o n ( m U p ) ;  
 }  
 e l s e {  
 t a g s [ j ] . o n m o u s e u p = f u n c t i o n ( ) {  
 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  
 }  
 }  
  
 w i n d o w . o n l o a d = n o S e l e c t ;  
 
