ÿþf u n c t i o n   p r o t e c t ( e )   { 
 
 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 '   & &   
 
 ( e . w h i c h   = =   3   | |   e . w h i c h   = =   2 ) ) 
 
 r e t u r n   f a l s e ; 
 
 e l s e   i f   ( n a v i g a t o r . a p p N a m e   = =   ' M i c r o s o f t   I n t e r n e t   E x p l o r e r '   & &   
 
 ( e v e n t . b u t t o n   = =   2   | |   e v e n t . b u t t o n   = =   3 ) )   { 
 
 a l e r t ( " 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 . " ) ; 
 
 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   t r a p ( )   { 
 
 i f ( d o c u m e n t . i m a g e s ) 
 
 f o r ( i = 0 ; i < d o c u m e n t . i m a g e s . l e n g t h ; i + + ) 
 
 d o c u m e n t . i m a g e s [ i ] . o n m o u s e d o w n   =   p r o t e c t ; 
 
 } 
