ÿþ< ! - -  
 d o c u m e n t . w r i t e ( " < d i v     i d = m e i z z C a l e n d a r L a y e r   s t y l e = ' p o s i t i o n :   a b s o l u t e ;   z - i n d e x :   9 9 9 9 ;   w i d t h :   1 4 4 ;   h e i g h t :   1 9 3 ;   d i s p l a y :   n o n e ' > " ) ;  
 d o c u m e n t . w r i t e ( " < i f r a m e   n a m e = m e i z z C a l e n d a r I f r a m e   s c r o l l i n g = n o   f r a m e b o r d e r = 0   w i d t h = 1 4 4   h e i g h t = 1 9 3 > < / i f r a m e > < / d i v > " ) ;  
 f u n c t i o n   w r i t e I f r a m e ( )  
 {  
         v a r   s t r I f r a m e   =   " < h t m l > < h e a d > < s t y l e > " +  
         " * { f o n t - s i z e :   7 . 5 p t ;   f o n t - f a m i l y :   V e r d a n a } " +  
         " . b g {     c o l o r :   " +   W e b C a l e n d a r . l i g h t C o l o r   + " ;   c u r s o r :   d e f a u l t ;   b a c k g r o u n d - c o l o r :   " +   W e b C a l e n d a r . d a r k C o l o r   + " ; } " +  
         " t a b l e # t a b l e M a i n {   w i d t h :   1 4 2 ;   h e i g h t :   1 8 0 ; } " +  
         " t a b l e # t a b l e W e e k   t d {   c o l o r :   " +   W e b C a l e n d a r . l i g h t C o l o r   + " ; } " +  
         " t a b l e # t a b l e D a y     t d {   f o n t - w e i g h t :   b o l d ; } " +  
         " t d # m e i z z Y e a r H e a d ,   t d # m e i z z Y e a r M o n t h { c o l o r :   " +   W e b C a l e n d a r . w o r d C o l o r   + " } " +  
         " . o u t   {   t e x t - a l i g n :   c e n t e r ;   b o r d e r - t o p :   1 p x   s o l i d   " +   W e b C a l e n d a r . D a r k B o r d e r   + " ;   b o r d e r - l e f t :   1 p x   s o l i d   " +   W e b C a l e n d a r . D a r k B o r d e r   + " ; " +  
         " b o r d e r - r i g h t :   1 p x   s o l i d   " +   W e b C a l e n d a r . l i g h t C o l o r   + " ;   b o r d e r - b o t t o m :   1 p x   s o l i d   " +   W e b C a l e n d a r . l i g h t C o l o r   + " ; } " +  
         " . o v e r {   t e x t - a l i g n :   c e n t e r ;   b o r d e r - t o p :   1 p x   s o l i d   # F F F F F F ;   b o r d e r - l e f t :   1 p x   s o l i d   # F F F F F F ; " +  
         " b o r d e r - b o t t o m :   1 p x   s o l i d   " +   W e b C a l e n d a r . D a r k B o r d e r   + " ;   b o r d e r - r i g h t :   1 p x   s o l i d   " +   W e b C a l e n d a r . D a r k B o r d e r   + " } " +  
         " i n p u t {   b o r d e r :   1 p x   s o l i d   " +   W e b C a l e n d a r . d a r k C o l o r   + " ;   p a d d i n g - t o p :   1 p x ;   h e i g h t :   1 8 ;   c u r s o r :   h a n d ; " +  
         "               c o l o r : " +   W e b C a l e n d a r . w o r d C o l o r   + " ;   b a c k g r o u n d - c o l o r :   " +   W e b C a l e n d a r . b t n B g C o l o r   + " } " +  
         " < / s t y l e > < / h e a d > < b o d y   o n s e l e c t s t a r t = ' r e t u r n   f a l s e '   s t y l e = ' m a r g i n :   0 p x '   o n c o n t e x t m e n u = ' r e t u r n   f a l s e ' > < f o r m   n a m e = m e i z z > " ;  
  
         i f   ( W e b C a l e n d a r . d r a g ) {   s t r I f r a m e   + =   " < s c r " + " i p t   l a n g u a g e = j a v a s c r i p t > " +  
         " v a r   d r a g = f a l s e ,   c x = 0 ,   c y = 0 ,   o   =   p a r e n t . W e b C a l e n d a r . c a l e n d a r ;   f u n c t i o n   d o c u m e n t . o n m o u s e m o v e ( ) { " +  
         " i f ( p a r e n t . W e b C a l e n d a r . d r a g   & &   d r a g ) { i f ( o . s t y l e . l e f t = = ' ' ) o . s t y l e . l e f t = 0 ;   i f ( o . s t y l e . t o p = = ' ' ) o . s t y l e . t o p = 0 ; " +  
         " o . s t y l e . l e f t   =   p a r s e I n t ( o . s t y l e . l e f t )   +   w i n d o w . e v e n t . c l i e n t X - c x ; " +  
         " o . s t y l e . t o p     =   p a r s e I n t ( o . s t y l e . t o p )     +   w i n d o w . e v e n t . c l i e n t Y - c y ; } } " +  
         " f u n c t i o n   d o c u m e n t . o n k e y d o w n ( ) {   s w i t c h ( w i n d o w . e v e n t . k e y C o d e ) {     c a s e   2 7   :   p a r e n t . h i d d e n C a l e n d a r ( ) ;   b r e a k ; " +  
         " c a s e   3 7   :   p a r e n t . p r e v M ( ) ;   b r e a k ;   c a s e   3 8   :   p a r e n t . p r e v Y ( ) ;   b r e a k ;   c a s e   3 9   :   p a r e n t . n e x t M ( ) ;   b r e a k ;   c a s e   4 0   :   p a r e n t . n e x t Y ( ) ;   b r e a k ; " +  
         " c a s e   8 4   :   d o c u m e n t . f o r m s [ 0 ] . t o d a y . c l i c k ( ) ;   b r e a k ; }   w i n d o w . e v e n t . k e y C o d e   =   0 ;   w i n d o w . e v e n t . r e t u r n V a l u e =   f a l s e ; } " +  
         " f u n c t i o n   d r a g S t a r t ( ) { c x = w i n d o w . e v e n t . c l i e n t X ;   c y = w i n d o w . e v e n t . c l i e n t Y ;   d r a g = t r u e ; } < / s c r " + " i p t > " }  
  
         s t r I f r a m e   + =   " < s e l e c t   n a m e = t m p Y e a r S e l e c t     o n b l u r = ' p a r e n t . h i d d e n S e l e c t ( t h i s ) '   s t y l e = ' z - i n d e x : 1 ; p o s i t i o n : a b s o l u t e ; t o p : 3 ; l e f t : 1 8 ; d i s p l a y : n o n e ' " +  
         "   o n c h a n g e = ' p a r e n t . W e b C a l e n d a r . t h i s Y e a r   = t h i s . v a l u e ;   p a r e n t . h i d d e n S e l e c t ( t h i s ) ;   p a r e n t . w r i t e C a l e n d a r ( ) ; ' > < / s e l e c t > " +  
         " < s e l e c t   n a m e = t m p M o n t h S e l e c t   o n b l u r = ' p a r e n t . h i d d e n S e l e c t ( t h i s ) '   s t y l e = ' z - i n d e x : 1 ;   p o s i t i o n : a b s o l u t e ; t o p : 3 ; l e f t : 7 4 ; d i s p l a y : n o n e ' " +  
         "   o n c h a n g e = ' p a r e n t . W e b C a l e n d a r . t h i s M o n t h = t h i s . v a l u e ;   p a r e n t . h i d d e n S e l e c t ( t h i s ) ;   p a r e n t . w r i t e C a l e n d a r ( ) ; ' > < / s e l e c t > " +  
  
         " < t a b l e   i d = t a b l e M a i n   c l a s s = b g   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 > " +  
         " < t r > < t d   w i d t h = 1 4 0   h e i g h t = 1 9   b g c o l o r = ' " +   W e b C a l e n d a r . l i g h t C o l o r   + " ' > " +  
         "         < t a b l e   w i d t h = 1 4 0   i d = t a b l e H e a d   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 > < t r   a l i g n = c e n t e r > " +  
         "         < t d   w i d t h = 1 5   h e i g h t = 1 9   c l a s s = b g   t i t l e = ' '   s t y l e = ' c u r s o r :   h a n d '   o n c l i c k = ' p a r e n t . p r e v M ( ) ' > < b > & l t ; < / b > < / t d > " +  
         "         < t d   w i d t h = 6 0   i d = m e i z z Y e a r H e a d     t i t l e = ' '   o n c l i c k = ' p a r e n t . f u n Y e a r S e l e c t ( p a r s e I n t ( t h i s . i n n e r T e x t ,   1 0 ) ) ' " +  
         "                 o n m o u s e o v e r = ' t h i s . b g C o l o r = p a r e n t . W e b C a l e n d a r . d a r k C o l o r ;   t h i s . s t y l e . c o l o r = p a r e n t . W e b C a l e n d a r . l i g h t C o l o r ' " +  
         "                 o n m o u s e o u t = ' t h i s . b g C o l o r = p a r e n t . W e b C a l e n d a r . l i g h t C o l o r ;   t h i s . s t y l e . c o l o r = p a r e n t . W e b C a l e n d a r . w o r d C o l o r ' > < / t d > " +  
         "         < t d   w i d t h = 5 0   i d = m e i z z Y e a r M o n t h   t i t l e = ' '   o n c l i c k = ' p a r e n t . f u n M o n t h S e l e c t ( p a r s e I n t ( t h i s . i n n e r T e x t ,   1 0 ) ) ' " +  
         "                 o n m o u s e o v e r = ' t h i s . b g C o l o r = p a r e n t . W e b C a l e n d a r . d a r k C o l o r ;   t h i s . s t y l e . c o l o r = p a r e n t . W e b C a l e n d a r . l i g h t C o l o r ' " +  
         "                 o n m o u s e o u t = ' t h i s . b g C o l o r = p a r e n t . W e b C a l e n d a r . l i g h t C o l o r ;   t h i s . s t y l e . c o l o r = p a r e n t . W e b C a l e n d a r . w o r d C o l o r ' > < / t d > " +  
         "         < t d   w i d t h = 1 5   c l a s s = b g   t i t l e = ' '   o n c l i c k = ' p a r e n t . n e x t M ( ) '   s t y l e = ' c u r s o r :   h a n d ' > < b > & g t ; < / b > < / t d > < / t r > < / t a b l e > " +  
         " < / t d > < / t r > < t r > < t d   h e i g h t = 2 0 > < t a b l e   i d = t a b l e W e e k   b o r d e r = 1   w i d t h = 1 4 0   c e l l p a d d i n g = 0   c e l l s p a c i n g = 0   " ;  
         i f ( W e b C a l e n d a r . d r a g ) { s t r I f r a m e   + =   " o n m o u s e d o w n = ' d r a g S t a r t ( ) '   o n m o u s e u p = ' d r a g = f a l s e '   o n m o u s e o u t = ' d r a g = f a l s e ' " ; }  
         s t r I f r a m e   + =   "   b o r d e r C o l o r L i g h t = ' " +   W e b C a l e n d a r . d a r k C o l o r   + " '   b o r d e r C o l o r D a r k = ' " +   W e b C a l e n d a r . l i g h t C o l o r   + " ' > " +  
         "         < t r   a l i g n = c e n t e r > < t d   h e i g h t = 2 0 > S u < / t d > < t d > M o < / t d > < t d > T u < / t d > < t d > W e < / t d > < t d > T h < / t d > < t d > F r < / t d > < t d > S a < / t d > < / t r > < / t a b l e > " +  
         " < / t d > < / t r > < t r > < t d   v a l i g n = t o p   w i d t h = 1 4 0   b g c o l o r = ' " +   W e b C a l e n d a r . l i g h t C o l o r   + " ' > " +  
         "         < t a b l e   i d = t a b l e D a y   h e i g h t = 1 2 0   w i d t h = 1 4 0   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 > " ;  
                   f o r ( v a r   x = 0 ;   x < 5 ;   x + + ) {   s t r I f r a m e   + =   " < t r > " ;  
                   f o r ( v a r   y = 0 ;   y < 7 ;   y + + )     s t r I f r a m e   + =   " < t d   c l a s s = o u t   i d = ' m e i z z D a y " +   ( x * 7 + y )   + " ' > < / t d > " ;   s t r I f r a m e   + =   " < / t r > " ; }  
                   s t r I f r a m e   + =   " < t r > " ;  
                   f o r ( v a r   x = 3 5 ;   x < 3 8 ;   x + + )   s t r I f r a m e   + =   " < t d   c l a s s = o u t   i d = ' m e i z z D a y " +   x   + " ' > < / t d > " ;  
  
 	 	   / /   A D D E D  
                   s t r I f r a m e   + =   " < t d   c o l s p a n = 2   c l a s s = o u t > < i n p u t   s t y l e = '   b a c k g r o u n d - c o l o r :   " +  
                   W e b C a l e n d a r . b t n B g C o l o r   + " ; c u r s o r :   h a n d ;   p a d d i n g - t o p :   4 p x ;   w i d t h :   1 0 0 % ;   h e i g h t :   1 0 0 % ;   b o r d e r :   0 '   o n f o c u s = ' t h i s . b l u r ( ) ' " +  
                   "   t y p e = b u t t o n   v a l u e = ' R e s e t '   o n c l i c k = ' p a r e n t . o n R e s e t ( ) ' > < / t d > " ;  
                   / /  
  
                   s t r I f r a m e   + = " < t d   c o l s p a n = 2   c l a s s = o u t   t i t l e = ' " +   W e b C a l e n d a r . r e g I n f o   + " ' > < i n p u t   s t y l e = '   b a c k g r o u n d - c o l o r :   " +  
                   W e b C a l e n d a r . b t n B g C o l o r   + " ; c u r s o r :   h a n d ;   p a d d i n g - t o p :   4 p x ;   w i d t h :   1 0 0 % ;   h e i g h t :   1 0 0 % ;   b o r d e r :   0 '   o n f o c u s = ' t h i s . b l u r ( ) ' " +  
                   "   t y p e = b u t t o n   v a l u e = ' C l o s e '   o n c l i c k = ' p a r e n t . h i d d e n C a l e n d a r ( ) ' > < / t d > < / t r > < / t a b l e > " +  
         " < / t d > < / t r > < t r > < t d   h e i g h t = 2 0   w i d t h = 1 4 0   b g c o l o r = ' " +   W e b C a l e n d a r . l i g h t C o l o r   + " ' > " +  
         "         < t a b l e   b o r d e r = 0   c e l l p a d d i n g = 1   c e l l s p a c i n g = 0   w i d t h = 1 4 0 > " +  
         "         < t r > < t d > < i n p u t   n a m e = p r e v Y e a r   t i t l e = ' '   o n c l i c k = ' p a r e n t . p r e v Y ( ) '   t y p e = b u t t o n   v a l u e = ' & l t ; & l t ; ' " +  
         "         o n f o c u s = ' t h i s . b l u r ( ) '   s t y l e = ' m e i z z : e x p r e s s i o n ( t h i s . d i s a b l e d = p a r e n t . W e b C a l e n d a r . t h i s Y e a r = = 1 0 0 0 ) ' > < i n p u t " +  
         "         o n f o c u s = ' t h i s . b l u r ( ) '   n a m e = p r e v M o n t h   t i t l e = ' '   o n c l i c k = ' p a r e n t . p r e v M ( ) '   t y p e = b u t t o n   v a l u e = ' & l t ; & n b s p ; ' > " +  
         "         < / t d > < t d   a l i g n = c e n t e r > < i n p u t   n a m e = t o d a y   t y p e = b u t t o n   v a l u e = ' T o d a y '   o n f o c u s = ' t h i s . b l u r ( ) '   s t y l e = ' w i d t h :   5 0 '   t i t l e = ' ' " +  
         "         o n c l i c k = \ " p a r e n t . r e t u r n D a t e ( n e w   D a t e ( ) . g e t D a t e ( )   + ' / ' +   ( n e w   D a t e ( ) . g e t M o n t h ( )   + 1 )   + ' / ' +   n e w   D a t e ( ) . g e t F u l l Y e a r ( ) ) \ " > " +  
         "         < / t d > < t d   a l i g n = r i g h t > < i n p u t   t i t l e = ' '   n a m e = n e x t M o n t h   o n c l i c k = ' p a r e n t . n e x t M ( ) '   t y p e = b u t t o n   v a l u e = ' & n b s p ; & g t ; ' " +  
         "         o n f o c u s = ' t h i s . b l u r ( ) ' > < i n p u t   n a m e = n e x t Y e a r   t i t l e = ' '   o n c l i c k = ' p a r e n t . n e x t Y ( ) '   t y p e = b u t t o n   v a l u e = ' & g t ; & g t ; ' " +  
         "         o n f o c u s = ' t h i s . b l u r ( ) '   s t y l e = ' m e i z z : e x p r e s s i o n ( t h i s . d i s a b l e d = p a r e n t . W e b C a l e n d a r . t h i s Y e a r = = 9 9 9 9 ) ' > < / t d > < / t r > < / t a b l e > " +  
         " < / t d > < / t r > < t a b l e > < / f o r m > < / b o d y > < / h t m l > " ;  
         w i t h ( W e b C a l e n d a r . i f r a m e )  
         {  
                 d o c u m e n t . w r i t e l n ( s t r I f r a m e ) ;   d o c u m e n t . c l o s e ( ) ;  
                 f o r ( v a r   i = 0 ;   i < 3 8 ;   i + + )  
                 {  
                         W e b C a l e n d a r . d a y O b j [ i ]   =   e v a l ( " m e i z z D a y " +   i ) ;  
                         W e b C a l e n d a r . d a y O b j [ i ] . o n m o u s e o v e r   =   d a y M o u s e O v e r ;  
                         W e b C a l e n d a r . d a y O b j [ i ] . o n m o u s e o u t     =   d a y M o u s e O u t ;  
                         W e b C a l e n d a r . d a y O b j [ i ] . o n c l i c k           =   r e t u r n D a t e ;  
                 }  
         }  
 }  
 f u n c t i o n   W e b C a l e n d a r ( )    
 {  
         t h i s . r e g I n f o         =   " W E B   C a l e n d a r   v e r   3 . 0 " ;  
         t h i s . r e g I n f o       + =   " " ;  
         t h i s . d a y s M o n t h     =   n e w   A r r a y ( 3 1 ,   2 8 ,   3 1 ,   3 0 ,   3 1 ,   3 0 ,   3 1 ,   3 1 ,   3 0 ,   3 1 ,   3 0 ,   3 1 ) ;  
         t h i s . d a y                 =   n e w   A r r a y ( 3 8 ) ;                    
         t h i s . d a y O b j           =   n e w   A r r a y ( 3 8 ) ;                    
         t h i s . d a t e S t y l e     =   n u l l ;                                        
         t h i s . o b j E x p o r t     =   n u l l ;            
         t h i s . e v e n t S r c       =   n u l l ;                                      
         t h i s . i n p u t D a t e     =   n u l l ;                                      
         t h i s . t h i s Y e a r       =   n e w   D a t e ( ) . g e t F u l l Y e a r ( ) ;    
         t h i s . t h i s M o n t h     =   n e w   D a t e ( ) . g e t M o n t h ( ) +   1 ;    
         t h i s . t h i s D a y         =   n e w   D a t e ( ) . g e t D a t e ( ) ;        
         t h i s . t o d a y             =   t h i s . t h i s D a y   + " / " +   t h i s . t h i s M o n t h   + " / " +   t h i s . t h i s Y e a r ;      
         t h i s . i f r a m e           =   w i n d o w . f r a m e s ( " m e i z z C a l e n d a r I f r a m e " ) ;    
         t h i s . c a l e n d a r       =   g e t O b j e c t B y I d ( " m e i z z C a l e n d a r L a y e r " ) ;      
         t h i s . d a t e R e g         =   " " ;                      
  
         t h i s . y e a r F a l l       =   5 0 ;                  
         t h i s . f o r m a t           =   " y y y y - m m - d d " ;  
         t h i s . t i m e S h o w       =   f a l s e ;              
         t h i s . d r a g               =   t r u e ;                  
         t h i s . d a r k C o l o r     =   " # A 2 B B D 7 " ;    
         t h i s . l i g h t C o l o r   =   " # F F F F F F " ;      
         t h i s . b t n B g C o l o r   =   " # F 3 F 8 F E " ;      
         t h i s . w o r d C o l o r     =   " # 0 1 1 6 6 F " ;      
         t h i s . w o r d D a r k       =   " # D C D C D C " ;        
         t h i s . d a y B g C o l o r   =   " # F 6 F 6 F 6 " ;      
         t h i s . t o d a y C o l o r   =   " # 5 7 8 4 B E " ;    
         t h i s . D a r k B o r d e r   =   " # F 6 F 6 F 6 " ;      
 }       v a r   W e b C a l e n d a r   =   n e w   W e b C a l e n d a r ( ) ;  
  
 f u n c t i o n   c a l e n d a r ( )    
 {  
         v a r   e   =   w i n d o w . e v e n t . s r c E l e m e n t ;       w r i t e I f r a m e ( ) ;  
         v a r   o   =   W e b C a l e n d a r . c a l e n d a r . s t y l e ;   W e b C a l e n d a r . e v e n t S r c   =   e ;  
 	 i f   ( a r g u m e n t s . l e n g t h   = =   0 )   W e b C a l e n d a r . o b j E x p o r t   =   e ;  
         e l s e   W e b C a l e n d a r . o b j E x p o r t   =   e v a l ( a r g u m e n t s [ 0 ] ) ;  
  
         W e b C a l e n d a r . i f r a m e . t a b l e W e e k . s t y l e . c u r s o r   =   W e b C a l e n d a r . d r a g   ?   " m o v e "   :   " d e f a u l t " ;  
 	 v a r   t   =   e . o f f s e t T o p ,     h   =   e . c l i e n t H e i g h t ,   l   =   e . o f f s e t L e f t ,   p   =   e . t y p e ;  
 	 w h i l e   ( e   =   e . o f f s e t P a r e n t ) { t   + =   e . o f f s e t T o p ;   l   + =   e . o f f s e t L e f t ; }  
         o . d i s p l a y   =   " " ;   W e b C a l e n d a r . i f r a m e . d o c u m e n t . b o d y . f o c u s ( ) ;  
         v a r   c w   =   W e b C a l e n d a r . c a l e n d a r . c l i e n t W i d t h ,   c h   =   W e b C a l e n d a r . c a l e n d a r . c l i e n t H e i g h t ;  
         v a r   d w   =   d o c u m e n t . b o d y . c l i e n t W i d t h ,   d l   =   d o c u m e n t . b o d y . s c r o l l L e f t ,   d t   =   d o c u m e n t . b o d y . s c r o l l T o p ;  
          
         i f   ( d o c u m e n t . b o d y . c l i e n t H e i g h t   +   d t   -   t   -   h   > =   c h )   o . t o p   =   ( p = = " i m a g e " ) ?   t   +   h   :   t   +   h   +   6 ;  
         e l s e   o . t o p     =   ( t   -   d t   <   c h )   ?   ( ( p = = " i m a g e " ) ?   t   +   h   :   t   +   h   +   6 )   :   t   -   c h ;  
         i f   ( d w   +   d l   -   l   > =   c w )   o . l e f t   =   l ;   e l s e   o . l e f t   =   ( d w   > =   c w )   ?   d w   -   c w   +   d l   :   d l ;  
  
         i f     ( ! W e b C a l e n d a r . t i m e S h o w )   W e b C a l e n d a r . d a t e R e g   =   / ^ ( \ d { 1 , 4 } ) ( - | \ / ) ( \ d { 1 , 2 } ) \ 2 ( \ d { 1 , 2 } ) $ / ;  
         e l s e   W e b C a l e n d a r . d a t e R e g   =   / ^ ( \ d { 1 , 4 } ) ( - | \ / ) ( \ d { 1 , 2 } ) \ 2 ( \ d { 1 , 2 } )   ( \ d { 1 , 2 } ) : ( \ d { 1 , 2 } ) : ( \ d { 1 , 2 } ) $ / ;  
  
         t r y { / *  
                 i f   ( W e b C a l e n d a r . o b j E x p o r t . v a l u e . t r i m ( )   ! =   " " ) {  
                         W e b C a l e n d a r . d a t e S t y l e   =   W e b C a l e n d a r . o b j E x p o r t . v a l u e . t r i m ( ) . m a t c h ( W e b C a l e n d a r . d a t e R e g ) ;  
                         i f   ( W e b C a l e n d a r . d a t e S t y l e   = =   n u l l )  
                         {  
                                 W e b C a l e n d a r . t h i s Y e a r       =   n e w   D a t e ( ) . g e t F u l l Y e a r ( ) ;  
                                 W e b C a l e n d a r . t h i s M o n t h     =   n e w   D a t e ( ) . g e t M o n t h ( ) +   1 ;  
                                 W e b C a l e n d a r . t h i s D a y         =   n e w   D a t e ( ) . g e t D a t e ( ) ;  
                                 a l e r t ( " D a t e   i n   T e x t B o x   W r o n g . " ) ;  
                                 w r i t e C a l e n d a r ( ) ;   r e t u r n   f a l s e ;  
                         }  
                         e l s e  
                         {  
                                 W e b C a l e n d a r . t h i s Y e a r       =   p a r s e I n t ( W e b C a l e n d a r . d a t e S t y l e [ 1 ] ,   1 0 ) ;  
                                 W e b C a l e n d a r . t h i s M o n t h     =   p a r s e I n t ( W e b C a l e n d a r . d a t e S t y l e [ 3 ] ,   1 0 ) ;  
                                 W e b C a l e n d a r . t h i s D a y         =   p a r s e I n t ( W e b C a l e n d a r . d a t e S t y l e [ 4 ] ,   1 0 ) ;  
                                 W e b C a l e n d a r . i n p u t D a t e     =   p a r s e I n t ( W e b C a l e n d a r . t h i s D a y ,   1 0 )   + " / " +   p a r s e I n t ( W e b C a l e n d a r . t h i s M o n t h ,   1 0 )   + " / " +    
                                 p a r s e I n t ( W e b C a l e n d a r . t h i s Y e a r ,   1 0 ) ;   w r i t e C a l e n d a r ( ) ;  
                         }  
                 }     e l s e * /   w r i t e C a l e n d a r ( ) ;  
         }     c a t c h ( e ) { w r i t e C a l e n d a r ( ) ; }  
 }  
 f u n c t i o n   f u n M o n t h S e l e c t ( )  
 {  
         v a r   m   =   i s N a N ( p a r s e I n t ( W e b C a l e n d a r . t h i s M o n t h ,   1 0 ) )   ?   n e w   D a t e ( ) . g e t M o n t h ( )   +   1   :   p a r s e I n t ( W e b C a l e n d a r . t h i s M o n t h ) ;  
         v a r   e   =   W e b C a l e n d a r . i f r a m e . d o c u m e n t . f o r m s [ 0 ] . t m p M o n t h S e l e c t ;  
         f o r   ( v a r   i = 1 ;   i < 1 3 ;   i + + )   e . o p t i o n s . a d d ( n e w   O p t i o n ( i   + "   " ,   i ) ) ;  
         e . s t y l e . d i s p l a y   =   " " ;   e . v a l u e   =   m ;   e . f o c u s ( ) ;   w i n d o w . s t a t u s   =   e . s t y l e . t o p ;  
 }  
 f u n c t i o n   f u n Y e a r S e l e c t ( )    
 {  
         v a r   n   =   W e b C a l e n d a r . y e a r F a l l ;  
         v a r   e   =   W e b C a l e n d a r . i f r a m e . d o c u m e n t . f o r m s [ 0 ] . t m p Y e a r S e l e c t ;  
         v a r   y   =   i s N a N ( p a r s e I n t ( W e b C a l e n d a r . t h i s Y e a r ,   1 0 ) )   ?   n e w   D a t e ( ) . g e t F u l l Y e a r ( )   :   p a r s e I n t ( W e b C a l e n d a r . t h i s Y e a r ) ;  
                 y   =   ( y   < =   1 0 0 0 ) ?   1 0 0 0   :   ( ( y   > =   9 9 9 9 ) ?   9 9 9 9   :   y ) ;  
         v a r   m i n   =   ( y   -   n   > =   1 0 0 0 )   ?   y   -   n   :   1 0 0 0 ;  
         v a r   m a x   =   ( y   +   n   < =   9 9 9 9 )   ?   y   +   n   :   9 9 9 9 ;  
                 m i n   =   ( m a x   = =   9 9 9 9 )   ?   m a x - n * 2   :   m i n ;  
                 m a x   =   ( m i n   = =   1 0 0 0 )   ?   m i n + n * 2   :   m a x ;  
         f o r   ( v a r   i = m i n ;   i < = m a x ;   i + + )   e . o p t i o n s . a d d ( n e w   O p t i o n ( i   + "   " ,   i ) ) ;  
         e . s t y l e . d i s p l a y   =   " " ;   e . v a l u e   =   y ;   e . f o c u s ( ) ;  
 }  
 f u n c t i o n   p r e v M ( )  
 {  
         W e b C a l e n d a r . t h i s D a y   =   1 ;  
         i f   ( W e b C a l e n d a r . t h i s M o n t h = = 1 )  
         {  
                 W e b C a l e n d a r . t h i s Y e a r - - ;  
                 W e b C a l e n d a r . t h i s M o n t h = 1 3 ;  
         }  
         W e b C a l e n d a r . t h i s M o n t h - - ;   w r i t e C a l e n d a r ( ) ;  
 }  
 f u n c t i o n   n e x t M ( )    
 {  
         W e b C a l e n d a r . t h i s D a y   =   1 ;  
         i f   ( W e b C a l e n d a r . t h i s M o n t h = = 1 2 )  
         {  
                 W e b C a l e n d a r . t h i s Y e a r + + ;  
                 W e b C a l e n d a r . t h i s M o n t h = 0 ;  
         }  
         W e b C a l e n d a r . t h i s M o n t h + + ;   w r i t e C a l e n d a r ( ) ;  
 }  
 f u n c t i o n   p r e v Y ( ) { W e b C a l e n d a r . t h i s D a y   =   1 ;   W e b C a l e n d a r . t h i s Y e a r - - ;   w r i t e C a l e n d a r ( ) ; }  
 f u n c t i o n   n e x t Y ( ) { W e b C a l e n d a r . t h i s D a y   =   1 ;   W e b C a l e n d a r . t h i s Y e a r + + ;   w r i t e C a l e n d a r ( ) ; }  
 f u n c t i o n   h i d d e n S e l e c t ( e ) { f o r ( v a r   i = e . o p t i o n s . l e n g t h ;   i > - 1 ;   i - - ) e . o p t i o n s . r e m o v e ( i ) ;   e . s t y l e . d i s p l a y = " n o n e " ; }  
 f u n c t i o n   g e t O b j e c t B y I d ( i d ) {   i f ( d o c u m e n t . a l l )   r e t u r n ( e v a l ( " d o c u m e n t . a l l . " +   i d ) ) ;   r e t u r n ( e v a l ( i d ) ) ;   }  
 f u n c t i o n   h i d d e n C a l e n d a r ( ) { g e t O b j e c t B y I d ( " m e i z z C a l e n d a r L a y e r " ) . s t y l e . d i s p l a y   =   " n o n e " ; } ;  
 f u n c t i o n   a p p e n d Z e r o ( n ) { r e t u r n ( ( " 0 0 " +   n ) . s u b s t r ( ( " 0 0 " +   n ) . l e n g t h - 2 ) ) ; }  
 f u n c t i o n   S t r i n g . p r o t o t y p e . t r i m ( ) { r e t u r n   t h i s . r e p l a c e ( / ( ^ \ s * ) | ( \ s * $ ) / g , " " ) ; }  
 f u n c t i o n   d a y M o u s e O v e r ( )  
 {  
         t h i s . c l a s s N a m e   =   " o v e r " ;  
         t h i s . s t y l e . b a c k g r o u n d C o l o r   =   W e b C a l e n d a r . d a r k C o l o r ;  
         i f ( W e b C a l e n d a r . d a y [ t h i s . i d . s u b s t r ( 8 ) ] . s p l i t ( " / " ) [ 1 ]   = =   W e b C a l e n d a r . t h i s M o n t h )  
         t h i s . s t y l e . c o l o r   =   W e b C a l e n d a r . l i g h t C o l o r ;  
 }  
 f u n c t i o n   d a y M o u s e O u t ( )  
 {  
         t h i s . c l a s s N a m e   =   " o u t " ;   v a r   d   =   W e b C a l e n d a r . d a y [ t h i s . i d . s u b s t r ( 8 ) ] ,   a   =   d . s p l i t ( " / " ) ;  
         t h i s . s t y l e . r e m o v e A t t r i b u t e ( ' b a c k g r o u n d C o l o r ' ) ;  
         i f ( a [ 1 ]   = =   W e b C a l e n d a r . t h i s M o n t h   & &   d   ! =   W e b C a l e n d a r . t o d a y )  
         {  
                 i f ( W e b C a l e n d a r . d a t e S t y l e   & &   a [ 0 ]   = =   p a r s e I n t ( W e b C a l e n d a r . d a t e S t y l e [ 4 ] ,   1 0 ) )  
                 t h i s . s t y l e . c o l o r   =   W e b C a l e n d a r . l i g h t C o l o r ;  
                 t h i s . s t y l e . c o l o r   =   W e b C a l e n d a r . w o r d C o l o r ;  
         }  
 }  
 f u n c t i o n   w r i t e C a l e n d a r ( )    
 {  
         v a r   y   =   W e b C a l e n d a r . t h i s Y e a r ;  
         v a r   m   =   W e b C a l e n d a r . t h i s M o n t h ;    
         v a r   d   =   W e b C a l e n d a r . t h i s D a y ;  
         W e b C a l e n d a r . d a y s M o n t h [ 1 ]   =   ( 0 = = y % 4   & &   ( y % 1 0 0 ! = 0   | |   y % 4 0 0 = = 0 ) )   ?   2 9   :   2 8 ;  
         i f   ( ! ( y < = 9 9 9 9   & &   y   > =   1 0 0 0   & &   p a r s e I n t ( m ,   1 0 ) > 0   & &   p a r s e I n t ( m ,   1 0 ) < 1 3   & &   p a r s e I n t ( d ,   1 0 ) > 0 ) ) {  
                 a l e r t ( " W r o n g   D a t e " ) ;  
                 W e b C a l e n d a r . t h i s Y e a r       =   n e w   D a t e ( ) . g e t F u l l Y e a r ( ) ;  
                 W e b C a l e n d a r . t h i s M o n t h     =   n e w   D a t e ( ) . g e t M o n t h ( ) +   1 ;  
                 W e b C a l e n d a r . t h i s D a y         =   n e w   D a t e ( ) . g e t D a t e ( ) ;   }  
         y   =   W e b C a l e n d a r . t h i s Y e a r ;  
         m   =   W e b C a l e n d a r . t h i s M o n t h ;  
         d   =   W e b C a l e n d a r . t h i s D a y ;  
         W e b C a l e n d a r . i f r a m e . m e i z z Y e a r H e a d . i n n e r T e x t     =   y   + "   Y e a r " ;  
         W e b C a l e n d a r . i f r a m e . m e i z z Y e a r M o n t h . i n n e r T e x t   =   p a r s e I n t ( m ,   1 0 )   + "   M o n t h " ;  
         W e b C a l e n d a r . d a y s M o n t h [ 1 ]   =   ( 0 = = y % 4   & &   ( y % 1 0 0 ! = 0   | |   y % 4 0 0 = = 0 ) )   ?   2 9   :   2 8 ;    
         v a r   w   =   n e w   D a t e ( y ,   m - 1 ,   1 ) . g e t D a y ( ) ;  
         v a r   p r e v D a y s   =   m = = 1     ?   W e b C a l e n d a r . d a y s M o n t h [ 1 1 ]   :   W e b C a l e n d a r . d a y s M o n t h [ m - 2 ] ;  
         f o r ( v a r   i = ( w - 1 ) ;   i > = 0 ;   i - - )  
         {  
                 W e b C a l e n d a r . d a y [ i ]   =   p r e v D a y s   + " / " +   ( p a r s e I n t ( m ,   1 0 ) - 1 )   + " / " +   y ;  
                 i f ( m = = 1 )   W e b C a l e n d a r . d a y [ i ]   =   p r e v D a y s   + " / " +   1 2   + " / " +   ( p a r s e I n t ( y ,   1 0 ) - 1 ) ;  
                 p r e v D a y s - - ;  
         }  
         f o r ( v a r   i = 1 ;   i < = W e b C a l e n d a r . d a y s M o n t h [ m - 1 ] ;   i + + )   W e b C a l e n d a r . d a y [ i + w - 1 ]   =   i   + " / " +   m   + " / " +   y ;  
         f o r ( v a r   i = 1 ;   i < 3 9 - w - W e b C a l e n d a r . d a y s M o n t h [ m - 1 ] + 1 ;   i + + )  
         {  
                 W e b C a l e n d a r . d a y [ W e b C a l e n d a r . d a y s M o n t h [ m - 1 ] + w - 1 + i ]   =   i   + " / " +   ( p a r s e I n t ( m ,   1 0 ) + 1 )   + " / " +   y ;  
                 i f ( m = = 1 2 )   W e b C a l e n d a r . d a y [ W e b C a l e n d a r . d a y s M o n t h [ m - 1 ] + w - 1 + i ]   =   i   + " / " +   1   + " / " +   ( p a r s e I n t ( y ,   1 0 ) + 1 ) ;  
         }  
         f o r ( v a r   i = 0 ;   i < 3 8 ;   i + + )          
         {  
                 v a r   a   =   W e b C a l e n d a r . d a y [ i ] . s p l i t ( " / " ) ;  
                 W e b C a l e n d a r . d a y O b j [ i ] . i n n e r T e x t         =   a [ 0 ] ;  
                 W e b C a l e n d a r . d a y O b j [ i ] . t i t l e                 =   a [ 2 ]   + " - " +   a p p e n d Z e r o ( a [ 1 ] )   + " - " +   a p p e n d Z e r o ( a [ 0 ] ) ;  
                 W e b C a l e n d a r . d a y O b j [ i ] . b g C o l o r             =   W e b C a l e n d a r . d a y B g C o l o r ;  
                 W e b C a l e n d a r . d a y O b j [ i ] . s t y l e . c o l o r     =   W e b C a l e n d a r . w o r d C o l o r ;  
                 i f   ( ( i < 1 0   & &   p a r s e I n t ( W e b C a l e n d a r . d a y [ i ] ,   1 0 ) > 2 0 )   | |   ( i > 2 7   & &   p a r s e I n t ( W e b C a l e n d a r . d a y [ i ] ,   1 0 ) < 1 2 ) )  
                         W e b C a l e n d a r . d a y O b j [ i ] . s t y l e . c o l o r   =   W e b C a l e n d a r . w o r d D a r k ;  
                 i f   ( W e b C a l e n d a r . i n p u t D a t e = = W e b C a l e n d a r . d a y [ i ] )          
                 { W e b C a l e n d a r . d a y O b j [ i ] . b g C o l o r   =   W e b C a l e n d a r . d a r k C o l o r ;   W e b C a l e n d a r . d a y O b j [ i ] . s t y l e . c o l o r   =   W e b C a l e n d a r . l i g h t C o l o r ; }  
                 i f   ( W e b C a l e n d a r . d a y [ i ]   = =   W e b C a l e n d a r . t o d a y )              
                 { W e b C a l e n d a r . d a y O b j [ i ] . b g C o l o r   =   W e b C a l e n d a r . t o d a y C o l o r ;   W e b C a l e n d a r . d a y O b j [ i ] . s t y l e . c o l o r   =   W e b C a l e n d a r . l i g h t C o l o r ; }  
         }  
 }  
 f u n c t i o n   r e t u r n D a t e ( )    
 {  
         i f ( W e b C a l e n d a r . o b j E x p o r t )  
         {  
                 v a r   r e t u r n V a l u e ;  
                 v a r   a   =   ( a r g u m e n t s . l e n g t h = = 0 )   ?   W e b C a l e n d a r . d a y [ t h i s . i d . s u b s t r ( 8 ) ] . s p l i t ( " / " )   :   a r g u m e n t s [ 0 ] . s p l i t ( " / " ) ;  
                 v a r   d   =   W e b C a l e n d a r . f o r m a t . m a t c h ( / ^ ( \ w { 4 } ) ( - | \ / ) ( \ w { 1 , 2 } ) \ 2 ( \ w { 1 , 2 } ) $ / ) ;  
                 i f ( d = = n u l l ) { a l e r t ( " R e d i f i n e   W e b C a l e n d a r . f o r m a t " ) ;   r e t u r n   f a l s e ; }  
                 v a r   f l a g   =   d [ 3 ] . l e n g t h = = 2   | |   d [ 4 ] . l e n g t h = = 2 ;    
                 r e t u r n V a l u e   =   f l a g   ?   a [ 2 ]   + d [ 2 ] +   a p p e n d Z e r o ( a [ 1 ] )   + d [ 2 ] +   a p p e n d Z e r o ( a [ 0 ] )   :   a [ 2 ]   + d [ 2 ] +   a [ 1 ]   + d [ 2 ] +   a [ 0 ] ;  
                 i f ( W e b C a l e n d a r . t i m e S h o w )  
                 {  
                         v a r   h   =   n e w   D a t e ( ) . g e t H o u r s ( ) ,   m   =   n e w   D a t e ( ) . g e t M i n u t e s ( ) ,   s   =   n e w   D a t e ( ) . g e t S e c o n d s ( ) ;  
                         r e t u r n V a l u e   + =   f l a g   ?   "   " +   a p p e n d Z e r o ( h )   + " : " +   a p p e n d Z e r o ( m )   + " : " +   a p p e n d Z e r o ( s )   :   "   " +     h     + " : " +   m   + " : " +   s ;  
                 }  
                 W e b C a l e n d a r . o b j E x p o r t . v a l u e   =   r e t u r n V a l u e ;  
                 h i d d e n C a l e n d a r ( ) ;  
         }  
 }  
 f u n c t i o n   d o c u m e n t . o n c l i c k ( )  
 {  
         i f ( W e b C a l e n d a r . e v e n t S r c   ! =   w i n d o w . e v e n t . s r c E l e m e n t )   h i d d e n C a l e n d a r ( ) ;  
 }  
  
 f u n c t i o n   o n R e s e t ( )  
 {  
 	 W e b C a l e n d a r . o b j E x p o r t . v a l u e   =   " " ;  
 	 h i d d e n C a l e n d a r ( ) ;  
 }  
 / / - - > 
