ÿþv a r   x m l h t t p ;  
  
 f u n c t i o n   l o a d X M L D o c V y s t a v a ( u r l )  
 {  
 	 x m l v y s t a v a = n u l l ;  
 	 i f   ( w i n d o w . X M L H t t p R e q u e s t )  
 	 { / /   c o d e   f o r   I E 7 ,   F i r e f o x ,   M o z i l l a ,   e t c .  
 	 	 x m l v y s t a v a = n e w   X M L H t t p R e q u e s t ( ) ;  
 	 }  
 	 e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t )  
 	 { / /   c o d e   f o r   I E 5 ,   I E 6  
 	 	 x m l v y s t a v a = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
 	 }  
 	 i f   ( x m l v y s t a v a ! = n u l l )  
 	 {  
 	 	 x m l v y s t a v a . o n r e a d y s t a t e c h a n g e = o n R e s p o n s e V y s t a v a ;  
 	 	 x m l v y s t a v a . o p e n ( " G E T " , u r l , t r u e ) ;  
 	 	 x m l v y s t a v a . s e n d ( n u l l ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 a l e r t ( " Y o u r   b r o w s e r   d o e s   n o t   s u p p o r t   X M L H T T P . " ) ;  
 	 }  
 }  
  
 f u n c t i o n   l o a d X M L D o c T i t u l ( u r l )  
 {  
 	 x m l t i t u l = n u l l ;  
 	 i f   ( w i n d o w . X M L H t t p R e q u e s t )  
 	 { / /   c o d e   f o r   I E 7 ,   F i r e f o x ,   M o z i l l a ,   e t c .  
 	 	 x m l t i t u l = n e w   X M L H t t p R e q u e s t ( ) ;  
 	 }  
 	 e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t )  
 	 { / /   c o d e   f o r   I E 5 ,   I E 6  
 	 	 x m l t i t u l = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
 	 }  
 	 i f   ( x m l t i t u l ! = n u l l )  
 	 {  
 	 	 x m l t i t u l . o n r e a d y s t a t e c h a n g e = o n R e s p o n s e T i t u l ;  
 	 	 x m l t i t u l . o p e n ( " G E T " , u r l , t r u e ) ;  
 	 	 x m l t i t u l . s e n d ( n u l l ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 a l e r t ( " Y o u r   b r o w s e r   d o e s   n o t   s u p p o r t   X M L H T T P . " ) ;  
 	 }  
 }  
  
 f u n c t i o n   l o a d X M L D o c Z k o u s k a ( u r l )  
 {  
 	 x m l z k o u s k a = n u l l ;  
 	 i f   ( w i n d o w . X M L H t t p R e q u e s t )  
 	 { / /   c o d e   f o r   I E 7 ,   F i r e f o x ,   M o z i l l a ,   e t c .  
 	 	 x m l z k o u s k a = n e w   X M L H t t p R e q u e s t ( ) ;  
 	 }  
 	 e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t )  
 	 { / /   c o d e   f o r   I E 5 ,   I E 6  
 	 	 x m l z k o u s k a = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ;  
 	 }  
 	 i f   ( x m l z k o u s k a ! = n u l l )  
 	 {  
 	 	 x m l z k o u s k a . o n r e a d y s t a t e c h a n g e = o n R e s p o n s e Z k o u s k a ;  
 	 	 x m l z k o u s k a . o p e n ( " G E T " , u r l , t r u e ) ;  
 	 	 x m l z k o u s k a . s e n d ( n u l l ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 a l e r t ( " Y o u r   b r o w s e r   d o e s   n o t   s u p p o r t   X M L H T T P . " ) ;  
 	 }  
 }  
  
  
 f u n c t i o n   o n R e s p o n s e V y s t a v a ( )  
 {  
 	 i f ( x m l v y s t a v a . r e a d y S t a t e ! = 4 )   r e t u r n ;  
 	 i f ( x m l v y s t a v a . s t a t u s ! = 2 0 0 )  
 	 {  
 	 	 a l e r t ( " P r o b l e m   r e t r i e v i n g   X M L   d a t a " ) ;  
 	 	 r e t u r n ;  
 	 }  
  
 	 t x t = " < t a b l e > " ;  
 	 t x t = t x t   +   ' < t h > D A T U M < / t h > < t h > V Ý S T A V A < / t h > < t h > R O Z H O D Í < / t h > < t h > O C E N N Í < / t h > ' ;  
 	 x = x m l v y s t a v a . r e s p o n s e X M L . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y T a g N a m e ( " v y s t a v a " ) ;  
 	 f o r   ( i = 0 ; i < x . l e n g t h ; i + + )  
 	 {  
 	 	 t x t = t x t   +   " < t r > " ;  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " d t " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " m s " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " r z " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	             {  
 	 	 	             t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	             }  
 	 	         c a t c h   ( e r )  
 	 	             {  
 	 	 	             t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	             }  
 	         }  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " o c " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	 	 t x t = t x t   +   " < / t r > " ;  
 	 }  
 	 t x t = t x t   +   " < / t a b l e > " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t a b l e v y s t a v a " ) . i n n e r H T M L = t x t ;  
 }  
  
 f u n c t i o n   o n R e s p o n s e T i t u l ( )  
 {  
 	 i f ( x m l t i t u l . r e a d y S t a t e ! = 4 )   r e t u r n ;  
 	 i f ( x m l t i t u l . s t a t u s ! = 2 0 0 )  
 	 {  
 	 	 a l e r t ( " P r o b l e m   r e t r i e v i n g   X M L   d a t a " ) ;  
 	 	 r e t u r n ;  
 	 }  
  
 	 t x t = " < t a b l e > " ;  
 	 t x t = t x t   +   ' < t h > T I T U L < / t h > ' ;  
 	 x = x m l t i t u l . r e s p o n s e X M L . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y T a g N a m e ( " t i t u l " ) ;  
 	 f o r   ( i = 0 ; i < x . l e n g t h ; i + + )  
 	 {  
 	 	 t x t = t x t   +   " < t r > " ;  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " n a z e v " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	 	 t x t = t x t   +   " < / t r > " ;  
 	 }  
 	 t x t = t x t   +   " < / t a b l e > " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t a b l e t i t u l " ) . i n n e r H T M L = t x t ;  
 }  
  
 f u n c t i o n   o n R e s p o n s e Z k o u s k a ( )  
 {  
 	 i f ( x m l z k o u s k a . r e a d y S t a t e ! = 4 )   r e t u r n ;  
 	 i f ( x m l z k o u s k a . s t a t u s ! = 2 0 0 )  
 	 {  
 	 	 a l e r t ( " P r o b l e m   r e t r i e v i n g   X M L   d a t a " ) ;  
 	 	 r e t u r n ;  
 	 }  
  
 	 t x t = " < t a b l e > " ;  
 	 t x t = t x t   +   ' < t h > D A T U M < / t h > < t h > Z K O U `K A < / t h > < t h > M Í S T O < / t h > < t h > C E N A   A   B O D Y < / t h > ' ;  
 	 x = x m l z k o u s k a . r e s p o n s e X M L . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y T a g N a m e ( " z k o u s k a " ) ;  
 	 f o r   ( i = 0 ; i < x . l e n g t h ; i + + )  
 	 {  
 	 	 t x t = t x t   +   " < t r > " ;  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " d t " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " z k " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " m s " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	             {  
 	 	 	             t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	             }  
 	 	         c a t c h   ( e r )  
 	 	             {  
 	 	 	             t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	             }  
 	         }  
 	 	 x x = x [ i ] . g e t E l e m e n t s B y T a g N a m e ( " o c " ) ;  
 	 	 {  
 	 	 	 t r y  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d > "   +   x x [ 0 ] . f i r s t C h i l d . n o d e V a l u e   +   " < / t d > " ;  
 	 	 	 }  
 	 	 	 c a t c h   ( e r )  
 	 	 	 {  
 	 	 	 	 t x t = t x t   +   " < t d >   < / t d > " ;  
 	 	 	 }  
 	 	 }  
 	 	 t x t = t x t   +   " < / t r > " ;  
 	 }  
 	 t x t = t x t   +   " < / t a b l e > " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t a b l e z k o u s k a " ) . i n n e r H T M L = t x t ;  
 }  
 
