ÿþ 
  
 f u n c t i o n   s h o w C o m m e n t ( i d )  
 {  
 	 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 ) . s t y l e . d i s p l a y = = " n 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 ( i d ) . s t y l e . d i s p l a y = " " ;  
 	 	 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 0 0 0 ) . s t y l e . d i s p l a y = " " ;  
 	 	 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 5 0 0 ) . s t y l e . d i s p l a y = " " ;  
 	 	 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 0 0 0 ) . s t y l e . d i s p l a y = " " ;  
 	 } 	  
 	 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 ) . s t y l e . d i s p l a y = " n 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 ( i d * 1 0 0 0 ) . s t y l e . d i s p l a y = " n 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 ( i d * 1 5 0 0 ) . s t y l e . d i s p l a y = " n 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 ( i d * 2 0 0 0 ) . s t y l e . d i s p l a y = " n o n e " ;  
  
 	 } 	  
 }  
  
  
 f u n c t i o n   s h o w C o m m e n t 5 ( i d )  
 {  
 	 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 ) . s t y l e . d i s p l a y = = " n 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 ( i d ) . s t y l e . d i s p l a y = " " ;  
 	 	 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 0 0 0 ) . s t y l e . d i s p l a y = " " ;  
 	 	 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 0 0 0 ) . s t y l e . d i s p l a y = " " ;  
  
 	 } 	  
 	 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 ) . s t y l e . d i s p l a y = " n 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 ( i d * 1 0 0 0 ) . s t y l e . d i s p l a y = " n 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 ( i d * 2 0 0 0 ) . s t y l e . d i s p l a y = " n o n e " ;  
  
 	 } 	  
 }  
  
  
 f u n c t i o n   s h o w C o m m e n t 2 ( i d )  
 {  
 	 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 ) . s t y l e . d i s p l a y = = " n 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 ( i d ) . s t y l e . d i s p l a y = " " ;  
 	 	 } 	  
 	 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 ) . s t y l e . d i s p l a y = " n o n e " ;  
 	  
  
 	 } 	  
 }  
  
  
 / /   C h a n g e s   t h e   c u r s o r   t o   a n   h o u r g l a s s  
 f u n c t i o n   c u r s o r _ w a i t ( )   {  
 d o c u m e n t . b o d y . s t y l e . c u r s o r   =   ' p o i n t e r ' ;  
 }  
  
 / /   R e t u r n s   t h e   c u r s o r   t o   t h e   d e f a u l t   p o i n t e r  
 f u n c t i o n   c u r s o r _ c l e a r ( )   {  
 d o c u m e n t . b o d y . s t y l e . c u r s o r   =   ' d e f a u l t ' ;  
 }  
  
 / /   D o e s   s o m e   a r d u o u s   c a l c u l a t i o n  
 f u n c t i o n   c a l c ( )   {  
 v a r   d u m m y   =   0 ;  
  
 f o r   ( v a r   i = 0 ;   i < 1 0 0 0 0 0 0 ; i + + )   {  
 f o r   ( v a r   z = 0 ;   i < 1 0 0 0 0 0 0 ; i + + )   {  
 d u m m y   =   d u m m y   +   z   +   i ;  
 }  
 }  
  
 c u r s o r _ c l e a r ( ) ;  
 }  
  
  
 f u n c t i o n   c l e a r T x t F i e l d ( f i e l d N a m e ) {  
  
   m y f i e l d   =   d o c u m e n t . g e t E l e m e n t B y I d ( f i e l d N a m e )     ;  
    
  
 i f   ( m y f i e l d . 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 i e l d N a m e + ( ' 1 ' ) ) . v a l u e )  
  
     {  
     m y f i e l d . v a l u e   =   " "   ;  
      
     }  
    
 }  
  
 f u n c t i o n   u n c l e a r T x t F i e l d ( f i e l d N a m e ) {  
  
   m y f i e l d   =   d o c u m e n t . g e t E l e m e n t B y I d ( f i e l d N a m e )     ;  
  
     / / m y f i e l d   =   d o c u m e n t . g e t E l e m e n t s B y N a m e ( f i e l d N a m e )  
    
 i f   ( m y f i e l d . v a l u e   = =   " " )  
  
     {  
     m y f i e l d . 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 i e l d N a m e + ( ' 1 ' ) ) . v a l u e   ;  
      
     }  
  
  
 }  
  
  
  
 f u n c t i o n   c l e a r T x t F i e l d 3 ( f i e l d N a m e ) {  
  
   m y f i e l d   =   d o c u m e n t . g e t E l e m e n t B y I d ( f i e l d N a m e )     ;  
    
  
     m y f i e l d . v a l u e   =   " "   ;  
      
  
    
 }  
  
  
  
 f u n c t i o n   c h e c k E m a i l A d d r e s s ( f i e l d )  
 {  
 v a r   g o o d E m a i l   =   f i e l d . v a l u e . m a t c h ( / \ b ( ^ ( \ S + @ ) . + ( ( \ . c o m ) | ( \ . n e t ) | ( \ . e d u ) | ( \ . m i l ) | ( \ . g o v ) | ( \ . o r g ) | ( \ . . { 2 , 2 } ) ) $ ) \ b / g i ) ;  
 i f   ( g o o d E m a i l )  
 	 {  
 	 	 r e t u r n   t r u e ;  
 	 }  
 e l s e  
 	 {  
 	 	 i f   ( f i e l d . v a l u e = = " "   | |   f i e l d . v a l u e = = "   " )  
 	 	 	 {  
 	 	 	 	 a l e r t   ( '     éÓÔ  ÜÐ  êçÙß!   àÐ  Üêçß  ' ) ;  
 	 	 	 	 f i e l d . f o c u s ( ) ;  
 	 	 	 	 r e t u r n   f a l s e ;  
 	 	 	 }  
 	 	 e l s e  
 	 	 	 {  
 	 	 	 	 a l e r t   ( ' ÛêÕÑê  ÓÕÐè  éÒÕÙÔ' ) ;  
 	 	 	 	 d o c u m e n t . s e n d . e m a i l . s t y l e . b a c k g r o u n d   =   " r e d "   ;  
  
 	 	 	 	 f i e l d . f o c u s ( ) ;  
 	 	 	 	 f i e l d . s e l e c t ( ) ;  
 	 	 	 	 r e t u r n   f a l s e ;  
 	 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   v a l i d M a i l ( s t r E m a i l )   / / i f   v a l i d   m a i l   -   r e t u r n   t r u e  
 {  
 	 v a r   r ,   r e ;  
 	 v a r   e m a i l   =   n e w   S t r i n g ( s t r E m a i l ) ;  
 	 r e   =   / \ w + ( [ - + . ] \ w + ) * @ \ w + ( [ - . ] \ w + ) * \ . \ w + ( [ - . ] \ w + ) * / i g ;  
 	 i f ( e m a i l . s e a r c h ( r e ) = = 0 )    
 	 	 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 F o r m ( )  
 {  
  
  
  
 i f ( d o c u m e n t . s e n d . n o s e . v a l u e   = =   " "   | |   d o c u m e n t . s e n d . n o s e . v a l u e   = =   " àÕéÐ" )  
 	 {  
 	 	 a l e r t ( " àÐ  ÜÞÜÐ  Ðê  éÓÔ  ÔàÕéÐ! " ) ;  
 	 	 d o c u m e n t . s e n d . n o s e . s t y l e . b a c k g r o u n d   =   " r e d "   ;  
  
 	 	 d o c u m e n t . s e n d . n o s e . f o c u s ( ) ;  
  
 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
 i f ( d o c u m e n t . s e n d . n a m e . v a l u e   = =   " "   | |   d o c u m e n t . s e n d . n a m e . v a l u e   = =   " éÝ  ÔéÕÐÜ- ê" )  
 	 {  
 	 	 a l e r t ( " ×ÕÑÔ  ÜèéÕÝ  éÝ" ) ;  
 	 	 d o c u m e n t . s e n d . n a m e . s t y l e . b a c k g r o u n d   =   " r e d "   ;  
  
 	 	 d o c u m e n t . s e n d . n a m e . f o c u s ( ) ;  
  
 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 i f ( ! c h e c k E m a i l A d d r e s s ( d o c u m e n t . s e n d . e m a i l ) ) { r e t u r n   f a l s e ; }  
  
 i f ( ! v a l i d M a i l ( d o c u m e n t . s e n d . e m a i l . v a l u e ) )  
 	 {  
 	 	 a l e r t ( " ÛêÕÑê  ÔÞÙÙÜ  ÜÐ  êçÙàÔ" ) ;  
 	 	 d o c u m e n t . s e n d . e m a i l . f o c u s ( ) ;  
 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
 	 d o c u m e n t . s e n d . s u b m i t ( ) ;  
 	 r e t u r n   t r u e ;  
 }  
  
 f u n c t i o n   d i v c o l o r ( x ) {  
 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " # C 0 C 0 C 0 " ;  
 }  
 f u n c t i o n   r e s t a r t c o l o r ( x ) {  
 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " " ;  
 }  
  
  
 f u n c t i o n   b o r d e r c o l o r ( x ) {  
  
 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b o r d e r = " 1 p x   s o l i d   r e d " ;  
 / /   d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b o r d e r T o p = " s o l i d   r e d " ;    
 }  
  
 f u n c t i o n   r e s t a r t b o r d e r ( x ) {  
 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b o r d e r = " 1 p x   s o l i d   w h i t e " ;  
 }  
  
  
  
 f u n c t i o n   l i m i t T e x t ( l i m i t F i e l d ,   l i m i t C o u n t ,   l i m i t N u m )   {  
 	 i f   ( l i m i t F i e l d . v a l u e . l e n g t h   >   l i m i t N u m )   {  
 	 	 l i m i t F i e l d . v a l u e   =   l i m i t F i e l d . v a l u e . s u b s t r i n g ( 0 ,   l i m i t N u m ) ;  
 	 }   e l s e   {  
 	 	 l i m i t C o u n t . v a l u e   =   l i m i t N u m   -   l i m i t F i e l d . v a l u e . l e n g t h ;  
 	 }  
 }  
  
  
  
 	 	 	 f u n c t i o n   d i v c o l o r 2 ( x ) {  
 	 	 	 / / 	 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " # 0 0 6 6 F F " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . f o n t S i z e   =   " 1 8 p x " ;  
  
  
 	 	 	 }  
 	 	 	 f u n c t i o n   r e s t a r t c o l o r 2 ( x ) {  
 	 	 	 / / 	 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " " ;  
 	 	 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . f o n t S i z e   =   " " ;  
 	 	 	 }  
 	 	 	  
 	 	 	  
 	 	 	  
 f u n c t i o n   c h a n g e c o l o r ( x ) {  
 m y 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 ( x ) ;  
  
 m y O b j . s t y l e . c o l o r   =   " # 0 0 0 0 8 0 " ;  
 }  
  
  
 f u n c t i o n   c h a n g e c o l o r 4 ( x ) {  
 m y 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 ( x ) ;  
  
 m y O b j . s t y l e . c o l o r   =   " r e d " ;  
 }  
  
 	 	 	  
 f u n c t i o n   c h a n g e c o l o r 5 ( x ) {  
 m y 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 ( x ) ;  
  
 m y O b j . s t y l e . c o l o r   =   " w h i t e " ;  
 }  
  
 f u n c t i o n   r e s e t c o l o r ( x ) {  
 m y 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 ( x ) ;  
  
 m y O b j . s t y l e . c o l o r   =   " " ;  
  
 }  
 	 	 	  
 	 	 	  
  
  
 f u n c t i o n   e n l a r g 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 d ) . s t y l e . p i x e l W i d t h = 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 ( i d ) . s t y l e . p i x e l H e i g h t = 8 0  
  
  
 }  
  
 f u n c t i o n   r e v e r t b a c k ( 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 ) . s t y l e . p i x e l W i d t h = 1 0 3  
 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 . p i x e l H e i g h t = 6 4  
 }  
  
  
 f u n c t i o n   P r i n t C o n t e n t ( i d m e )    
       {                 v a r   D o c u m e n t C o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( i d m e ) ;                 v a r   W i n d o w O b j e c t   =   w i n d o w . o p e n ( ' ' ,   " T r a c k H i s t o r y D a t a " ,                                                               " w i d t h = 7 4 0 , h e i g h t = 3 2 5 , t o p = 2 0 0 , l e f t = 2 5 0 , t o o l b a r s = n o , s c r o l l b a r s = y e s , s t a t u s = n o , r e s i z a b l e = n o " ) ;                 W i n d o w O b j e c t . d o c u m e n t . w r i t e l n ( D o c u m e n t C o n t a i n e r . i n n e r H T M L ) ;                 W i n d o w O b j e c t . d o c u m e n t . c l o s e ( ) ;                 W i n d o w O b j e c t . f o c u s ( ) ;                 W i n d o w O b j e c t . p r i n t ( ) ;                 W i n d o w O b j e c t . c l o s e ( ) ;         }  
  
  
 f u n c t i o n   v a l i d a t e F o r m c a l ( )  
 {  
  
  
  
  
 i f ( d o c u m e n t . s e n d . r a b i . v a l u e   = =   " "   | |   d o c u m e n t . s e n d . r a b i . v a l u e   = =   " ÔèÑ  " )  
 	 {  
 	 	 a l e r t ( " ×ÕÑÔ  ÜèéÕÝ  Ðê  éÝ  ÔèÑ" ) ;  
 	 	 d o c u m e n t . s e n d . r a b i . s t y l e . b a c k g r o u n d   =   " r e d "   ;  
  
 	 	 d o c u m e n t . s e n d . r a b i . f o c u s ( ) ;  
  
 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
  
  
 i f ( d o c u m e n t . s e n d . c h e c k m e . v a l u e   = =   " "   | |   d o c u m e n t . s e n d . c h e c k m e . v a l u e   = =   " Ûß" )  
 	 {  
 	 	 a l e r t ( " êéÕÑÔ  ÜÐ  àÛÕàÔ  ÑéÐÜê  ÐÑØ×Ô! " ) ;  
 	 	 d o c u m e n t . s e n d . r a b i . s t y l e . b a c k g r o u n d   =   " r e d "   ;  
  
 	 	 d o c u m e n t . s e n d . c h e c k m e . f o c u s ( ) ;  
  
 	 	  
 	 	 r e t u r n   f a l s e ;  
 	 }  
  
  
 i f ( d o c u m e n t . s e n d . c h e c k m e . v a l u e   = =   " ÜÐ"   | |   d o c u m e n t . s e n d . c h e c k m e . v a l u e   = =   " ÐáÕè" )  
 {  
 	 d o c u m e n t . s e n d . s u b m i t ( ) ;  
 	 r e t u r n   t r u e ;  
 } 	  
 }  
  
  
 f u n c t i o n   b o l t 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 d ) . s t y l e . f o n t W e i g h t = " b o l d " ;  
  
  
 }  
  
 f u n c t i o n   b o l t m e o f f ( 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 ) . s t y l e . f o n t W e i g h t = " " ;  
  
  
 }  
  
  
  
  
  
 / /     ä ö â ú   ä ú î å ð å ú     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 t h i s . i m a g e P r e v i e w   =   f u n c t i o n ( ) { 	  
 	 / *   C O N F I G   * /  
 	 	  
 	 	 x O f f s e t   =   1 6 0 ;  
 	 	 y O f f s e t   =   4 0 ;  
 	 	  
 	 	 / /   t h e s e   2   v a r i a b l e   d e t e r m i n e   p o p u p ' s   d i s t a n c e   f r o m   t h e   c u r s o r  
 	 	 / /   y o u   m i g h t   w a n t   t o   a d j u s t   t o   g e t   t h e   r i g h t   r e s u l t  
 	 	  
 	 / *   E N D   C O N F I G   * /  
 	 $ ( " a . p r e v i e w " ) . h o v e r ( f u n c t i o n ( e ) {  
 	 	  
 	 	 t h i s . t i t l e   =   " " ; 	  
 	 	 v a r   c   =   ( t h i s . t   ! =   " " )   ?   " < b r / > "   +   t h i s . t     :   " " ;  
 	 	 $ ( " b o d y " ) . a p p e n d ( " < p   a l i g n = r i g h t   d i r = r t l   i d = ' p r e v i e w ' > < i m g   w i d t h = 1 4 0   h e i g h t = 1 2 0   s r c = ' " +   t h i s . n a m e   + " '     / > " +   " < / p > " ) ; 	 	 	 	 	 	 	 	    
 	 	 $ ( " # p r e v i e w " )  
 	 	 	 . c s s ( " t o p " , ( e . p a g e Y   -   x O f f s e t )   +   " p x " )  
 	 	 	 . c s s ( " l e f t " , ( e . p a g e X   +   y O f f s e t )   +   " p x " )  
 	 	 	 . f a d e I n ( " n o r m a l " ) ; 	 	 	 	 	 	  
         } ,  
 	 f u n c t i o n ( ) {  
 	 	 t h i s . t i t l e   =   t h i s . t ; 	  
 	 	 $ ( " # p r e v i e w " ) . r e m o v e ( ) ;  
         } ) ; 	  
 	 $ ( " a . p r e v i e w " ) . m o u s e m o v e ( f u n c t i o n ( e ) {  
 	 	 $ ( " # p r e v i e w " )  
 	 	 	 . c s s ( " t o p " , ( e . p a g e Y   -   x O f f s e t )   +   " p x " )  
 	 	 	 . c s s ( " l e f t " , ( e . p a g e X   +   y O f f s e t )   +   " p x " ) ;  
 	 } ) ; 	 	 	  
 } ;  
  
  
 f u n c t i o n   l o a d a j a x ( )  
 {  
 l o a d X M L D o c ( ' u s e r s ' ,   ' ' ,   ' ' ) ;  
 }  
  
  
  
  
 f u n c t i o n   l o a d C o u n t e r   ( )   {  
  
 l o a d a j a x ( ) ;  
 s e t T i m e o u t ( l o a d C o u n t e r ,   5 0 0 0 ) ;  
  
 }  
  
  
  
  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
  
  
 f u n c t i o n   d i v c o l o r _ t r i v i a ( x ) {  
 d d = d o c u m e n t . g e t E l e m e n t B y I d ( ' i s c l i c k ' ) . v a l u e  
  
 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   = =   " # e 0 0 0 0 0 "   | |   x   = =   d d   )  
 { }  
 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 ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " # f 0 0 0 0 0 " ;  
 }  
 }  
 f u n c t i o n   r e s t a r t c o l o r _ t r i v i a ( x ) {  
  
 d d = d o c u m e n t . g e t E l e m e n t B y I d ( ' i s c l i c k ' ) . v a l u e  
  
  
 i f   ( d o c u m e n t . g e t E l e m e n t B y I d ( x ) . s t y l e . b a c k g r o u n d C o l o r   = =   " # e 0 0 0 0 0 "   | |   x   = =   d d   )  
 { }  
 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 ( x ) . s t y l e . b a c k g r o u n d C o l o r   =   " 0 0 0 0 0 0 " ;  
 }  
  
  
 }  
  
  
  
  
  
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
 *   J a v a S c r i p t   S o u n d   e f f e c t -   ©   D y n a m i c   D r i v e   D H T M L   c o d e   l i b r a r y   ( w w w . d y n a m i c d r i v e . c o m )  
 *   V i s i t   h t t p : / / w w w . d y n a m i c D r i v e . c o m   f o r   h u n d r e d s   o f   D H T M L   s c r i p t s  
 *   T h i s   n o t i c e   m u s t   s t a y   i n t a c t   f o r   l e g a l   u s e  
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /  
  
 f u n c t i o n   p l a y s o u n d r o t e t ( m a z e )  
 {  
 v a r   t h e I m a g e s   =   n e w   A r r a y ( )   / /   d o   n o t   c h a n g e   t h i s  
  
 i f   ( m a z e   = =   ' y e s ' )  
 {  
 f o r   ( k   =   0 ;   k   <   1 3 ;   k + + )  
 {  
 t h e I m a g e s [ k ]   =   ' / m i d i / y e s / ' + k + ' . w a v '  
 }  
 }  
 i f   ( m a z e   = =   ' n o ' )  
 {  
 f o r   ( k   =   0 ;   k   <   1 8 ;   k + + )  
 {  
 t h e I m a g e s [ k ]   =   ' / m i d i / n o / ' + k + ' . w a v '  
 }  
 }  
 v a r   j   =   0  
 v a r   p   =   t h e I m a g e s . l e n g t h ;  
 v a r   p r e B u f f e r   =   n e w   A r r a y ( )  
 f o r   ( i   =   0 ;   i   <   p ;   i + + ) {  
       p r e B u f f e r [ i ]   =   n e w   I m a g e ( )  
       p r e B u f f e r [ i ] . s r c   =   t h e I m a g e s [ i ]  
 }  
 v a r   w h i c h I m a g e   =   M a t h . r o u n d ( M a t h . r a n d o m ( ) * ( p - 1 ) ) ;  
  
 d o c u m e n t . g e t E l e m e n t B y I d ( " s o u n d e f f e c t " ) . s r c = " "   / / r e s e t   f i r s t   i n   c a s e   o f   p r o b l e m s  
 d o c u m e n t . g e t E l e m e n t B y I d ( " s o u n d e f f e c t " ) . s r c = t h e I m a g e s [ w h i c h I m a g e ] ;  
  
 }  
 / /     áÙÕÝ  ÔèÕØæÙÔ 
  
  
 f u n c t i o n   p l a y s o u n d ( s o u n d f i l e ) {  
 i f   ( d o c u m e n t . a l l   & &   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 . g e t E l e m e n t B y I d ( " s o u n d e f f e c t " ) . s r c = " "   / / r e s e t   f i r s t   i n   c a s e   o f   p r o b l e m s  
 d o c u m e n t . g e t E l e m e n t B y I d ( " s o u n d e f f e c t " ) . s r c = s o u n d f i l e  
 }  
 }  
  
 f u n c t i o n   p l a y r e k a ( s o u n d f i l e ) {  
 i f   ( d o c u m e n t . a l l   & &   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 . g e t E l e m e n t B y I d ( " s o u n d r e k a " ) . s r c = s o u n d f i l e  
 }  
 }  
  
 f u n c t i o n   s t o p p l a y r e k a ( ) {  
 i f   ( d o c u m e n t . a l l   & &   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 . g e t E l e m e n t B y I d ( " s o u n d r e k a " ) . s r c = " "   / / r e s e t   f i r s t   i n   c a s e   o f   p r o b l e m s  
 / / w i n d o w . c l e a r I n t e r v a l ( i n t e r v a l I D ) ;  
 }  
 }  
  
 f u n c t i o n   b i n d s o u n d ( t a g ,   s o u n d f i l e ,   m a s t e r E l e m e n t ) {  
 i f   ( ! w i n d o w . e v e n t )   r e t u r n  
 v a r   s o u r c e = e v e n t . s r c E l e m e n t  
 w h i l e   ( s o u r c e ! = m a s t e r E l e m e n t   & &   s o u r c e . t a g N a m e ! = " H T M L " ) {  
 i f   ( s o u r c e . t a g N a m e = = t a g . t o U p p e r C a s e ( ) ) {  
 p l a y s o u n d ( s o u n d f i l e )  
 b r e a k  
 }  
 s o u r c e = s o u r c e . p a r e n t E l e m e n t  
 }  
 }  
  
   f u n c t i o n   s h o w C o m m e n t 2 ( i d )  
 {  
 	 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 ) . s t y l e . d i s p l a y = = " n 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 ( i d ) . s t y l e . d i s p l a y = " " ;  
  
 	 } 	  
 	 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 ) . s t y l e . d i s p l a y = " n o n e " ;  
 	  
  
 	 } 	  
 }  
  
  
 f u n c t i o n   d e c o d e 2 ( t e x t ) {  
  
 v a r   a   =   n e w   A r r a y ( " à " ,   " á " ,   " â " ,   " ã " ,   " ä " ,   " å " ,   " æ " ,   " ç " ,   " è " ,   " é " ,   " ë " ,   " ê " ,   " ì " ,   " î " ,   " í " ,   " ð " ,   " ï " ,   " ñ " ,   " ò " ,   " ô " ,   " ó " ,   " ö " ,   " õ " ,   " ÷ " ,   " ø " ,   " ù " ,   " ú " ) ;  
 v a r   b   =   n e w   A r r a y ( " Ð" ,   " Ñ" ,   " Ò" ,   " Ó" ,   " Ô" ,   " Õ" ,   " Ö" ,   " ×" ,   " Ø" ,   " Ù" ,   " Û" ,   " Ú" ,   " Ü" ,   " Þ" ,   " Ý" ,   " à" ,   " ß" ,   " á" ,   " â" ,   " ä" ,   " ã" ,   " æ" ,   " å" ,   " ç" ,   " è" ,   " é" ,   " ê" ) ;  
 v a r   d c o d e d   =   ' ' ;  
 v a r   c o d e d   =   ' ' ;  
 d c o d e d   = ' ' ;  
 v a r   n o n ;  
 v a r   s i n g ;  
 f o r ( i = 0 ; i < t e x t . l e n g t h ; i + + ) {  
 	 n o n   =   t e x t . c h a r A t ( i ) ;  
 	 f o r ( x = 0 ; x < a . l e n g t h ; x + + ) {  
 	 i f ( a [ x ]   = =   n o n ) {  
 	 d c o d e d   + =   b [ x ] ;  
 	 s i n g   =   1 ;  
 	 b r e a k ;  
 	 }  
 	 i f ( x = = ( a . l e n g t h - 1 )   & &   s i n g   ! =   1 ) {  
 	 d c o d e d   + =   n o n ;  
 	 b r e a k ;  
 	 }  
 	 }  
 	 s i n g = ' ' ;  
 }  
 r e t u r n   d c o d e d ;  
 }  
  
  
  
  
 f u n c t i o n   l o a d X M L D o c ( w h o m e ,   i d 2 ,   i d m e 2 )  
 {  
  
 i f   ( w h o m e   = =   " u s e r s " )  
 {  
 $ . a j a x ( {  
     u r l :   ' u s e r s _ o n l i n e . a s p ' ,  
      
      
     s u c c e s s :   f u n c t i o n ( d a t a )   {  
      
     k i s m e   =   u n e s c a p e ( d a t a ) ;  
      
     k i s m e   =   d e c o d e 2 ( k i s m e ) ;  
      
      
         $ ( ' # u s e r s _ o n l i n e ' ) . h t m l ( k i s m e ) ;  
  
     }  
  
 } ) ;  
  
     }  
  
 }  
  
  
  
  
  
 f u n c t i o n   h i d u s h _ t r i v i a ( )  
 {  
 v a r   a n s w e r   =   c o n f i r m   ( ' ÔÐÝ  ÐêÔ  ÑØÕ×? ' )  
  
 i f   ( a n s w e r ) {  
  
 $ . g e t ( " a j a x _ f u n c t i o n s . a s p " ,   {   a c t i o n 3 :   " h i d u s h _ n i k u d "   }   ) ;  
  
  
 }  
 e l s e {  
  
  
 r e t u r n   f a l s e ;  
  
 }  
  
  
  
 }  
  
  
  
 f u n c t i o n   c h e c k l o g e d ( )  
 {  
 $ . g e t ( " t r i v i a _ o n l i n e . a s p " ,   {   c h e c k _ l o g e d :   " s s s s "   }   ) ;  
  
 }  
  
 f u n c t i o n   s e n d _ i t ( i d m e 2 ,   i d 2 )  
 / /   # # # # # # # # # # # # # # # # # # # #  
  
 {  
  
   $ . a j a x ( {  
   u r l :   ' t r i v i a _ o n l i n e . a s p ? u s e r _ m e = ' + i d m e 2 + ' & u s e r _ v s = ' + i d 2 ,  
    
   s u c c e s s :   f u n c t i o n ( d a t a )   {  
      
   k i s m e   =   u n e s c a p e ( d a t a ) ;  
      
   k i s m e   =   d e c o d e 2 ( k i s m e ) ;  
      
      
   $ ( ' # c h e c k _ s e n d ' ) . h t m l ( k i s m e ) ;  
  
  
   }  
   } ) ;  
  
   }  
  
 / /   # # # # # # # # # # # # # # # # # # # #  
  
  
  
 f u n c t i o n   c o n f i r m _ s e n d ( i d ,   n a m e ,   i d m e )  
 {  
  
 v a r   a n s w e r   =   c o n f i r m   ( ' ? ' + ' ÔÐÝ  ÐêÔ  ÞâÕàÙÙß  ÜéÜÕ×  ÑçéÔ  ÜÞé×ç  ØèÙÕÕÙÔ  âÝ  ' + n a m e )  
 i f   ( a n s w e r )  
  
 s e n d _ i t ( i d m e ,   i d ) ;  
  
 e l s e  
  
 r e t u r n   f a l s e ;  
 }  
  
  
 / /     ÔæÒ  Ðê  ÛÜ  ÔÞéêÞéÙÝ  ÑÒÜÐØÑÕç 
 f u n c t i o n   l o a d X M L D o c t r i v ( w h o m e ,   i d 2 ,   i d m e 2 )    
 {  
  
 i f   ( w h o m e   = =   " u s e r s " )  
 {  
 $ . a j a x ( {  
     u r l :   ' . . / a j a x _ f u n c t i o n s . a s p ? a c t i o n 3 = l i s t _ o n l i n e & h e d e r = < % = h e d e r n % > ' ,  
     s u c c e s s :   f u n c t i o n ( d a t a )   {  
     k i s m e   =   u n e s c a p e ( d a t a ) ;  
     k i s m e   =   d e c o d e 2 ( k i s m e ) ;  
   / / $ ( ' . s u b f ' ) . h t m l ( k i s m e ) ;  
   $ ( ' . s u b p a n e l 2 ' ) . h t m l ( k i s m e ) ;  
    
     }  
 } ) ;  
     }  
 }  
  
  
  
 
