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