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