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