ÿþ/ / T h i s   S c r i p t   W r i t e   B y   M o h a m m a d   S h a h b a z i   -   F r o m   S h o h a d a y e   K a r g a r   H i d h   S c h o o l   I T   C e n t e r  
  
  
 f u n c t i o n   S e a r c h C o n t e n t ( ) {  
 s r c h t x t   = d o c u m e n t . f o r m s [ ' S e a r c h F o r m ' ] . e l e m e n t s [ ' S h r t x t ' ] . v a l u e ;  
  
 i f ( s r c h t x t = = ' S e a r c h   W o r d [ s ] ' )  
             a l e r t ( ' '(*/'  ('J/  ©DEG  EH1/  F81  1'  *'J~  ©FJ/! ' ) ;  
  
 e l s e  
 {  
 v a r   s e a r c h U R L = " h t t p : / / w w w . g o o g l e . c o m / s e a r c h ? q = " + s r c h t x t  
  
       i f ( d o c u m e n t . f o r m s [ ' S e a r c h F o r m ' ] . e l e m e n t s [ 2 ] . c h e c k e d )  
 	 	 {  
 	 	 	 v a r   N e w w i n ;  
 	 	 	 N e w w i n   =   w i n d o w . o p e n ( s e a r c h U R L , " S h o h a d a " , " t o o l b a r = y e s , l o c a t i o n = y e s , d i r e c t o r i e s = y e s , s t a t u s = n o ,   m e n u b a r = y e s , s c r o l l b a r s = y e s , r e s i z a b l e = y e s , c o p y h i s t o r y = y e s , w i d t h = 5 6 0 , h e i g h t = 5 9 0 " )  
 	 	 	  
 	 	 }  
       e l s e  
         i f ( d o c u m e n t . f o r m s [ ' S e a r c h F o r m ' ] . e l e m e n t s [ 3 ] . c h e c k e d )    
 	 	 {  
 	 	         	 w i n d o w . l o c a t i o n . h r e f   =   s e a r c h U R L 	  
 	 	 }    
  
        
 } / / E n d   o f   e l s e   s t a t m e n t  
  
 }  
  
 f u n c t i o n   G e t S t a t u s ( s ) {  
 s t a t u s = s ;  
 }  
  
  
 f u n c t i o n   C l e a r S t a t u s ( )  
 { s t a t u s = ' ' }  
  
  
    
 f u n c t i o n   L o a d U R L ( ) {  
  
 i f ( d o c u m e n t . f 1 . D 1 . s e l e c t e d I n d e x     = =   1 )  
    
   w i n d o w . l o c a t i o n   =   ' i n d e x _ e n . h t m '  
 }  
  
  
 f u n c t i o n   L o a d U R L _ e n ( ) {  
  
 i f ( d o c u m e n t . f 1 . D 1 . s e l e c t e d I n d e x     = =   1 )  
    
   w i n d o w . l o c a t i o n   =   ' i n d e x . h t m l '  
 }  
  
  
  
  
 
