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