ÿþ/ * - - - - - - - - - - - - - - - - - P o l e c e n i a   w y k o n y w a n e   p o d c z a s   Ba d o w a n i a   s t r o n y - - - - - - - - - - - - - - - - - - - - - - - - - * /  
  
 / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * /  
 f u n c t i o n   w y s l i j _ m a i l ( )  
 {  
 p o l e _ m a i l   =   d o c u m e n t . m a i l . m a i l _ u s e r . v a l u e  
 m a i l _ s t r   =   n e w   S t r i n g ( p o l e _ m a i l ) ;  
 s z u k a j 1   =   m a i l _ s t r . s e a r c h ( '   ' ) ;  
  
 p o l e _ t y t u l   =   d o c u m e n t . m a i l . s u b j e c t . v a l u e  
 t y t u l _ s t r   =   n e w   S t r i n g ( p o l e _ t y t u l ) ;  
 s z u k a j 2   =   t y t u l _ s t r . s e a r c h ( '     ' ) ;  
  
 p o l e _ w i a d   =   d o c u m e n t . m a i l . w i a d o m o s c . v a l u e  
 w i a d _ s t r   =   n e w   S t r i n g ( p o l e _ w i a d ) ;  
 s z u k a j 3   =   w i a d _ s t r . s e a r c h ( '       ' ) ;  
  
 i f   ( s z u k a j 1   ! =   - 1   | |   s z u k a j 2   ! =   - 1   | |   s z u k a j 3   ! =   - 1 )  
 	 {  
 	 i f   ( s z u k a j 1   ! =   - 1 )  
 	 	 {  
 	 	 d o c u m e n t . m a i l . m a i l _ u s e r . v a l u e   =   " " ;  
 	 	 w i n d o w . a l e r t ( " A d r e s   e m a i l   z a w i e r a   z b y t   w i e l e   s p a c j i ! " ) ;  
 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " W y [l i j \ "   d i s a b l e d > " ;  
 	 	 z a t w i e r d z . i n n e r H T M L   =   t x t ;  
 	 	 d o c u m e n t . m a i l . m a i l _ u s e r . f o c u s ( ) ;  
 	 	 }  
 	 e l s e   i f   ( s z u k a j 2   ! =   - 1 )  
 	 	 {  
 	 	 d o c u m e n t . m a i l . s u b j e c t . v a l u e   =   " " ;  
 	 	 w i n d o w . a l e r t ( " T y t u B  z a w i e r a   z b y t   w i e l e   s p a c j i ! " ) ;  
 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " W y [l i j \ "   d i s a b l e d > " ;  
 	 	 z a t w i e r d z . i n n e r H T M L   =   t x t ;  
 	 	 d o c u m e n t . m a i l . s u b j e c t . f o c u s ( ) ;  
 	 	 }  
 	 e l s e   i f   ( s z u k a j 3   ! =   - 1 )  
 	 	 {  
 	 	 d o c u m e n t . m a i l . w i a d o m o s c . v a l u e   =   " " ;  
 	 	 w i n d o w . a l e r t ( " W i a d o m o [  z a w i e r a   z b y t   w i e l e   s p a c j i ! " ) ;  
 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " W y [l i j \ "   d i s a b l e d > " ;  
 	 	 z a t w i e r d z . i n n e r H T M L   =   t x t ;  
 	 	 d o c u m e n t . m a i l . w i a d o m o s c . f o c u s ( ) ;  
 	 	 }  
 	 }  
 e l s e  
 	 {  
 	 	 i f   ( p o l e _ m a i l   = =   " "   | |   p o l e _ t y t u l   = =   " "   | |   p o l e _ w i a d   = =   " " ) 	 / / 2  
 	 	 	 {  
 	 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " W y [l i j \ "   d i s a b l e d > " ;  
 	 	 	 z a t w i e r d z . i n n e r H T M L   =   t x t ;  
 	 	 	 }  
 	 	 e l s e  
 	 	 	 {  
 	 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " W y [l i j \ " > " ;  
 	 	 	 z a t w i e r d z . i n n e r H T M L   =   t x t ;  
 	 	 	 }  
 	 }  
 }  
 / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * /  
 f u n c t i o n   s p r _ m a i l ( )  
 {  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 / /   S p r a w d z e n i e   p o p r a w n o [i   a d r e s u   e - m a i l  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
  
 a d r e s   =   n e w   S t r i n g ( d o c u m e n t . m a i l . m a i l _ u s e r . v a l u e ) ;  
  
 m a l p a   =   a d r e s . i n d e x O f ( ' @ ' ,   a d r e s ) ;  
  
 i f   ( m a l p a   = =   - 1 )  
 	 {  
 	 d o c u m e n t . m a i l . m a i l _ u s e r . f o c u s ( ) ;  
 	 d o c u m e n t . m a i l . m a i l _ u s e r . v a l u e   =   " " ;  
 	 a l e r t ( " N i e p r a w i d Bo w y   a d r e s   e - m a i l   ! " )  
 	 r e t u r n   f a l s e ;  
 	 }  
 e l s e  
 	 {  
 	 p o d z i e l   =   a d r e s . s p l i t ( ' @ ' ) ;  
  
 	 l o g i n   =   n e w   S t r i n g ( p o d z i e l [ 0 ] ) ;  
 	 s e r w e r   =   n e w   S t r i n g ( p o d z i e l [ 1 ] ) ;  
  
 	 d l u g o s c _ l o g i n   =   l o g i n . l e n g t h ;  
 	 d l u g o s c _ s e r w e r   =   s e r w e r . l e n g t h ;  
  
 	 i f   ( d l u g o s c _ l o g i n   = =   0   | |   d l u g o s c _ s e r w e r   = =   0 )  
 	 	 {  
 	 	 d o c u m e n t . m a i l . m a i l _ u s e r . f o c u s ( ) ;  
 	 	 d o c u m e n t . m a i l . m a i l _ u s e r . v a l u e   =   " " ;  
 	 	 a l e r t ( " N i e p r a w i d Bo w y   a d r e s   e - m a i l   ! " )  
 	 	 r e t u r n   f a l s e ; 	  
 	 	 }  
 	 }  
 }  
 / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * /  
 f u n c t i o n   w y s z u k a j ( )  
 {  
 s l   =   d o c u m e n t . s z u k . s l o w o . v a l u e  
 s l o w o _ s t r   =   n e w   S t r i n g ( s l ) ;  
 s z u k a j   =   s l o w o _ s t r . s e a r c h ( '     ' ) ;  
  
 i f   ( s z u k a j   ! =   - 1 )  
 	 {  
 	 d o c u m e n t . s z u k . s l o w o . v a l u e   =   " " ;  
 	 w i n d o w . a l e r t ( " S Bo w o   z a w i e r a   z b y t   w i e l e   s p a c j i ! " ) ;  
 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " S z u k a j \ "   d i s a b l e d > " ;  
 	 z n a j d z . i n n e r H T M L   =   t x t ;  
 	 d o c u m e n t . s z u k . s l o w o . f o c u s ( ) ;  
 	 }  
 e l s e  
 	 {  
 	 i f   ( s l   = =   " " )  
 	 	 {  
 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " S z u k a j \ "   d i s a b l e d > " ;  
 	 	 z n a j d z . i n n e r H T M L   =   t x t ;  
 	 	 }  
 	 e l s e  
 	 	 {  
 	 	 t x t   =   " < i n p u t   t y p e = \ " s u b m i t \ "   v a l u e = \ " S z u k a j \ " > " ;  
 	 	 z n a j d z . i n n e r H T M L   =   t x t ;  
 	 	 }  
 	 }  
 }  
 / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * /  
  
 D a y N a m e   =   n e w   A r r a y ( 7 )  
 D a y N a m e [ 0 ]   =   " n i e d z i e l a   "  
 D a y N a m e [ 1 ]   =   " p o n i e d z i a Be k   "  
 D a y N a m e [ 2 ]   =   " w t o r e k   "  
 D a y N a m e [ 3 ]   =   " [r o d a   "  
 D a y N a m e [ 4 ]   =   " c z w a r t e k   "  
 D a y N a m e [ 5 ]   =   " p i t e k   "  
 D a y N a m e [ 6 ]   =   " s o b o t a   "  
  
 M o n t h N a m e   =   n e w   A r r a y ( 1 2 )  
 M o n t h N a m e [ 0 ]   =   " s t y c z n i a   "  
 M o n t h N a m e [ 1 ]   =   " l u t e g o   "  
 M o n t h N a m e [ 2 ]   =   " m a r c a   "  
 M o n t h N a m e [ 3 ]   =   " k w i e t n i a   "  
 M o n t h N a m e [ 4 ]   =   " m a j a   "  
 M o n t h N a m e [ 5 ]   =   " c z e r w c a   "  
 M o n t h N a m e [ 6 ]   =   " l i p c a   "  
 M o n t h N a m e [ 7 ]   =   " s i e r p n i a   "  
 M o n t h N a m e [ 8 ]   =   " w r z e [n i a   "  
 M o n t h N a m e [ 9 ]   =   " p a zd z i e r n i k a   "  
 M o n t h N a m e [ 1 0 ]   =   " l i s t o p a d a   "  
 M o n t h N a m e [ 1 1 ]   =   " g r u d n i a   "  
  
 f u n c t i o n   g e t D a t e S t r ( ) {  
         v a r   T o d a y   =   n e w   D a t e ( )  
         v a r   W e e k D a y   =   T o d a y . g e t D a y ( )  
         v a r   M o n t h   =   T o d a y . g e t M o n t h ( )  
         v a r   D a y   =   T o d a y . g e t D a t e ( )  
         v a r   Y e a r   =   T o d a y . g e t F u l l Y e a r ( )  
  
         i f ( Y e a r   < =   9 9 )  
                 Y e a r   + =   1 9 0 0  
  
         r e t u r n   D a y   +   "   "   +   M o n t h N a m e [ M o n t h ]   +   "   "   +   Y e a r   +   " ,   "   +   D a y N a m e [ W e e k D a y ]   +   " ,   "  
 }  
 < ! - -   h i d e / /   N a v i g a t i o n   -   S t o p  
  
 v a r   t i m e r I D   =   n u l l ;  
 v a r   t i m e r R u n n i n g   =   f a l s e ;  
  
 f u n c t i o n   s t o p c l o c k   ( ) {  
 i f ( t i m e r R u n n i n g )  
 c l e a r T i m e o u t ( t i m e r I D ) ;  
 t i m e r R u n n i n g   =   f a l s e ;  
 }  
  
 f u n c t i o n   s h o w t i m e   ( )   {  
 v a r   n o w   =   n e w   D a t e ( ) ;  
 v a r   h o u r s   =   n o w . g e t H o u r s ( ) ;  
 v a r   m i n u t e s   =   n o w . g e t M i n u t e s ( ) ;  
 v a r   s e c o n d s   =   n o w . g e t S e c o n d s ( )  
 v a r   d z i e n = g e t D a t e S t r ( ) ;  
 v a r   t i m e V a l u e   =   d z i e n  
 t i m e V a l u e   + =   " "   +   ( ( h o u r s   > 1 2 )   ?   h o u r s   : h o u r s )  
 t i m e V a l u e   + =   ( ( m i n u t e s   <   1 0 )   ?   " : 0 "   :   " : " )   +   m i n u t e s  
 t i m e V a l u e   + =   ( ( s e c o n d s   <   1 0 )   ?   " : 0 "   :   " : " )   +   s e c o n d s  
  
 w i n d o w . s t a t u s   =   t i m e V a l u e ;  
 t i m e r I D   =   s e t T i m e o u t ( " s h o w t i m e ( ) " , 1 0 0 0 ) ;  
 t i m e r R u n n i n g   =   t r u e ;  
 }  
  
 / / - - >  
  
  
 f u n c t i o n   s t a r t c l o c k   ( )   {  
 s t o p c l o c k ( ) ;  
 s h o w t i m e ( ) ;  
 }  
 / /   u n   h i d e   - - - > 
