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