ÿþ 
 	 v a r   m e s s a g e F i r s t   =   " T r y   y o u r   l u c k . "  
 	 v a r   d r a w D a y   =   " T h e   D r a w   i s   T o d a y ! "  
 	 v a r   m o n t h a r r a y   =   n e w   A r r a y ( " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " )  
 	 v a r   m e s s a g e L a s t   =   " l e f t . "  
 	  
 	 f u n c t i o n   c o u n t d o w n ( y r , m , d )  
 	 {  
 	 	 v a r   t o d a y   =   n e w   D a t e ( ) ;  
 	 	 v a r   t o d a y y   =   t o d a y . g e t Y e a r ( ) ;  
 	  
 	 	 i f   ( t o d a y y   <   1 0 0 0 )  
 	 	 t o d a y y   + =   1 9 0 0 ;  
 	  
 	 	 v a r   t o d a y m   =   t o d a y . g e t M o n t h ( ) ;  
 	 	 v a r   t o d a y d   =   t o d a y . g e t D a t e ( ) ;  
 	 	 v a r   t o d a y s t r i n g   =   m o n t h a r r a y [ t o d a y m ]   +   "   "   +   t o d a y d   + " ,   "   +   t o d a y y ;  
 	 	 v a r   f u t u r e s t r i n g   =   m o n t h a r r a y [ m - 1 ]   +   "   "   +   d   +   " ,   "   +   y r ;  
 	 	 v a r   d i f f e r e n c e   =   ( M a t h . r o u n d ( ( D a t e . p a r s e ( f u t u r e s t r i n g )   -   D a t e . p a r s e ( t o d a y s t r i n g ) )   /   ( 2 4   *   6 0   *   6 0   *   1 0 0 0 ) )   *   1 ) ;  
 	 	 v a r   d i f f e r e n c e _ s t r   =   d i f f e r e n c e . t o S t r i n g ( ) ;  
  
 	 	 i f   ( d i f f e r e n c e   = =   0 )  
 	 	 {  
 	 	 	 d o c u m e n t . w r i t e ( d r a w D a y ) ;  
 	 	 }  
  
 	 	 e l s e   i f   ( d i f f e r e n c e   = =   1 )  
 	 	 {  
 	 	 	 v a r   d a y E n g   = " d a y " ;  
 	 	 	 d o c u m e n t . w r i t e ( m e s s a g e F i r s t   +   "   "   +   d i f f e r e n c e   +   "   "   +   d a y E n g   +   "   "   +   m e s s a g e L a s t ) ;  
 	 	 }  
 	 	  
 	 	 e l s e   i f   ( d i f f e r e n c e   >   1 )  
  
 	 	 {  
 	 	 	 v a r   d a y E n g   = " d a y s " ;  
 	 	 	 d o c u m e n t . w r i t e ( m e s s a g e F i r s t   +   "   "   +   d i f f e r e n c e   +   "   "   +   d a y E n g   +   "   "   +   m e s s a g e L a s t ) ;  
 	 	 }  
 	 }  
 
