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