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