ÿþ/ / L I M I T S   T H E   M A X   C H A R A C T E R S   I N   A   T E X T A R E A   I N P U T / /  
 f u n c t i o n   t e x t C o u n t e r ( i n p u t ,   c o u n t i d ,   m a x l i m i t )   {  
 	 v a r   m a x L i m i t   =   ( m a x l i m i t )   ?   m a x l i m i t   :   2 0 0 0 ;  
 	 v a r   c o u n t e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( c o u n t i d ) ;  
 	 i f ( i n p u t . v a l u e . l e n g t h   >   m a x L i m i t )   {  
 	 	 c o u n t e r . c l a s s N a m e   =   " e r r "  
 	 	 c o u n t e r . f i r s t C h i l d . n o d e V a l u e   =   " "   +   i n p u t . v a l u e . l e n g t h ;      
 	 }   e l s e   {  
 	 	 c o u n t e r . c l a s s N a m e   =   " s m a l l t e x t "  
 	 	 c o u n t e r . f i r s t C h i l d . n o d e V a l u e   =   " "   +   i n p u t . v a l u e . l e n g t h ;  
 	 }  
 }  
 f u n c t i o n   d e l r e c o r d ( )  
 {  
 	 i f ( c o n f i r m ( " A r e   y o u   s u r e   t o   d e l e t e   t h i s   R e c o r d   ? " ) )  
 	 {  
 	 	 r e t u r n   t r u e ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 }  
  
 f u n c t i o n   n o C o p y M o u s e ( e )   {  
 	 v a r   i s R i g h t   =   ( e . b u t t o n )   ?   ( e . b u t t o n   = =   2 )   :   ( e . w h i c h   = =   3 ) ;  
  
 	 i f ( i s R i g h t )   {  
 	 	 a l e r t ( ' Y o u   a r e   p r o m p t e d   t o   t y p e   t h i s   t w i c e   f o r   a   r e a s o n ! ' ) ;  
 	 	 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   n o C o p y K e y ( e )   {  
 	 v a r   f o r b i d d e n K e y s   =   n e w   A r r a y ( ' c ' , ' x ' , ' v ' ) ;  
 	 v a r   k e y C o d e   =   ( e . k e y C o d e )   ?   e . k e y C o d e   :   e . w h i c h ;  
 	 v a r   i s C t r l ;  
  
 	 i f ( w i n d o w . e v e n t )  
 	 	 i s C t r l   =   e . c t r l K e y  
 	 e l s e  
 	 	 i s C t r l   =   ( w i n d o w . E v e n t )   ?   ( ( e . m o d i f i e r s   &   E v e n t . C T R L _ M A S K )   = =   E v e n t . C T R L _ M A S K )   :   f a l s e ;  
  
 	 i f ( i s C t r l )   {  
 	 	 f o r ( i   =   0 ;   i   <   f o r b i d d e n K e y s . l e n g t h ;   i + + )   {  
 	 	 	 i f ( f o r b i d d e n K e y s [ i ]   = =   S t r i n g . f r o m C h a r C o d e ( k e y C o d e ) . t o L o w e r C a s e ( ) )   {  
 	 	 	 	 a l e r t ( ' Y o u   a r e   p r o m p t e d   t o   t y p e   t h i s   t w i c e   f o r   a   r e a s o n ! ' ) ;  
 	 	 	 	 r e t u r n   f a l s e ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 r e t u r n   t r u e ;  
 	 } 
