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