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