ÿþf u n c t i o n   s u b m i t f o r m ( )  
 {  
     d o c u m e n t . f r m . s u b m i t ( ) ;  
 }  
  
 / / r e f r e s h   W i n d o w  
 f u n c t i o n   R e f r e s h W i n d o w ( a d d r e s s )  
 {  
 	 w i n d o w . o p e n e r . l o c a t i o n . h r e f   =   a d d r e s s ;    
 	 w i n d o w . o p e n e r . f o c u s ( ) ;  
 	 w i n d o w . t o p . c l o s e ( ) ;  
 }  
 / / O p e n   W r i t e   R e s p o n s e   W i n d o w   I n   N e w   W i n d o w   S i z e  
 f u n c t i o n   O p e n A d d R e s p o n s e W i n d o w ( a d d r e s s , w i d t h , h e i g h t )  
 {  
 	 p o p u p W i n     =   w i n d o w . o p e n ( a d d r e s s , ' M y W i n d o w ' , ' 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 , 	 s t a t u s = n o , m e n u b a r = n o , 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 , w i d t h = ' + w i d t h + ' , h e i g h t = ' + h e i g h t + ' , t o p = 5 0 , l e f t = 2 0 0 ' ) ;  
 }  
  
  
 / /   a d d   t o   f a v o r i t e s  
 f u n c t i o n   a d d b o o k m a r k ( )  
 {  
 	 v a r   b o o k m a r k u r l = " h t t p : / / w w w . i m a g o i s r a e l . c o m " ;  
 	 v a r   b o o k m a r k t i t l e = " I m a g o   I s r a e l " ;  
  
 	 i f   ( d o c u m e n t . a l l )  
 	 w i n d o w . e x t e r n a l . A d d F a v o r i t e ( b o o k m a r k u r l , b o o k m a r k t i t l e )  
 }  
  
  
 / / P R I N T   S P E C I F I C   F R A M E   I N   T H E   W E B   P A G E  
 f u n c t i o n   p r i n t F r a m e ( )   {  
 i f   ( d o c u m e n t . a l l )   	 	 	 / /   f o r   I E  
 	 { 	    
 	 w i n d o w . m y F r a m e . f o c u s ( ) ;    
 	 w i n d o w . p r i n t ( ) ;  
 	 }    
 e l s e   w i n d o w . m y F r a m e . p r i n t ( ) ;   	 	 / /   f o r   N e t s c a p e  
 }  
  
 f u n c t i o n   T r i m ( s t r )  
 {  
         i f ( ! s t r   | |   t y p e o f   s t r   ! =   ' s t r i n g ' )  
                 r e t u r n   " " ;  
  
         r e t u r n   s t r . r e p l a c e ( / ^ [ \ s ] + / , ' ' ) . r e p l a c e ( / [ \ s ] + $ / , ' ' ) . r e p l a c e ( / [ \ s ] { 2 , } / , '   ' ) ;  
 }  
  
 f u n c t i o n   e m a i l c h e c k ( s t r )    
 {  
 	 v a r   m s g   =   " ÛêÕÑê  ÓÕÐè  ÐÜçØèÕàÙ  éÒÕÙÔ" ;  
 	 v a r   a t = " @ " ;  
 	 v a r   d o t = " . " ;  
 	 v a r   l a t = s t r . i n d e x O f ( a t ) ;  
 	 v a r   l s t r = s t r . l e n g t h ;  
 	 v a r   l d o t = s t r . i n d e x O f ( d o t ) ;  
 	 i f   ( s t r . i n d e x O f ( a t ) = = - 1 ) {  
 	       a l e r t ( m s g ) ;  
 	       r e t u r n   f a l s e ;  
 	 }  
 	 	 i f   ( s t r . i n d e x O f ( a t ) = = - 1   | |   s t r . i n d e x O f ( a t ) = = 0   | |   s t r . i n d e x O f ( a t ) = = l s t r ) {  
 	       a l e r t ( m s g ) ;  
 	       r e t u r n   f a l s e ;  
 	 }  
 	 	 i f   ( s t r . i n d e x O f ( d o t ) = = - 1   | |   s t r . i n d e x O f ( d o t ) = = 0   | |   s t r . i n d e x O f ( d o t ) = = l s t r ) {  
 	         a l e r t ( m s g ) ;  
 	         r e t u r n   f a l s e ;  
 	 }  
 	 	 i f   ( s t r . i n d e x O f ( a t , ( l a t + 1 ) ) ! = - 1 ) {  
 	         a l e r t ( m s g ) ;  
 	         r e t u r n   f a l s e ;  
 	 }  
 	 	 i f   ( s t r . s u b s t r i n g ( l a t - 1 , l a t ) = = d o t   | |   s t r . s u b s t r i n g ( l a t + 1 , l a t + 2 ) = = d o t ) {  
 	         a l e r t ( m s g )  
 	         r e t u r n   f a l s e  
 	 }  
 	 	 i f   ( s t r . i n d e x O f ( d o t , ( l a t + 2 ) ) = = - 1 ) {  
 	         a l e r t ( m s g ) ;  
 	         r e t u r n   f a l s e ;  
 	 }  
 	  
 	 i f   ( s t r . i n d e x O f ( "   " ) ! = - 1 ) {  
 	         a l e r t ( m s g ) ;  
 	         r e t u r n   f a l s e ;  
 	 }  
   	 r e t u r n   t r u e ; 	 	 	 	  
 }  
 
