ÿþ< ! - -  
 / / C O M M E N T I  
 / / - - >  
  
 / / w i n d o w . a l e r t ( ' R u _ A _ J a v a s c r i p t . j s ' ) ;  
 f u n c t i o n   c o n f e r m a ( )   {  
         r e t u r n ( w i n d o w . c o n f i r m ( ' K  459AB28B5;L=>  E>B8B5  C40;8BL  MB>B  5;5<5=B? ' ) ) ;  
 }  
  
 / /   J K   P o p   u p   i m a g e   v i e w e r   s c r i p t -   B y   J a v a S c r i p t K i t . c o m  
 / /   V i s i t   J a v a S c r i p t   K i t   ( h t t p : / / j a v a s c r i p t k i t . c o m )  
 / /   f o r   f r e e   J a v a S c r i p t   t u t o r i a l s   a n d   s c r i p t s  
 / /   T h i s   n o t i c e   m u s t   s t a y   i n t a c t   f o r   u s e  
  
 v a r   p o p b a c k g r o u n d = " # E C F 1 F 3 "   / / s p e c i f y   b a c k c o l o r   o r   b a c k g r o u n d   i m a g e   f o r   p o p   w i n d o w  
 v a r   w i n d o w t i t l e = " $>B>30;5@5O"     / / p o p   w i n d o w   t i t l e  
  
 f u n c t i o n   d e t e c t e x i s t ( o b j ) {  
 r e t u r n   ( t y p e o f   o b j   ! = " u n d e f i n e d " )  
 }  
  
 f u n c t i o n   j k p o p i m a g e ( i m g p a t h ,   p o p w i d t h ,   p o p h e i g h t ,   t e x t d e s c r i p t i o n ) {  
  
 f u n c t i o n   g e t p o s ( ) {  
 l e f t p o s = ( d e t e c t e x i s t ( w i n d o w . s c r e e n L e f t ) ) ?   s c r e e n L e f t + d o c u m e n t . b o d y . c l i e n t W i d t h / 2 - p o p w i d t h / 2   :   d e t e c t e x i s t ( w i n d o w . s c r e e n X ) ?   s c r e e n X + i n n e r W i d t h / 2 - p o p w i d t h / 2   :   0  
 t o p p o s = ( d e t e c t e x i s t ( w i n d o w . s c r e e n T o p ) ) ?   s c r e e n T o p + d o c u m e n t . b o d y . c l i e n t H e i g h t / 2 - p o p h e i g h t / 2   :   d e t e c t e x i s t ( w i n d o w . s c r e e n Y ) ?   s c r e e n Y + i n n e r H e i g h t / 2 - p o p h e i g h t / 2   :   0  
 i f   ( w i n d o w . o p e r a ) {  
 l e f t p o s - = s c r e e n L e f t  
 t o p p o s - = s c r e e n T o p  
 }  
 }  
  
 g e t p o s ( )  
 v a r   w i n a t t r i b u t e s = ' w i d t h = ' + p o p w i d t h + ' , h e i g h t = ' + p o p h e i g h t + ' , r e s i z a b l e = y e s , l e f t = ' + l e f t p o s + ' , t o p = ' + t o p p o s  
 v a r   b o d y a t t r i b u t e = ( p o p b a c k g r o u n d . i n d e x O f ( " . " ) ! = - 1 ) ?   ' b a c k g r o u n d = " ' + p o p b a c k g r o u n d + ' " '   :   ' b g c o l o r = " ' + p o p b a c k g r o u n d + ' " '  
 i f   ( t y p e o f   j k p o p w i n = = " u n d e f i n e d "   | |   j k p o p w i n . c l o s e d )  
 j k p o p w i n = w i n d o w . o p e n ( " " , " " , w i n a t t r i b u t e s )  
 e l s e {  
 / / g e t p o s ( )   / / u n c o m m e n t   t h e s e   2   l i n e s   i f   y o u   w i s h   s u b s e q u e n t   p o p u p s   t o   b e   c e n t e r e d   t o o  
 / / j k p o p w i n . m o v e T o ( l e f t p o s ,   t o p p o s )  
 j k p o p w i n . r e s i z e T o ( p o p w i d t h ,   p o p h e i g h t + 3 0 )  
 }  
 j k p o p w i n . d o c u m e n t . o p e n ( )  
 j k p o p w i n . d o c u m e n t . w r i t e ( ' < h t m l > < t i t l e > ' + w i n d o w t i t l e + ' < / t i t l e > < b o d y   ' + b o d y a t t r i b u t e + ' > < b > ' + t e x t d e s c r i p t i o n + ' < / b > < b r   / > < a   h r e f = " # "   t i t l e = " 0:@KBL"   o n C l i c k = " j a v a s c r i p t : w i n d o w . c l o s e ( ) ; " > < i m g   b o r d e r = " 0 "   s r c = " ' + i m g p a t h + ' " > < / a > < / b o d y > < / h t m l > ' )  
 j k p o p w i n . d o c u m e n t . c l o s e ( )  
 j k p o p w i n . f o c u s ( )  
 } 
