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