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