ÿþ/ *  
 C o u n t   u p   f r o m   a n y   d a t e   s c r i p t -  
 B y   W e b s i t e   A b s t r a c t i o n   ( w w w . w s a b s t r a c t . c o m )  
 O v e r   2 0 0 +   f r e e   s c r i p t s   h e r e !  
 * /  
 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 " )  
 f u n c t i o n   c o u n t u p ( 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 F u l l Y e a r ( )  
 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   p a s t 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 ( t o d a y s t r i n g ) - D a t e . p a r s e ( p a s t s t r i n g ) ) / ( 2 4 * 6 0 * 6 0 * 1 0 0 0 ) ) * 1 )  
 d o c u m e n t . w r i t e ( " < p   v a l i g n = m i d d l e > S u r m e n i a   i s t n i e j e   j u |  o d   < b > " + d i f f e r e n c e + " < / b >   d n i ! < / p > " )  
 }  
 / / e n t e r   t h e   c o u n t   u p   d a t e   u s i n g   t h e   f o r m a t   y e a r / m o n t h / d a y  
 c o u n t u p ( 2 0 0 5 , 0 9 , 0 1 ) 
