ÿþf u n c t i o n   C a l e n d a r ( i d ,   e l e m I D ,   i n d e x ,   d a y ,   m o n t h ,   y e a r ,   e l e m D a y ,   e l e m M o n t h ,   e l e m Y e a r ,   l o w e r L i m i t ,   u p p e r L i m i t ,   d e f a u l t D e l a y ,   s e a r c h M i n D e l a y ,   m a x R a n g e ,   s e l e c t I n d e x O n l y ,   t y p e ,   w i n d o w M a i n T a b l e ,   d e f a u l t W i n d o w W i d t h I n c ,   d e f a u l t W i n d o w H e i g h t I n c ,   d i v I D ,   h i d e a b l e E l e m s )  
 { 	  
 	 t h i s . i d   =   S t r i n g ( i d ) ;  
 	 t h i s . e l e m   =   e l e m I D ;  
 	 t h i s . i n d e x   =   S t r i n g ( i n d e x ) ;  
 	  
 	 i f   ( V a l i d O b j ( d e f a u l t D e l a y ) )  
 	 {  
 	 	 v a r   d a t e A u x   =   n e w   D a t e ( ) ;  
 	 	 d a t e A u x . s e t D a t e ( d a t e A u x . g e t D a t e ( )   +   N u m b e r ( d e f a u l t D e l a y ) ) ;  
 	 	  
 	 	 v a r   d a y   =   d a t e A u x . g e t D a t e ( ) ;  
 	 	 v a r   m o n t h   =   d a t e A u x . g e t M o n t h ( ) ;  
 	 	 v a r   y e a r   =   d a t e A u x . g e t F u l l Y e a r ( ) ;  
 	 }  
 	  
 	 t h i s . d e f a u l t D a y   =   N u m b e r ( d a y ) ;  
 	 t h i s . d e f a u l t M o n t h   =   N u m b e r ( m o n t h ) ;  
 	 t h i s . d e f a u l t Y e a r   =   N u m b e r ( y e a r ) ; 	 	  
 	 t h i s . d a y   =   N u m b e r ( d a y ) ;  
 	 t h i s . m o n t h   =   N u m b e r ( m o n t h ) ;  
 	 t h i s . y e a r   =   N u m b e r ( y e a r ) ;  
 	  
 	 t h i s . e l e m D a y   =   e l e m D a y ;  
 	 t h i s . e l e m M o n t h   =   e l e m M o n t h ;  
 	 t h i s . e l e m Y e a r   =   e l e m Y e a r ; 	 	  
 	 t h i s . l o w e r L i m i t   =   N u m b e r ( l o w e r L i m i t ) ;  
 	 t h i s . u p p e r L i m i t   =   N u m b e r ( u p p e r L i m i t ) ; 	 	  
 	  
 	 t h i s . s e a r c h M i n D e l a y   =   s e a r c h M i n D e l a y ;  
 	 t h i s . m a x R a n g e   =   m a x R a n g e ;  
 	 t h i s . s e l e c t I n d e x O n l y   =   s e l e c t I n d e x O n l y ;  
 	  
 	 / /   0   -   n o r m a l     1   -   p o p u p       2   -   D I V  
 	 t h i s . t y p e   =   t y p e ;  
 	  
 	 t h i s . w i n d o w M a i n T a b l e   =   w i n d o w M a i n T a b l e ;  
 	 t h i s . d e f a u l t W i n d o w W i d t h I n c   =   d e f a u l t W i n d o w W i d t h I n c ;  
 	 t h i s . d e f a u l t W i n d o w H e i g h t I n c   =   d e f a u l t W i n d o w H e i g h t I n c ;  
 	  
 	 t h i s . d i v I D   =   d i v I D ;  
 	 t h i s . h i d e a b l e E l e m s   =   h i d e a b l e E l e m s ;  
  
 	 r e t u r n   t h i s ;  
 }  
  
 
