ÿþ/ / ¶ ¨ Ò å µ ± Ç ° Ê Ç · ñ ´ ó Ð ´ µ Ä × ´ Ì ¬  
 w i n d o w . o n l o a d =  
 	 f u n c t i o n ( )  
 	 {  
 	 	 p a s s w o r d 1 = n u l l ; 	 	  
 	 	 i n i t C a l c ( ) ;  
 	 }  
  
 v a r   C a p s L o c k V a l u e = 0 ;  
  
 v a r   c h e c k ;  
 f u n c t i o n   s e t V a r i a b l e s ( )   {  
 t a b l e w i d t h = 6 3 0 ;     / /   l o g o   w i d t h ,   i n   p i x e l s  
 t a b l e h e i g h t = 2 0 ;     / /   l o g o   h e i g h t ,   i n   p i x e l s  
 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 " )   {  
 h o r z = " . l e f t " ;  
 v e r t = " . t o p " ;  
 d o c S t y l e = " d o c u m e n t . " ;  
 s t y l e D o c = " " ;  
 i n n e r W = " w i n d o w . i n n e r W i d t h " ;  
 i n n e r H = " w i n d o w . i n n e r H e i g h t " ;  
 o f f s e t X = " w i n d o w . p a g e X O f f s e t " ;  
 o f f s e t Y = " w i n d o w . p a g e Y O f f s e t " ;  
 }  
 e l s e   {  
 h o r z = " . p i x e l L e f t " ;  
 v e r t = " . p i x e l T o p " ;  
 d o c S t y l e = " " ;  
 s t y l e D o c = " . s t y l e " ;  
 i n n e r W = " d o c u m e n t . b o d y . c l i e n t W i d t h " ;  
 i n n e r H = " d o c u m e n t . b o d y . c l i e n t H e i g h t " ;  
 o f f s e t X = " d o c u m e n t . b o d y . s c r o l l L e f t " ;  
 o f f s e t Y = " d o c u m e n t . b o d y . s c r o l l T o p " ;  
       }  
 }  
 f u n c t i o n   c h e c k L o c a t i o n ( )   {  
 i f   ( c h e c k )   {  
 o b j e c t X Y = " s o f t k e y b o a r d " ;  
 v a r   a v a i l a b l e X = e v a l ( i n n e r W ) ;  
 v a r   a v a i l a b l e Y = e v a l ( i n n e r H ) ;  
 v a r   c u r r e n t X = e v a l ( o f f s e t X ) ;  
 v a r   c u r r e n t Y = e v a l ( o f f s e t Y ) ;  
 x = a v a i l a b l e X - t a b l e w i d t h + c u r r e n t X ;  
 / / y = a v a i l a b l e Y - t a b l e h e i g h t + c u r r e n t Y ;  
 y = c u r r e n t Y ;  
  
 e v a l M o v e ( ) ;  
 }  
 s e t T i m e o u t ( " c h e c k L o c a t i o n ( ) " , 0 ) ;  
 }  
 f u n c t i o n   e v a l M o v e ( )   {  
 / / e v a l ( d o c S t y l e   +   o b j e c t X Y   +   s t y l e D o c   +   h o r z   +   " = "   +   x ) ;  
 e v a l ( d o c S t y l e   +   o b j e c t X Y   +   s t y l e D o c   +   v e r t   +   " = "   +   y ) ;  
 }  
 	 s e l f . o n E r r o r = n u l l ;  
 	 c u r r e n t X   =   c u r r e n t Y   =   0 ;      
 	 w h i c h I t   =   n u l l ;                        
 	 l a s t S c r o l l X   =   0 ;   l a s t S c r o l l Y   =   0 ;  
 	 N S   =   ( d o c u m e n t . l a y e r s )   ?   1   :   0 ;  
 	 I E   =   ( d o c u m e n t . a l l )   ?   1 :   0 ;  
 	 f u n c t i o n   h e a r t B e a t ( )   {  
 	 	 i f ( I E )   {   d i f f Y   =   d o c u m e n t . b o d y . s c r o l l T o p ;   d i f f X   =   d o c u m e n t . b o d y . s c r o l l L e f t ;   }  
 	         i f ( N S )   {   d i f f Y   =   s e l f . p a g e Y O f f s e t ;   d i f f X   =   s e l f . p a g e X O f f s e t ;   }  
 	 	 i f ( d i f f Y   ! =   l a s t S c r o l l Y )   {  
 	                                 p e r c e n t   =   . 1   *   ( d i f f Y   -   l a s t S c r o l l Y ) ;  
 	                                 i f ( p e r c e n t   >   0 )   p e r c e n t   =   M a t h . c e i l ( p e r c e n t ) ;  
 	                                 e l s e   p e r c e n t   =   M a t h . f l o o r ( p e r c e n t ) ;  
 	 	 	 	 	 i f ( I E )   d o c u m e n t . a l l . s o f t k e y b o a r d . s t y l e . p i x e l T o p   + =   p e r c e n t ;  
 	 	 	 	 	 i f ( N S )   d o c u m e n t . s o f t k e y b o a r d . t o p   + =   p e r c e n t ;    
 	                                 l a s t S c r o l l Y   =   l a s t S c r o l l Y   +   p e r c e n t ; }  
 	 	 i f ( d i f f X   ! =   l a s t S c r o l l X )   {  
 	 	 	 p e r c e n t   =   . 1   *   ( d i f f X   -   l a s t S c r o l l X ) ;  
 	 	 	 i f ( p e r c e n t   >   0 )   p e r c e n t   =   M a t h . c e i l ( p e r c e n t ) ;  
 	 	 	 e l s e   p e r c e n t   =   M a t h . f l o o r ( p e r c e n t ) ;  
 	 	 	 i f ( I E )   d o c u m e n t . a l l . s o f t k e y b o a r d . s t y l e . p i x e l L e f t   + =   p e r c e n t ;  
 	 	 	 i f ( N S )   d o c u m e n t . s o f t k e y b o a r d . l e f t   + =   p e r c e n t ;  
 	 	 	 l a s t S c r o l l X   =   l a s t S c r o l l X   +   p e r c e n t ; 	 } 	 	 }  
 	 f u n c t i o n   c h e c k F o c u s ( x , y )   {    
 	                 s t a l k e r x   =   d o c u m e n t . s o f t k e y b o a r d . p a g e X ;  
 	                 s t a l k e r y   =   d o c u m e n t . s o f t k e y b o a r d . p a g e Y ;  
 	                 s t a l k e r w i d t h   =   d o c u m e n t . s o f t k e y b o a r d . c l i p . w i d t h ;  
 	                 s t a l k e r h e i g h t   =   d o c u m e n t . s o f t k e y b o a r d . c l i p . h e i g h t ;  
 	                 i f (   ( x   >   s t a l k e r x   & &   x   <   ( s t a l k e r x + s t a l k e r w i d t h ) )   & &   ( y   >   s t a l k e r y   & &   y   <   ( s t a l k e r y + s t a l k e r h e i g h t ) ) )   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   g r a b I t ( e )   {  
 	         c h e c k   =   f a l s e ;  
 	 	 i f ( I E )   {  
 	 	 	 w h i c h I t   =   e v e n t . s r c E l e m e n t ;  
 	 	 	 w h i l e   ( w h i c h I t . i d . i n d e x O f ( " s o f t k e y b o a r d " )   = =   - 1 )   {  
 	 	 	 	 w h i c h I t   =   w h i c h I t . p a r e n t E l e m e n t ;  
 	 	 	 	 i f   ( w h i c h I t   = =   n u l l )   {   r e t u r n   t r u e ;   }   }  
 	 	 	 w h i c h I t . s t y l e . p i x e l L e f t   =   w h i c h I t . o f f s e t L e f t ;  
 	 	         w h i c h I t . s t y l e . p i x e l T o p   =   w h i c h I t . o f f s e t T o p ;  
 	 	 	 c u r r e n t X   =   ( e v e n t . c l i e n t X   +   d o c u m e n t . b o d y . s c r o l l L e f t ) ;  
 	       	 	 c u r r e n t Y   =   ( e v e n t . c l i e n t Y   +   d o c u m e n t . b o d y . s c r o l l T o p ) ;   	  
 	 	 }   e l s e   {    
 	                 w i n d o w . c a p t u r e E v e n t s ( E v e n t . M O U S E M O V E ) ;  
 	                 i f ( c h e c k F o c u s   ( e . p a g e X , e . p a g e Y ) )   {    
 	                                 w h i c h I t   =   d o c u m e n t . s o f t k e y b o a r d ;  
 	                                 S t a l k e r T o u c h e d X   =   e . p a g e X - d o c u m e n t . s o f t k e y b o a r d . p a g e X ;  
 	                                 S t a l k e r T o u c h e d Y   =   e . p a g e Y - d o c u m e n t . s o f t k e y b o a r d . p a g e Y ; }   }  
 	         r e t u r n   t r u e ; 	 }  
 	 f u n c t i o n   m o v e I t ( e )   {  
 	 	 i f   ( w h i c h I t   = =   n u l l )   {   r e t u r n   f a l s e ;   }  
 	 	 i f ( I E )   {  
 	 	         n e w X   =   ( e v e n t . c l i e n t X   +   d o c u m e n t . b o d y . s c r o l l L e f t ) ;  
 	 	         n e w Y   =   ( e v e n t . c l i e n t Y   +   d o c u m e n t . b o d y . s c r o l l T o p ) ;  
 	 	         d i s t a n c e X   =   ( n e w X   -   c u r r e n t X ) ;         d i s t a n c e Y   =   ( n e w Y   -   c u r r e n t Y ) ;  
 	 	         c u r r e n t X   =   n e w X ;         c u r r e n t Y   =   n e w Y ;  
 	 	         w h i c h I t . s t y l e . p i x e l L e f t   + =   d i s t a n c e X ;  
 	 	         w h i c h I t . s t y l e . p i x e l T o p   + =   d i s t a n c e Y ;  
 	 	 	 i f ( w h i c h I t . s t y l e . p i x e l T o p   <   d o c u m e n t . b o d y . s c r o l l T o p )   w h i c h I t . s t y l e . p i x e l T o p   =   d o c u m e n t . b o d y . s c r o l l T o p ;  
 	 	 	 i f ( w h i c h I t . s t y l e . p i x e l L e f t   <   d o c u m e n t . b o d y . s c r o l l L e f t )   w h i c h I t . s t y l e . p i x e l L e f t   =   d o c u m e n t . b o d y . s c r o l l L e f t ;  
 	 	 	 i f ( w h i c h I t . s t y l e . p i x e l L e f t   >   d o c u m e n t . b o d y . o f f s e t W i d t h   -   d o c u m e n t . b o d y . s c r o l l L e f t   -   w h i c h I t . s t y l e . p i x e l W i d t h   -   2 0 )   w h i c h I t . s t y l e . p i x e l L e f t   =   d o c u m e n t . b o d y . o f f s e t W i d t h   -   w h i c h I t . s t y l e . p i x e l W i d t h   -   2 0 ;  
 	 	 	 i f ( w h i c h I t . s t y l e . p i x e l T o p   >   d o c u m e n t . b o d y . o f f s e t H e i g h t   +   d o c u m e n t . b o d y . s c r o l l T o p   -   w h i c h I t . s t y l e . p i x e l H e i g h t   -   5 )   w h i c h I t . s t y l e . p i x e l T o p   =   d o c u m e n t . b o d y . o f f s e t H e i g h t   +   d o c u m e n t . b o d y . s c r o l l T o p   -   w h i c h I t . s t y l e . p i x e l H e i g h t   -   5 ;  
 	 	 	 e v e n t . r e t u r n V a l u e   =   f a l s e ;  
 	 	 }   e l s e   {    
 	 	 	 w h i c h I t . m o v e T o ( e . p a g e X - S t a l k e r T o u c h e d X , e . p a g e Y - S t a l k e r T o u c h e d Y ) ;  
 	                 i f ( w h i c h I t . l e f t   <   0 + s e l f . p a g e X O f f s e t )   w h i c h I t . l e f t   =   0 + s e l f . p a g e X O f f s e t ;  
 	                 i f ( w h i c h I t . t o p   <   0 + s e l f . p a g e Y O f f s e t )   w h i c h I t . t o p   =   0 + s e l f . p a g e Y O f f s e t ;  
                 i f (   ( w h i c h I t . l e f t   +   w h i c h I t . c l i p . w i d t h )   > =   ( w i n d o w . i n n e r W i d t h + s e l f . p a g e X O f f s e t - 1 7 ) )   w h i c h I t . l e f t   =   ( ( w i n d o w . i n n e r W i d t h + s e l f . p a g e X O f f s e t ) - w h i c h I t . c l i p . w i d t h ) - 1 7 ;  
 	                 i f (   ( w h i c h I t . t o p   +   w h i c h I t . c l i p . h e i g h t )   > =   ( w i n d o w . i n n e r H e i g h t + s e l f . p a g e Y O f f s e t - 1 7 ) )   w h i c h I t . t o p   =   ( ( w i n d o w . i n n e r H e i g h t + s e l f . p a g e Y O f f s e t ) - w h i c h I t . c l i p . h e i g h t ) - 1 7 ;  
 	                 r e t u r n   f a l s e ; }  
 	         r e t u r n   f a l s e ; 	 }  
 	 f u n c t i o n   d r o p I t ( )   { w h i c h I t   =   n u l l ;  
 	         i f ( N S )   w i n d o w . r e l e a s e E v e n t s   ( E v e n t . M O U S E M O V E ) ;  
 	         r e t u r n   t r u e ; 	 }  
 	 i f ( N S )   { w i n d o w . c a p t u r e E v e n t s ( E v e n t . M O U S E U P | E v e n t . M O U S E D O W N ) ;  
 	 	 w i n d o w . o n m o u s e d o w n   =   g r a b I t ;  
 	   	 w i n d o w . o n m o u s e m o v e   =   m o v e I t ;  
 	 	 w i n d o w . o n m o u s e u p   =   d r o p I t ; 	 }  
 	 i f ( I E )   {  
 	 	 d o c u m e n t . o n m o u s e d o w n   =   g r a b I t ;  
 	   	 d o c u m e n t . o n m o u s e m o v e   =   m o v e I t ;  
 	 	 d o c u m e n t . o n m o u s e u p   =   d r o p I t ; 	 }  
 / / 	 i f ( N S   | |   I E )   a c t i o n   =   w i n d o w . s e t I n t e r v a l ( " h e a r t B e a t ( ) " , 1 ) ;  
  
  
  
 	 d o c u m e n t . w r i t e ( " < D I V   a l i g n = c e n t e r   i d = \ " s o f t k e y b o a r d \ "   n a m e = \ " s o f t k e y b o a r d \ "   s t y l e = \ " p o s i t i o n : a b s o l u t e ;   l e f t : 0 p x ;   t o p : 0 p x ;   w i d t h : 5 0 0 p x ;   z - i n d e x : 1 8 0 ; d i s p l a y : n o n e \ " >     < t a b l e   i d = \ " C a l c T a b l e \ "   w i d t h = \ " \ "   b o r d e r = \ " 0 \ "   a l i g n = \ " c e n t e r \ "   c e l l p a d d i n g = \ " 0 \ "   c e l l s p a c i n g = \ " 0 \ "   b g c o l o r = \ " \ " >                       < F O R M   i d = C a l c   n a m e = C a l c   a c t i o n = \ " \ "   m e t h o d = p o s t   a u t o c o m p l e t e = \ " o f f \ " >               < t r >   < t d   t i t l e = \ " c l o s e ! \ "   a l i g n = \ " r i g h t \ "   v a l i g n = \ " m i d d l e \ "   b g c o l o r = \ " \ "   s t y l e = \ " c u r s o r :   d e f a u l t ; h e i g h t : 3 0 \ " >   < I N P U T   t y p e = h i d d e n   v a l u e = \ " \ "   n a m e = p a s s w o r d >     < I N P U T   t y p e = h i d d e n   v a l u e = o k   n a m e = a c t i o n 2 > & n b s p < f o n t   s t y l e = \ " f o n t - s i z e : 1 3 p x ; \ " > V V N V V !   s h o p p i n g   c a r t   < / f o n t > & n b s p ; & n b s p ; w w w . v v n v v . c o m & n b s p & n b s p & n b s p & n b s p & n b s p ; & n b s p ; & n b s p & n b s p ; & n b s p ; & n b s p & n b s p ; & n b s p ; & n b s p & n b s p ; & n b s p ; & n b s p & n b s p ; & n b s p ; & n b s p & n b s p ; & n b s p & n b s p ; < I N P U T   s t y l e = \ " w i d t h : 1 0 0 p x ; h e i g h t : 2 0 p x ; b a c k g r o u n d - c o l o r : # 5 4 B A F 1 ; \ "   t y p e = b u t t o n   v a l u e = \ " c l o s e \ "   b g t y p e = \ " 1 \ "   o n c l i c k = \ " p a s s w o r d 1 . r e a d O n l y = 0 ; p a s s w o r d 1 . f o c u s ( ) ; s o f t k e y b o a r d . s t y l e . d i s p l a y = ' n o n e ' ; p a s s w o r d 1 . v a l u e = ' ' ; \ " > < s p a n   s t y l e = \ " w i d t h : 2 p x ; \ " > < / s p a n > < / t d >             < / t r >             < t r   a l i g n = \ " c e n t e r \ " >                   < t d   a l i g n = \ " c e n t e r \ "   b g c o l o r = \ " # F F F F F F \ " >   < t a b l e   a l i g n = \ " c e n t e r \ "   w i d t h = \ " % \ "   b o r d e r = \ " 0 \ "   c e l l s p a c i n g = \ " 1 \ "   c e l l p a d d i n g = \ " 0 \ " > \ n                     < t r   a l i g n = \ " l e f t \ "   v a l i g n = \ " m i d d l e \ " >   \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ~   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   !   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n     v a l u e = \ "   @   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   #   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   $   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   %   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ^   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   &   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   *   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   (   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   )   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   _   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   +   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   |   \ " > < / t d > \ n                         < t d   c o l s p a n = \ " 1 \ "   r o w s p a n = \ " 2 \ " >   < i n p u t   n a m e = \ " b u t t o n 1 0 \ "   t y p e = b u t t o n   v a l u e = \ " B a c k s p a c e \ "   o n c l i c k = \ " s e t p a s s v a l u e ( ) ; \ "     o n D b l C l i c k = \ " s e t p a s s v a l u e ( ) ; \ "   s t y l e = \ " w i d t h : 1 0 0 p x ; h e i g h t : 4 2 p x \ " >   \ n                         < / t d > \ n                     < / t r > \ n                     < t r   a l i g n = \ " l e f t \ "   v a l i g n = \ " m i d d l e \ " >   \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   `   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   1   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   2   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   3   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   4   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   5   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   6   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   7   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   8   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   9   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 6 \ "   t y p e = b u t t o n   v a l u e = \ "   0   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   -   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   =   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   \ \   \ " > < / t d > \ n                         < t d >   < / t d > \ n                     < / t r > \ n                     < t r   a l i g n = \ " l e f t \ "   v a l i g n = \ " m i d d l e \ " >   \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   q   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   w   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   e   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   r   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   t   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   y   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   u   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   i   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   o   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 8 \ "   t y p e = b u t t o n   v a l u e = \ "   p   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 9 \ "   t y p e = b u t t o n   v a l u e = \ "   {   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   }   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   [   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ]   \ " > < / t d > \ n                         < t d > < i n p u t   n a m e = \ " b u t t o n 9 \ "   t y p e = b u t t o n   o n C l i c k = \ " c a p s L o c k T e x t ( ) ; s e t C a p s L o c k ( ) ; \ "     o n D b l C l i c k = \ " c a p s L o c k T e x t ( ) ; s e t C a p s L o c k ( ) ; \ "   v a l u e = \ " C a p s   L o c k \ "   s t y l e = \ " w i d t h : 1 0 0 p x ; \ " > < / t d > \ n                     < / t r > \ n                     < t r   a l i g n = \ " l e f t \ "   v a l i g n = \ " m i d d l e \ " >   \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   a   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   s   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   d   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   f   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   g   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   h   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   j   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 3 \ "   t y p e = b u t t o n   v a l u e = \ "   k   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 4 \ "   t y p e = b u t t o n   v a l u e = \ "   l   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 5 \ "   t y p e = b u t t o n   v a l u e = \ "   :   \ " > < / t d > \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 7 \ "   t y p e = b u t t o n   v a l u e = \ "   & q u o t ;   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ;   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   '   \ " > < / t d > \ n                         < t d   r o w s p a n = \ " 2 \ "   c o l s p a n = \ " 2 \ " >   < i n p u t   n a m e = \ " b u t t o n 1 2 \ "   t y p e = b u t t o n   o n c l i c k = \ " O v e r I n p u t ( ) ; \ "   v a l u e = \ " O K \ "   s t y l e = \ " w i d t h : 1 3 0 p x ; h e i g h t : 4 2 \ " > < / t d > \ n                     < / t r > \ n                     < t r   a l i g n = \ " l e f t \ "   v a l i g n = \ " m i d d l e \ " >   \ n                         < t d >   < i n p u t   n a m e = \ " b u t t o n 2 \ "   t y p e = b u t t o n   v a l u e = \ "   z   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   x   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   c   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   v   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   b   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   n   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   m   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   & l t ;   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   & g t ;   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ?   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   ,   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   .   \ " > < / t d > \ n                         < t d >   < i n p u t   t y p e = b u t t o n   v a l u e = \ "   /   \ " > < / t d > \ n                     < / t r > \ n                 < / t a b l e > < / t d >         < / F O R M >             < / t r >     < / t a b l e > < / D I V > " )  
 / / v v n v v . c o m  
 	 f u n c t i o n   a d d V a l u e ( n e w V a l u e )  
 	 {  
 	 	 i f   ( C a p s L o c k V a l u e = = 0 )  
 	 	 {  
 	 	 	 v a r   s t r = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 i f ( s t r . l e n g t h < p a s s w o r d 1 . m a x L e n g t h )  
 	 	 	 {  
 	 	 	 	 C a l c . p a s s w o r d . v a l u e   + =   n e w V a l u e ;  
 	 	 	 } 	 	 	  
 	 	 	 i f ( s t r . l e n g t h < = p a s s w o r d 1 . m a x L e n g t h )  
 	 	 	 {  
 	 	 	 	 p a s s w o r d 1 . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 }  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 v a r   s t r = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 i f ( s t r . l e n g t h < p a s s w o r d 1 . m a x L e n g t h )  
 	 	 	 {  
 	 	 	 	 C a l c . p a s s w o r d . v a l u e   + =   n e w V a l u e . t o U p p e r C a s e ( ) ;  
 	 	 	 }  
 	 	 	 i f ( s t r . l e n g t h < = p a s s w o r d 1 . m a x L e n g t h )  
 	 	 	 {  
 	 	 	 	 p a s s w o r d 1 . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 }  
 	 	 }  
 	 }  
 / / Ê µ Ï Ö B a c k S p a c e ¼ ü µ Ä ¹ ¦ Ä Ü  
 	 f u n c t i o n   s e t p a s s v a l u e ( )  
 	 {  
 	 	 v a r   l o n g n u m = C a l c . p a s s w o r d . v a l u e . l e n g t h ;  
 	 	 v a r   n u m  
 	 	 n u m = C a l c . p a s s w o r d . v a l u e . s u b s t r ( 0 , l o n g n u m - 1 ) ;  
 	 	 C a l c . p a s s w o r d . v a l u e = n u m ;  
 	 	 v a r   s t r = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 p a s s w o r d 1 . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 }  
 / / Ê ä È ë Í ê ± Ï  
 	 f u n c t i o n   O v e r I n p u t ( )  
 	 {  
 	 	 / / m _ p a s s . m e m p a s s . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 	 v a r   s t r = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 p a s s w o r d 1 . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 	 	 / / a l e r t ( t h e F o r m . v a l u e ) ;  
 	 	 / / t h e F o r m . v a l u e = m _ p a s s . m e m p a s s . v a l u e ;  
 	 	 s o f t k e y b o a r d . s t y l e . d i s p l a y = " n o n e " ;  
 	 	 C a l c . p a s s w o r d . v a l u e = " " ;  
 	 	 p a s s w o r d 1 . r e a d O n l y = 1 ;  
 	 	 / / p a s s w o r d 1 . v a l u e = C a l c . p a s s w o r d . v a l u e ;  
 	 }  
 / / ¹ Ø ± Õ È í ¼ ü Å Ì  
 	 f u n c t i o n   c l o s e k e y b o a r d ( t h e F o r m )  
 	 {  
 	 	 / / e v a l ( " v a r   t h e F o r m = " + t h e F o r m + " ; " ) ;  
 	 	 / / t h e F o r m . v a l u e = " " ;  
 	 	 s o f t k e y b o a r d . s t y l e . d i s p l a y = " n o n e " ;  
 	 	 / / C a l c . p a s s w o r d . v a l u e = " " ;  
  
 	 }  
 / / Ï Ô Ê ¾ È í ¼ ü Å Ì  
 	 f u n c t i o n   s h o w k e y b o a r d ( )  
 	 {  
 	 	 i f ( e v e n t . y + 1 4 0 )  
 	 	 s o f t k e y b o a r d . s t y l e . t o p = e v e n t . y + d o c u m e n t . b o d y . s c r o l l T o p + 1 5 ;  
 	 	 i f ( ( e v e n t . x - 2 5 0 ) > 0 )  
 	 	 {  
 	 	 	 s o f t k e y b o a r d . s t y l e . l e f t = e v e n t . x - 2 5 0 ;  
 	 	 }  
 	 	 e l s e  
 	 	 {  
 	 	 	 s o f t k e y b o a r d . s t y l e . l e f t = 0 ;  
 	 	 }  
 	 	  
 	 	 s o f t k e y b o a r d . s t y l e . d i s p l a y = " b l o c k " ;  
 	 	 p a s s w o r d 1 . r e a d O n l y = 1 ;  
 	 	 p a s s w o r d 1 . b l u r ( ) ;  
 	 	 / / p a s s w o r d 1 . v a l u e = " " ;  
 	 }  
  
 / / É è Ö Ã Ê Ç · ñ ´ ó Ð ´ µ Ä Ö µ  
 f u n c t i o n   s e t C a p s L o c k ( )  
 {  
 	 i f   ( C a p s L o c k V a l u e = = 0 )  
 	 {  
 	 	 C a p s L o c k V a l u e = 1  
 / / 	 	 C a l c . s h o w C a p s L o c k V a l u e . v a l u e = " µ ± Ç ° Ê Ç ´ ó Ð ´   " ;  
 	 }  
 	 e l s e    
 	 {  
 	 	 C a p s L o c k V a l u e = 0  
 / / 	 	 C a l c . s h o w C a p s L o c k V a l u e . v a l u e = " µ ± Ç ° Ê Ç Ð ¡ Ð ´   " ;  
 	 }  
 }  
  
  
 f u n c t i o n   s e t C a l c b o r d e r ( )  
 {  
 	 C a l c T a b l e . s t y l e . b o r d e r = " 1 p x   s o l i d   # 0 0 9 0 F D "  
 }  
  
 f u n c t i o n   s e t H e a d ( )  
 {  
 	 C a l c T a b l e . c e l l s [ 0 ] . s t y l e . b a c k g r o u n d C o l o r = " # 7 E D E F F " 	  
 }  
  
 f u n c t i o n   s e t C a l c B u t t o n B g ( )  
 {  
 	 f o r ( v a r   i = 0 ; i < C a l c . e l e m e n t s . l e n g t h ; i + + )  
 	 {  
 	 	 i f ( C a l c . e l e m e n t s [ i ] . t y p e = = " b u t t o n " & & C a l c . e l e m e n t s [ i ] . b g t y p e ! = " 1 " )  
 	 	 {  
 	 / / 	 	 i f ( i = = 1 0 )  
 / / 	 a l e r t ( 1 2 3 ) ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r T o p W i d t h =   0  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r R i g h t W i d t h =   2  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r B o t t o m W i d t h =   2  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r L e f t W i d t h =   0  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r T o p S t y l e =   " n o n e " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r R i g h t S t y l e =   " s o l i d " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r B o t t o m S t y l e =   " s o l i d " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r L e f t S t y l e =   " n o n e " ;  
 	 	 	 / / # 4 6 A C 1 7  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r T o p C o l o r =   " # 1 1 8 A C C " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r R i g h t C o l o r =   " # 1 1 8 A C C " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r B o t t o m C o l o r =   " # 1 1 8 A C C " ;  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b o r d e r L e f t C o l o r =   " # 1 1 8 A C C " ;  
 	 	 	 / / # C B F 3 B 2  
 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . b a c k g r o u n d C o l o r = " # A D D E F 8 " ;  
  
 	 	 	  
 	 	 	  
 	 	 	 v a r   s t r 1 = C a l c . e l e m e n t s [ i ] . v a l u e ;  
 	 	 	 s t r 1 = s t r 1 . t r i m ( ) ;  
 	 	 	 / *  
 	 	 	 i f ( s t r 1 = = " ` " )    
 	 	 	 {  
 	 	 	 	 C a l c . e l e m e n t s [ i ] . s t y l e . f o n t S i z e = 1 4 ;  
 	 	 	 }  
 	 	 	 * /  
  
 	 	 	 i f ( s t r 1 . l e n g t h = = 1 )  
 	 	 	 {  
 	 	 	 	 / / C a l c . e l e m e n t s [ i ] . s t y l e . f o n t S i z e = 1 6 ;  
 	 	 	 	 / / C a l c . e l e m e n t s [ i ] . s t y l e . f o n t W e i g h t = ' b o l d ' ;  
 	 	 	 }  
 	 	 	  
 	 	 	 v a r   t h i s B u t t o n V a l u e = C a l c . e l e m e n t s [ i ] . v a l u e ;  
 	 	 	 t h i s B u t t o n V a l u e = t h i s B u t t o n V a l u e . t r i m ( ) ;  
 	 	 	 i f ( t h i s B u t t o n V a l u e . l e n g t h = = 1 )  
 	 	 	 {  
 	 	 	 	 C a l c . e l e m e n t s [ i ] . o n c l i c k =  
 	 	 	 	 	 f u n c t i o n   ( )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 v a r   t h i s B u t t o n V a l u e = t h i s . v a l u e ;  
 	 	 	 	 	 	 t h i s B u t t o n V a l u e = t h i s B u t t o n V a l u e . t r i m ( ) ;  
 	 	 	 	 	 	 a d d V a l u e ( t h i s B u t t o n V a l u e ) ;  
 	 	 	 	 	 	 / / a l e r t ( 2 3 4 )  
 	 	 	 	 	 }  
 	 	 	 	 C a l c . e l e m e n t s [ i ] . o n d b l c l i c k =  
 	 	 	 	 	 f u n c t i o n   ( )  
 	 	 	 	 	 {  
 	 	 	 	 	 	 v a r   t h i s B u t t o n V a l u e = t h i s . v a l u e ;  
 	 	 	 	 	 	 t h i s B u t t o n V a l u e = t h i s B u t t o n V a l u e . t r i m ( ) ;  
 	 	 	 	 	 	 a d d V a l u e ( t h i s B u t t o n V a l u e ) ;  
 	 	 	 	 	 	 / / a l e r t ( 2 3 4 )  
 	 	 	 	 	 }  
 	 	 	 }  
 	 	 	  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   i n i t C a l c ( )  
 {  
 	 s e t C a l c b o r d e r ( ) ;  
 	 s e t H e a d ( ) ;  
 	 s e t C a l c B u t t o n B g ( ) ;  
 }  
  
 S t r i n g . p r o t o t y p e . t r i m   =   f u n c t i o n ( )  
 {  
         / /   Ó Ã Õ ý Ô ò ± í ´ ï Ê ½ ½ « Ç ° º ó ¿ Õ ¸ ñ  
         / /   Ó Ã ¿ Õ × Ö · û ´ ® Ì æ ´ ú ¡ £  
         r e t u r n   t h i s . r e p l a c e ( / ( ^ \ s * ) | ( \ s * $ ) / g ,   " " ) ;  
 }  
  
 v a r   c a p s L o c k F l a g ;  
 c a p s L o c k F l a g = t r u e ;  
  
 f u n c t i o n   c a p s L o c k T e x t ( )  
 {  
 i f ( c a p s L o c k F l a g ) / / ¸ Ä ³ É ´ ó Ð ´  
 {  
 	 f o r ( v a r   i = 0 ; i < C a l c . e l e m e n t s . l e n g t h ; i + + )  
 	 {  
 	 	 	 v a r   c h a r = C a l c . e l e m e n t s [ i ] . v a l u e ;  
 	 	 	 v a r   c h a r = c h a r . t r i m ( )  
 	 	 i f ( C a l c . e l e m e n t s [ i ] . t y p e = = " b u t t o n " & & c h a r > = " a " & & c h a r < = " z " & & c h a r . l e n g t h = = 1 )  
 	 	 {  
 	 	  
 	 	 	 C a l c . e l e m e n t s [ i ] . v a l u e = "   " + S t r i n g . f r o m C h a r C o d e ( c h a r . c h a r C o d e A t ( 0 ) - 3 2 ) + "   "  
 	 	 }  
 	 }  
 }  
 e l s e  
 {  
 	 f o r ( v a r   i = 0 ; i < C a l c . e l e m e n t s . l e n g t h ; i + + )  
 	 {  
 	 	 	 v a r   c h a r = C a l c . e l e m e n t s [ i ] . v a l u e ;  
 	 	 	 v a r   c h a r = c h a r . t r i m ( )  
 	 	 i f ( C a l c . e l e m e n t s [ i ] . t y p e = = " b u t t o n " & & c h a r > = " A " & & c h a r < = " Z " & & c h a r . l e n g t h = = 1 )  
 	 	 {  
 	 	  
 	 	 	 C a l c . e l e m e n t s [ i ] . v a l u e = "   " + S t r i n g . f r o m C h a r C o d e ( c h a r . c h a r C o d e A t ( 0 ) + 3 2 ) + "   "  
 	 	 }  
 	 }  
 }  
 c a p s L o c k F l a g = ! c a p s L o c k F l a g ;  
 }  
  
 w i n d o w . o n l o a d =  
 	 f u n c t i o n   ( )  
 	 {  
 	 	 p a s s w o r d 1 = n u l l ; 	 	  
 	 	 i n i t C a l c ( ) ;  
 	 	  
  
 	 } 
