ÿþf u n c t i o n   H n l T e s t D a t e ( v a l u e ,   r e q u i r e d )  
 	 {  
 	 v a r   d a y   =   0 ;  
 	 v a r   m o n t h   =   0 ;  
 	 v a r   y e a r   =   0 ;  
  
 	 i f   ( v a l u e   = =   " " )  
 	 	 {  
 	 	 i f   ( r e q u i r e d )  
 	 	 	 r e t u r n ( " D A T - 0 3 " ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ( " " ) ;  
 	 	 }  
 	  
 	 v a r   i t e m s   =   v a l u e . s p l i t ( " / " ) ;  
 	 i f   ( i t e m s . l e n g t h   ! =   3 )  
 	 	 r e t u r n ( " D A T - 0 4 " ) ;  
  
 	 s w i t c h   ( H n l V a l i d a t e . D a t e F o r m a t . t o U p p e r C a s e ( ) )  
 	 	 {  
 	 	 c a s e   " A M D " :  
 	 	 	 d a y     =   p a r s e F l o a t ( i t e m s [ 2 ] ) ;  
 	 	 	 m o n t h   =   p a r s e F l o a t ( i t e m s [ 1 ] ) ;  
 	 	 	 y e a r   =   p a r s e F l o a t ( i t e m s [ 0 ] ) ;  
 	 	 	 b r e a k ;  
 	 	 	  
 	 	 c a s e   " M D A " :  
 	 	 	 d a y     =   p a r s e F l o a t ( i t e m s [ 1 ] ) ;  
 	 	 	 m o n t h   =   p a r s e F l o a t ( i t e m s [ 0 ] ) ;  
 	 	 	 y e a r   =   p a r s e F l o a t ( i t e m s [ 2 ] ) ;  
 	 	 	 b r e a k ;  
 	 	 	  
 	 	 c a s e   " D M A " :  
 	 	 d e f a u l t :  
 	 	 	 d a y     =   p a r s e F l o a t ( i t e m s [ 0 ] ) ;  
 	 	 	 m o n t h   =   p a r s e F l o a t ( i t e m s [ 1 ] ) ;  
 	 	 	 y e a r   =   p a r s e F l o a t ( i t e m s [ 2 ] ) ;  
 	 	 	 b r e a k ;  
 	 	 }  
  
 	 i f   ( i s N a N ( d a y ) )  
 	 	 r e t u r n ( " D A T - 0 5 " ) ;  
 	 i f   ( i s N a N ( m o n t h ) )  
 	 	 r e t u r n ( " D A T - 0 6 " ) ;  
 	 i f   ( i s N a N ( y e a r ) )  
 	 	 r e t u r n ( " D A T - 0 7 " ) ;  
  
 	 i f   ( d a y   <   1 )  
 	 	 r e t u r n ( " D A T - 0 8 " ) ;  
 	 i f   ( m o n t h   <   1   | |   m o n t h   >   1 2 )  
 	 	 r e t u r n ( " D A T - 0 9 " ) ;  
 	 i f   ( y e a r   >   9 9   & &   y e a r   <   1 0 0 0 )  
 	 	 r e t u r n ( " D A T - 1 0 " ) ;  
 	 i f   ( y e a r   <   1 0 0 )  
 	 	 y e a r   + =   ( y e a r   >   7 0   ?   1 9 0 0   :   2 0 0 0 ) ;  
  
 	 s w i t c h   ( m o n t h )  
 	 	 {  
 	 	 c a s e   2 :  
 	 	 	 i f   ( ( y e a r   %   4   = =   0   & &   y e a r   %   1 0 0   ! =   0 )   | |   y e a r   %   4 0 0   = =   0 )  
 	 	 	 	 {  
 	 	 	 	 i f   ( d a y   >   2 9 )  
 	 	 	 	 	 r e t u r n ( " D A T - 1 1 " ) ;  
 	 	 	 	 }  
 	 	 	 e l s e  
 	 	 	 	 {  
 	 	 	 	 i f   ( d a y   >   2 8 )  
 	 	 	 	 	 r e t u r n ( " D A T - 1 2 " ) ;  
 	 	 	 	 }  
 	 	 	 b r e a k ;  
 	 	 c a s e   1 :  
 	 	 c a s e   3 :  
 	 	 c a s e   5 :  
 	 	 c a s e   7 :  
 	 	 c a s e   8 :  
 	 	 c a s e   1 0 :  
 	 	 c a s e   1 2 :  
 	 	 	 i f   ( d a y   >   3 1 )  
 	 	 	 	 r e t u r n ( " D A T - 1 3 " ) ;  
 	 	 	 b r e a k ;  
  
 	 	 d e f a u l t :  
 	 	 	 i f   ( d a y   >   3 0 )  
 	 	 	 	 r e t u r n ( " D A T - 1 4 " ) ; 	  
 	 	 b r e a k ;  
 	 	 }  
  
 	 v a l u e   =   n e w   D a t e ( y e a r ,   m o n t h   -   1 ,   d a y ) ;  
 	  
 	 r e t u r n ( v a l u e ) ;  
 	 }  
  
 f u n c t i o n   H n l T r a n s l a t e V a l i d a t e C o d e s ( e r r o r s ,   l a n g u a g e )  
 {  
 	 s w i t c h   ( l a n g u a g e )  
 	 {  
 	 	 c a s e   " C a t " : 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " L a   d a t a   n o   s o p o r t a   h o r a r i s   " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " E l   n ú m e r o   d e   s e p a r a d o r s   d e   d a t a   i   h o r a   é s   i n c o r r e c t e " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " E l   c a m p   é s   o b l i g a t o r i . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " E l s   d i a ,   m e s   i   a n y   h a n   d e   s e p a r a r - s e   a m b   ' / ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " E l   d i a   h a   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " E l   m e s   h a   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " L ' a n y   h a   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " E l   d i a   n o   p o t   s e r   i n f e r i o r   a   1 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " E l   m e s   h a   d ' e s t a r   e n t r e   1   y   1 2 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " L ' a n y   h a   d e   t e n i r   f o r m a t   A A   o   A A A A . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " E l   m e s   n o   t é   m é s   d e   2 9   d i e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " E l   m e s   n o   t é   m é s   d e   2 8   d i e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " E l   m e s   n o   t é   m é s   d e   3 1   d i e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " E l   m e s   n o   t é   m é s   d e   3 0   d i e s . " ) ;  
 	 	 	    
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " E l   c a m p   é s   o b l i g a t o r i . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " L ' e - m a i l   n o   é s   v à l i d . " ) ;  
 	 	 	    
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " E l   c a m p   é s   o b l i g a t o r i . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " E l   n ú m e r o   n o   p o t   s e r   ú n i c a m e n t   u n   s e p a r a d o r   d e c i m a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " E l   n ú m e r o   n o   p o t   s e r   ú n i c a m e n t   u n   s e p a r a d o r   d e     m i l e r s   . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " E l   n ú m e r o   t é   e l s   d e c i m a l s   i n c o m p l e r t s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " E l   n ú m e r o   t é   c a r à c t e r s   n o   n u m è r i c s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " E l   n ú m e r o   d e   d e c i m a l s   é s   e x c e s s i u . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " E l   n ú m e r o   h a   d e   s e r   s e n c e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " E l   n ú m e r o   n o   t é   p a r t   s e n c e r a . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " L a   s e p a r a c i ó   d e   m i l e r s   n o   é s   c o r r e c t a . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " E l   n ú m e r o   t é   m é s   d ' u n   s e p a r a d o r   d e c i m a l . " ) ;  
 	 	 	      
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " E l   v a l o r   é s   s u p e r i o r   a l   m à x i m   p e r m è s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " E l   v a l o r   é s   i n f e r i o r   a l   m í n i m   p e r m è s . " ) ;  
 	 	 	    
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " E l   c a m p   é s   o b l i g a t o r i . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " E l   t e x t   h a   d e   s e r   a l f a b è t i c . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " E l   t e x t   h a   d e   s e r   n u m è r i c . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " E l   t e x t   c o n t é   c a r à c t e r s   n o   v à l i d s . " ) ;  
 	 	 	    
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " E l   c a m p   é s   o b l i g a t o r i . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " E l   t e m p s   n o   s o p o r t a   d i e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " E l   n ú m e r o   d e   s e p a r a d o r s   d e   d i e s   i   h o r e s   ' d '   n o   é s   c o r r e c t e . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " E l s   d i e s   h a n   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " L e s   h o r e s   i   m i n u t s   n o   e s t a n   s e p a r a t s   p e r   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " H i   h a   m a s s a   s e p a r a d o r s ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " N o   s   ' a c c e p t e n   s e g o n s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " L e s   h o r e s   h a n   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " E l s   m i n u t s   h a n   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " E l s   s e g o n s   h a n   d e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " L e s   h o r e s   h a n   d ' e s t a r   e n t r e   0 - 2 3 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " E l s   m i n u t s   h a n   d ' e s t a r   e n t r e   0 - 5 9 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " E l s   s e g o n s   h a n   d ' e s t a r   e n t r e   0 - 5 9 . " ) ;  
 	 	 	 b r e a k ;  
 	 	  
 	 	 c a s e   " E n " :  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " T h e   d a t e   f i e l d   d o e s   n o t   s u p p o r t   t i m e t a b l e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " T h e   n u m b e r   o f   d a t e   a n d   t i m e   s e p a r a t o r s   i s   w r o n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " T h e   d a y ,   m o n t h ,   a n d   y e a r   m u s t   b e   s e p a r a t e d   b y   ' / ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " T h e   d a y   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " T h e   y e a r   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " T h e   d a y   c a n  t   b e   a   n u m b e r   b e l o w   1 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r   b e t w e e n   1   a n d   1 2 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " T h e   y e a r   m u s t   b e   i n     Y Y   o r   Y Y Y Y   f o r m a t . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 9   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 8   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 1   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 0   d a y s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " I n v a l i d   e - m a i l . " ) ;  
 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   d e c i m a l   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   t h o u s a n d s   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " T h i s   n u m b e r   i n c l u d e s   w r o n g   d e c i m a l s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " T h i s   n u m b e r   i n c l u d e s   n o n - n u m e r i c   c h a r a c t e r s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " T h i s   n u m b e r   c o n t a i n s   t o o   m a n y   d e c i m a l s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " W h o l e   n u m b e r s   o n l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " T h e   w h o l e   p a r t   o f   t h i s   n u m b e r   i s   m i s s i n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " W r o n g   t h o u s a n d s   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " T h i s   n u m b e r   h a s   m o r e   t h a n   o n e   d e c i m a l   s e p a r a t o r . " ) ;  
 	 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " T h i s   v a l u e   i s   a b o v e   t h e   m a x i m u m   a l l o w e d . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " T h i s   v a l u e   i s   b e l o w   t h e   m i n i m u m   a l l o w e d . " ) ;  
 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " T h i s   t e x t   m u s t   b e   a l p h a b e t i c a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " T h i s   t e x t   m u s t   b e   n u m e r i c a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " T h i s   t e x t   c o n t a i n s   i n v a l i d   c h a r a c t e r s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " T i m e   d o e s   n o t   s u p p o r t   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " T h e    d    n u m b e r   o f   d a y s   a n d   h o u r s   s e p a r a t o r s   i s   w r o n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " D a y s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " H o u r s   a n d   m i n u t e s   a r e   n o t   s e p a r a t e d   b y   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " T h e r e   a r e   t o o   m a n y   s e p a r a t o r s   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " S e c o n d s   a r e   n o t   a c c e p t e d . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " H o u r s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " M i n u t e s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " S e c o n d s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " H o u r s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   2 3 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " M i n u t e s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " S e c o n d s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
 	 	 	 b r e a k ;  
  
 	 	 c a s e   " E l " :  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " T h e   d a t e   f i e l d   d o e s   n o t   s u p p o r t   t i m e t a b l e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " T h e   n u m b e r   o f   d a t e   a n d   t i m e   s e p a r a t o r s   i s   w r o n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " T h e   d a y ,   m o n t h ,   a n d   y e a r   m u s t   b e   s e p a r a t e d   b y   ' / ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " T h e   d a y   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " T h e   y e a r   m u s t   b e   a   n u m b e r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " T h e   d a y   c a n  t   b e   a   n u m b e r   b e l o w   1 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r   b e t w e e n   1   a n d   1 2 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " T h e   y e a r   m u s t   b e   i n     Y Y   o r   Y Y Y Y   f o r m a t . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 9   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 8   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 1   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 0   d a y s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " ‘ÅÄÌ  Ä¿  Àµ´¯¿  µ¯½±¹  ÅÀ¿ÇÁµÉÄ¹ºÌ. " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " I n v a l i d   e - m a i l . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   d e c i m a l   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   t h o u s a n d s   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " T h i s   n u m b e r   i n c l u d e s   w r o n g   d e c i m a l s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " T h i s   n u m b e r   i n c l u d e s   n o n - n u m e r i c   c h a r a c t e r s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " T h i s   n u m b e r   c o n t a i n s   t o o   m a n y   d e c i m a l s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " W h o l e   n u m b e r s   o n l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " T h e   w h o l e   p a r t   o f   t h i s   n u m b e r   i s   m i s s i n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " W r o n g   t h o u s a n d s   s e p a r a t o r . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " T h i s   n u m b e r   h a s   m o r e   t h a n   o n e   d e c i m a l   s e p a r a t o r . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " T h i s   v a l u e   i s   a b o v e   t h e   m a x i m u m   a l l o w e d . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " T h i s   v a l u e   i s   b e l o w   t h e   m i n i m u m   a l l o w e d . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " T h i s   t e x t   m u s t   b e   a l p h a b e t i c a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " T h i s   t e x t   m u s t   b e   n u m e r i c a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " T h i s   t e x t   c o n t a i n s   i n v a l i d   c h a r a c t e r s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " T h i s   f i e l d   i s   c o m p u l s o r y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " T i m e   d o e s   n o t   s u p p o r t   d a y s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " T h e    d    n u m b e r   o f   d a y s   a n d   h o u r s   s e p a r a t o r s   i s   w r o n g . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " D a y s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " H o u r s   a n d   m i n u t e s   a r e   n o t   s e p a r a t e d   b y   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " T h e r e   a r e   t o o   m a n y   s e p a r a t o r s   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " S e c o n d s   a r e   n o t   a c c e p t e d . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " H o u r s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " M i n u t e s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " S e c o n d s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " H o u r s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   2 3 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " M i n u t e s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " S e c o n d s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
 	 	 	 b r e a k ;  
 	 	 	  
 	 	 c a s e   " E s " :  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " L a   f e c h a   n o   s o p o r t a   h o r a r i o s " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " E l   n ú m e r o   d e   s e p a r a d o r e s   d e   f e c h a   y   h o r a   e s   i n c o r r e c t o " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " E l   c a m p o   e s   o b l i g a t o r i o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " E l   d í a ,   m e s   y   a ñ o   d e b e n   s e p a r a r s e   c o n   ' / ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " E l   d í a   d e b e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " E l   m e s   d e b e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " E l   a ñ o   d e b e   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " E l   d í a   n o   p u e d e   s e r   i n f e r i o r   a   1 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " E l   m e s   d e b e   e s t a r   c o m p r e n d i d o   e n t r e   1   y   1 2 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " E l   a ñ o   d e b e   e s t a r   e n   f o r m a t o   A A   o   A A A A . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " E l   m e s   n o   t i e n e   m á s   d e   2 9   d í a s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " E l   m e s   n o   t i e n e   m á s   d e   2 8   d í a s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " E l   m e s   n o   t i e n e   m á s   d e   3 1   d í a s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " E l   m e s   n o   t i e n e   m á s   d e   3 0   d í a s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " E l   c a m p o   e s   o b l i g a t o r i o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " E l   e - m a i l   n o   e s   v á l i d o . " ) ;  
 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " E l   c a m p o   e s   o b l i g a t o r i o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " E l   n ú m e r o   n o   p u e d e   s e r   ú n i c a m e n t e   u n   s e p a r a d o r   d e c i m a l . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " E l   n ú m e r o   n o   p u e d e   s e r   ú n i c a m e n t e   u n   s e p a r a d o r   d e   m i l e s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " E l   n ú m e r o   t i e n e   l o s   d e c i m a l e s   i n c o m p l e t o s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " E l   n ú m e r o   t i e n e   c a r a c t e r e s   n o   n u m é r i c o s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " E l   n ú m e r o   d e   d e c i m a l e s   e s   e x c e s i v o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " E l   n ú m e r o   d e b e   s e r   e n t e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " E l   n ú m e r o   n o   t i e n e   p a r t e   e n t e r a . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " L a   s e p a r a c i ó n   d e   m i l e s   n o   e s   c o r r e c t a . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " E l   n ú m e r o   t i e n e   m á s   d e   u n   s e p a r a d o r   d e c i m a l . " ) ;  
 	 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " E l   v a l o r   e s   s u p e r i o r   a l   m á x i m o   p e r m i t i d o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " E l   v a l o r   e s   i n f e r i o r   a l   m í n i m o   p e r m i t i d o . " ) ;  
 	 	 	  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " E l   c a m p o   e s   o b l i g a t o r i o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " E l   t e x t o   d e b e   s e r   a l f a b é t i c o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " E l   t e x t o   d e b e   s e r   n u m é r i c o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " E l   t e x t o   c o n t i e n e   c a r a c t e r e s   n o   v á l i d o s . " ) ;  
  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " E l   c a m p o   e s   o b l i g a t o r i o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " E l   t i e m p o   n o   s o p o r t a   d í a s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " E l   n ú m e r o   d e   s e p a r a d o r e s   d e   d í a s   y   h o r a s   ' d '   n o   e s   c o r r e c t o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " L o s   d í a s   d e b e n   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " L a s   h o r a s   y   m i n u t o s   n o   e s t á n   s e p a r a d a s   p o r   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " H a y   d e m a s i a d o s   s e p a r a d o r e s   ' : ' . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " N o   s e   a c e p t a n   s e g u n d o s . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " L a s   h o r a s   d e b e n   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " L o s   m i n u t o s   d e b e n   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " L o s   s e g u n d o s   d e b e n   s e r   u n   n ú m e r o . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " L a s   h o r a s   d e b e n   e s t a r   c o m p r e n d i d a s   e n t r e   0 - 2 3 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " L o s   m i n u t o s   d e b e n   e s t a r   c o m p r e n d i d o s   e n t r e   0 - 5 9 . " ) ;  
 	 	 	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " L o s   s e g u n d o s   d e b e n   e s t a r   c o m p r e n d i d o s   e n t r e   0 - 5 9 . " ) ;  
 	 	 	 b r e a k ;  
  
         c a s e   " I t " :  
 	                 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " I l   c a m p o   d a t a   n o n   p e r m e t t e   o r a r i . " ) ;  
 	                 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " I l   n u m e r o   d i   s p a z i   t r a   l a   d a t a   e   l  o r a   n o n   \ u 0 0 e 9   c o r r e t t o . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " I l   c a m p o   \ u 0 0 e 9   o b b l i g a t o r i o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " I l   g i o r n o ,   i l   m e s e   e   l  a n n o   d e v o n o   e s s e r e   s e p a r a t i   d a   ' / ' . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " I l   g i o r n o   d e v e   e s s e r e   u n   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " I l   m e s e   d e v e   e s s e r e   u n   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " L  a n n o   d e v e   e s s e r e   u n   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " I l   g i o r n o   n o n   p u ó   e s s e r e   i n f e r i o r e   a   1 . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " I l   m e s e   d e b e   e s s e r e   c o m p r e s o   t r a   1   e   1 2 . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " L  a n n o   d e b e   e s s e r e   n e l   f o r m a t o   A A   o   A A A A . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " I l   m e s e   n o n   h a   p i \ u 0 0 f a   d i   2 9   g i o r n i . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " I l   m e s e   n o n   h a   p i \ u 0 0 f a   d i   2 8   g i o r n i . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " I l   m e s e   n o n   h a   p i \ u 0 0 f a   d i   3 1   g i o r n i . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " I l   m e s e   n o n   h a   p i \ u 0 0 f a   d i   3 0   g i o r n i . " ) ;  
  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " I l   c a m p o   \ u 0 0 e 9   o b b l i g a t o r i o . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " L  e - m a i l   n o n   \ u 0 0 e 9   v a l i d a . " ) ;  
  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " I l   c a m p o   \ u 0 0 e 9   o b b l i g a t o r i o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " I l   n u m e r o   n o n   p u ó   e s s e r e   s o l o   u n   s e p a r a t o r e   d e c i m a l e . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " I l   n u m e r o   n o n   p u ó   e s s e r e   s o l o   u n   s e p a r a t o r e   d e l l e   m i g l i a i a . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " I l   n u m e r o   h a   i   d e c i m a l i   i n c o m p l e t i . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " I l   n u m e r o   d i g i t a t o   h a   c a r a t t e r i   n o n   n u m e r i c i . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " I l   n u m e r o   d e i   d e c i m a l i   \ u 0 0 e 9   e c c e s s i v o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " D e v e   e s s e r e   u n   n u m e r o   i n t e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " I l   n u m e r o   n o n   h a   l a   p a r t e   i n t e r a . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " L a   s e p a r a z i o n e   d e l l e   m i g l i a i a   n o n   \ u 0 0 e 9   c o r r e t t a . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " I l   n u m e r o   h a   p i \ u 0 0 f a   d i   u n   s e p a r a t o r e   d e c i m a l e . " ) ;  
  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " I l   v a l o r e   \ u 0 0 e 9   s u p e r i o r e   a l   m a s s i m o   c o n s e n t i t o . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " I l   v a l o r e   \ u 0 0 e 9   i n f e r i o r e   a l   m i n i m o   c o n s e n t i t o . " ) ;  
  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " I l   c a m p o   \ u 0 0 e 9   o b b l i g a t o r i o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " I l   t e s t o   d e v e   e s s e r e   a l f a b e t i c o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " I l   t e s t o   d e v e   e s s e r e   n u m e r i c o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " I l   t e s t o   c o n t i e n e   c a r a t t e r i   n o n   v a l i d i . " ) ;  
  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " I l   c a m p o   \ u 0 0 e 9   o b b l i g a t o r i o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " I l   c a m p o   t e m p o   n o n   p e r m e t t e   g i o r n i . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " I l   n u m e r o   d i   s e p a r a t o r i   d i   g i o r n i   e   o r e   ' d '   n o n   \ u 0 0 e 9   c o r r e t t o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " I   g i o r n i   d e v o n o   e s s e r e   s o t t o   f o r m a   d i   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " L e   o r e   e   m i n u t i   n o n   s o n o   s e p a r a t e   d a   ' : ' . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " C i   s o n o   t r o p p i   ' : ' . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " N o n   s i   a c c e t t a n o   s e c o n d i . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " L e   o r e   d e v o n o   e s s e r e   s o t t o   f o r m a   d i   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " I   m i n u t i   d e v o n o   e s s e r e   s o t t o   f o r m a   d i   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " I   s e c o n d i   d e v o n o   e s s e r e   s o t t o   f o r m a   d i   n u m e r o . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " L e   o r e   d e v o n o   e s s e r e   c o m p r e s e   t r a   0 - 2 3 . " ) ;    
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " I   m i n u t i   d e v o n o   e s s e r e   c o m p r e s i   t r a   0 - 5 9 . " ) ;  
                         e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " I   s e c o n d i   d e v o n o   e s s e r e   c o m p r e s i   t r a   0 - 5 9 . " ) ;  
                         b r e a k ;  
                     c a s e   " F r " :  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 1 / g ,   " T h e   d a t e   f i e l d   d o e s   n o t   s u p p o r t   t i m e t a b l e s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 2 / g ,   " T h e   n u m b e r   o f   d a t e   a n d   t i m e   s e p a r a t o r s   i s   w r o n g . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 3 / g ,   " C e   c h a m p s   e s t   o b l i g a t o i r e . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 4 / g ,   " T h e   d a y ,   m o n t h ,   a n d   y e a r   m u s t   b e   s e p a r a t e d   b y   ' / ' . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 5 / g ,   " T h e   d a y   m u s t   b e   a   n u m b e r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 6 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 7 / g ,   " T h e   y e a r   m u s t   b e   a   n u m b e r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 8 / g ,   " T h e   d a y   c a n  t   b e   a   n u m b e r   b e l o w   1 . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 0 9 / g ,   " T h e   m o n t h   m u s t   b e   a   n u m b e r   b e t w e e n   1   a n d   1 2 . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 0 / g ,   " T h e   y e a r   m u s t   b e   i n     Y Y   o r   Y Y Y Y   f o r m a t . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 1 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 9   d a y s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 2 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   2 8   d a y s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 3 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 1   d a y s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / D A T - 1 4 / g ,   " T h i s   m o n t h   d o e s   n o t   h a v e   m o r e   t h a n   3 0   d a y s . " ) ;  
  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 1 / g ,   " C e   c h a m p s   e s t   o b l i g a t o i r e . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / M A L - 0 2 / g ,   " I n v a l i d   e - m a i l . " ) ;  
  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 1 / g ,   " C e   c h a m p s   e s t   o b l i g a t o i r e . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 2 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   d e c i m a l   s e p a r a t o r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 3 / g ,   " T h e   n u m b e r   c a n  t   b e   j u s t   a   t h o u s a n d s   s e p a r a t o r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 4 / g ,   " T h i s   n u m b e r   i n c l u d e s   w r o n g   d e c i m a l s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 5 / g ,   " T h i s   n u m b e r   i n c l u d e s   n o n - n u m e r i c   c h a r a c t e r s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 6 / g ,   " T h i s   n u m b e r   c o n t a i n s   t o o   m a n y   d e c i m a l s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 7 / g ,   " W h o l e   n u m b e r s   o n l y . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 8 / g ,   " T h e   w h o l e   p a r t   o f   t h i s   n u m b e r   i s   m i s s i n g . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 0 9 / g ,   " W r o n g   t h o u s a n d s   s e p a r a t o r . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / N U M - 1 0 / g ,   " T h i s   n u m b e r   h a s   m o r e   t h a n   o n e   d e c i m a l   s e p a r a t o r . " ) ;  
  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 1 / g ,   " T h i s   v a l u e   i s   a b o v e   t h e   m a x i m u m   a l l o w e d . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / R N G - 0 2 / g ,   " T h i s   v a l u e   i s   b e l o w   t h e   m i n i m u m   a l l o w e d . " ) ;  
  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 1 / g ,   " C e   c h a m p s   e s t   o b l i g a t o i r e " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 2 / g ,   " T h i s   t e x t   m u s t   b e   a l p h a b e t i c a l . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 3 / g ,   " T h i s   t e x t   m u s t   b e   n u m e r i c a l . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / S T R - 0 4 / g ,   " T h i s   t e x t   c o n t a i n s   i n v a l i d   c h a r a c t e r s . " ) ;  
  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 1 / g ,   " C e   c h a m p s   e s t   o b l i g a t o i r e " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 2 / g ,   " T i m e   d o e s   n o t   s u p p o r t   d a y s . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 3 / g ,   " T h e    d    n u m b e r   o f   d a y s   a n d   h o u r s   s e p a r a t o r s   i s   w r o n g . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 4 / g ,   " D a y s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 5 / g ,   " H o u r s   a n d   m i n u t e s   a r e   n o t   s e p a r a t e d   b y   ' : ' . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 6 / g ,   " T h e r e   a r e   t o o   m a n y   s e p a r a t o r s   ' : ' . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 7 / g ,   " S e c o n d s   a r e   n o t   a c c e p t e d . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 8 / g ,   " H o u r s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 0 9 / g ,   " M i n u t e s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 0 / g ,   " S e c o n d s   m u s t   b e   e x p r e s s e d   n u m e r i c a l l y . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 1 / g ,   " H o u r s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   2 3 . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " M i n u t e s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
                       	 e r r o r s   =   e r r o r s . r e p l a c e ( / T M E - 1 2 / g ,   " S e c o n d s   m u s t   b e   a   n u m b e r   b e t w e e n   0   a n d   5 9 . " ) ;  
                       	 b r e a k ;  
 	 	 }  
 	  
 	 r e t u r n ( e r r o r s ) ;  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e D a t e ( v a l u e ,   r e q u i r e d ,   m i n ,   m a x ,   t i m e _ a c t i v e ,   s e c o n d s _ a c t i v e )  
 	 {  
 	 v a r   i t e m s   =   v a l u e . s p l i t ( "   " ) ;  
 	 i f   ( i t e m s . l e n g t h   >   1   & &   ! t i m e _ a c t i v e )  
 	 	 r e t u r n ( " D A T - 0 1 " ) ; 	  
 	 i f   ( i t e m s . l e n g t h   <   1   | |   i t e m s . l e n g t h   >   2 )  
 	 	 r e t u r n ( " D A T - 0 2 " ) ;  
  
 	 v a l u e   =   H n l T e s t D a t e ( i t e m s [ 0 ] ,   r e q u i r e d ) ;  
 	 i f   ( t y p e o f ( v a l u e )   ! =   " o b j e c t " )  
 	 	 r e t u r n ( v a l u e ) ;  
  
 	 i f   ( i t e m s . l e n g t h   = =   2 )  
 	 	 {  
 	 	 v a r   e r r o r   =   H n l V a l i d a t e T i m e ( i t e m s [ 1 ] ,   r e q u i r e d ,   n u l l ,   n u l l ,   f a l s e ,   s e c o n d s _ a c t i v e ) ;  
 	 	 i f   ( e r r o r )  
 	 	 	 r e t u r n ( e r r o r ) ;  
 	 	 }  
  
 	 r e t u r n ( H n l V a l i d a t e R a n g e ( v a l u e ,   m i n ,   m a x ) ) ;  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e E m a i l ( v a l u e ,   r e q u i r e d ,   m i n ,   m a x )  
 	 {  
 	 i f   ( v a l u e   = =   " " )  
 	 	 {  
 	 	 i f   ( r e q u i r e d )  
 	 	 	 r e t u r n ( " M A L - 0 1 " ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ( " " ) ;  
 	 	 }  
 	  
 	 v a r   p a r t s   =   v a l u e . s p l i t ( " @ " ) ;  
 	 i f   ( p a r t s . l e n g t h   ! =   2 )  
 	 	 r e t u r n ( " M A L - 0 2 " ) ;  
  
 	 i f   ( p a r t s [ 0 ] . l e n g t h   <   1   | |   p a r t s [ 0 ] . c h a r A t ( p a r t s [ 0 ] . l e n g t h   -   1 )   = =   " . " )  
 	 	 r e t u r n ( " M A L - 0 2 " ) ;  
 	 i f   ( p a r t s [ 0 ] . s e a r c h ( / [ ^ \ - \ . \ w ] | \ . { 2 } | ^ [ _ \ . \ - ] | [ _ \ . \ - ] $ | [ _ \ . \ - ] [ _ \ . \ - ] / )   ! =   - 1 )  
 	 	 r e t u r n ( " M A L - 0 2 " ) ;  
  
 	 i f   ( p a r t s [ 1 ] . s e a r c h ( / [ ^ A - Z a - z 0 - 9 \ - \ . ] | \ . { 2 } | ^ [ \ . \ - ] | [ \ . \ - ] $ | [ \ . \ - ] [ \ . \ - ] / )   ! =   - 1 )  
 	 	 r e t u r n ( " M A L - 0 2 " ) ;  
  
 	 v a r   l e n g t h   =   p a r t s [ 1 ] . l e n g t h ;  
 	 v a r   p o s   =   p a r t s [ 1 ] . l a s t I n d e x O f ( " . " ) ;  
 	 i f   ( p o s   <   2   | |   l e n g t h   -   p o s   <   3   | |   l e n g t h   -   p o s   >   7 )  
 	 	 r e t u r n ( " M A L - 0 2 " ) ;  
  
 	 r e t u r n ( H n l V a l i d a t e R a n g e ( v a l u e . l e n g t h ,   m i n ,   m a x ) ) ;  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e N u m b e r ( v a l u e ,   r e q u i r e d ,   m i n ,   m a x ,   d e c )  
 	 {  
 	 v a r   n e g a t i v e   =   f a l s e ;  
 	 v a r   p a r t s ;  
 	 v a r   r e ;  
 	 v a r 	 t h o u s a n d s   =   f a l s e ;  
  
 	 i f   ( t y p e o f ( d e c )   = =   " u n d e f i n e d " )  
 	 	 d e c   =   f a l s e ;  
  
 	 i f   ( v a l u e   = =   " " )  
 	 	 {  
 	 	 i f   ( r e q u i r e d )  
 	 	 	 r e t u r n ( " N U M - 0 1 " ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ( " " ) ;  
 	 	 }  
 	 	 	 	 	  
 	 i f   ( v a l u e . c h a r A t ( 0 )   = =   " - " )  
 	 	 {  
 	 	 n e g a t i v e   =   t r u e ;  
 	 	 v a l u e   =   v a l u e . s u b s t r ( 1 ) ;  
 	 	 }  
  
 	 i f   ( v a l u e   = =   H n l V a l i d a t e . D e c i m a l S e p a r a t o r )  
 	 	 r e t u r n ( " N U M - 0 2 " )  
 	 i f   ( v a l u e   = =   H n l V a l i d a t e . T h o u s a n d s S e p a r a t o r )  
 	 	 r e t u r n ( " N U M - 0 3 " )  
  
 	 p a r t s   =   v a l u e . s p l i t ( H n l V a l i d a t e . D e c i m a l S e p a r a t o r ) ;  
  
 	 s w i t c h   ( p a r t s . l e n g t h )  
 	 	 {  
 	 	 c a s e   2 :  
 	 	 	 i f   ( p a r t s [ 1 ] . l e n g t h   = =   0 )  
 	 	 	 	 r e t u r n ( " N U M - 0 4 " ) ;  
 	 	 	 f o r ( c h a r _ c n t   =   0 ;   c h a r _ c n t   <   p a r t s [ 1 ] . l e n g t h ;   c h a r _ c n t + + )  
 	 	 	 	 {  
 	 	 	 	 c h r   =   p a r t s [ 1 ] . c h a r A t ( c h a r _ c n t ) ;  
 	 	 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 	 	 r e t u r n ( " N U M - 0 5 " )  
 	 	 	 	 }  
 	 	 	 i f   ( t y p e o f ( d e c )   = =   " n u m b e r " )  
 	 	 	 	 {  
 	 	 	 	 i f   ( p a r t s [ 1 ] . l e n g t h   >   d e c )  
 	 	 	 	 	 r e t u r n ( " N U M - 0 6 " ) ;  
 	 	 	 	 }  
 	 	 	 e l s e  
 	 	 	 	 i f   ( ! d e c )  
 	 	 	 	 	 r e t u r n ( " N U M - 0 7 " ) ;  
  
 	 	 c a s e   1 :  
 	 	 	 i f   ( p a r t s [ 0 ] . l e n g t h   = =   0 )  
 	 	 	 	 r e t u r n ( " N U M - 0 8 " ) ;  
 	 	 	 f o r ( c h a r _ c n t   =   p a r t s [ 0 ] . l e n g t h   -   1 ;   c h a r _ c n t   > =   0 ;   c h a r _ c n t - - )  
 	 	 	 	 {  
 	 	 	 	 c h r   =   p a r t s [ 0 ] . c h a r A t ( c h a r _ c n t ) ;  
 	 	 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 	 	 {  
 	 	 	 	 	 i f   ( c h r   = =   H n l V a l i d a t e . T h o u s a n d s S e p a r a t o r )  
 	 	 	 	 	 	 {  
 	 	 	 	 	 	 i f   ( ( p a r t s [ 0 ] . l e n g t h   -   c h a r _ c n t )   %   4   = =   0 )  
 	 	 	 	 	 	 	 c o n t i n u e ;  
 	 	 	 	 	 	 e l s e  
 	 	 	 	 	   	 	 r e t u r n ( " N U M - 0 9 " )  
 	 	 	 	 	   	 }  
 	 	 	 	 	   e l s e  
 	 	 	 	 	 	 r e t u r n ( " N U M - 0 5 " )  
 	 	 	 	 	 }  
 	 	 	 	 }  
 	 	 	 b r e a k ;  
 	 	 	 	 	 	 	  
 	 	 d e f a u l t :  
 	 	 	 r e t u r n ( " N U M - 1 0 " ) ;  
 	 	 }  
  
  
 	 s e p a r a t o r   =   H n l V a l i d a t e . T h o u s a n d s S e p a r a t o r ;  
 	 i f   ( s e p a r a t o r   = =   " . " )  
 	 	 s e p a r a t o r   =   " \ \ . " ;  
  
 	 r e   =   n e w   R e g E x p ( s e p a r a t o r ,   " g " ) ;  
 	 p a r t s [ 0 ]   =   p a r t s [ 0 ] . r e p l a c e ( r e ,   " " ) ;  
  
 	 v a l u e   =   p a r s e F l o a t ( ( n e g a t i v e   ?   " - "   :   " " )   +   p a r t s [ 0 ]   +   " . "   +   p a r t s [ 1 ] ) ;  
  
 	 r e t u r n ( H n l V a l i d a t e R a n g e ( v a l u e ,   m i n ,   m a x ) ) ;  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e R a n g e ( v a l u e ,   m i n ,   m a x )  
 	 {  
 	 i f   ( m a x   ! =   n u l l )  
 	 	 i f   ( v a l u e   >   m a x )  
 	 	 	 r e t u r n ( " R N G - 0 1 " ) ;  
  
 	 i f   ( m i n   ! =   n u l l ) 	 	  
 	 	 i f   ( v a l u e   <   m i n )  
 	 	 	 r e t u r n ( " R N G - 0 2 " ) ;  
  
 	 r e t u r n ( " " ) ; 	  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e S t r i n g ( v a l u e ,   r e q u i r e d ,   m i n ,   m a x ,   t y p e ,   t e m p l a t e )  
 	 {  
 	 v a r   c h r ;  
 	 v a r   c n t ;  
  
 	 i f   ( v a l u e   = =   " " )  
 	 	 {  
 	 	 i f   ( r e q u i r e d )  
 	 	 	 r e t u r n ( " S T R - 0 1 " ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ( " " ) ;  
 	 	 }  
  
 	 i f   ( t y p e )  
 	 	 {  
 	 	 s w i t c h   ( t y p e . t o L o w e r C a s e ( ) )  
 	 	 	 {  
 	 	 	 c a s e   " a l p h a b e t i c " :  
 	 	 	 	 f o r ( c n t   =   0 ;   c n t   <   v a l u e . l e n g t h ;   c n t + + )  
 	 	 	 	 	 {  
 	 	 	 	 	 c h r   =   v a l u e . c h a r A t ( c n t ) ;  
 	 	 	 	 	 i f   ( ( c h r   <   ' A '   | |   c h r   >   ' Z ' )   & &   ( c h r   <   ' a '   | |   c h r   >   ' z ' ) )  
 	 	 	 	 	 	 r e t u r n ( " S T R - 0 2 " ) ;  
 	 	 	 	 	 }  
 	 	 	 	 b r e a k ;  
 	 	 	  
 	 	 	 c a s e   " n u m e r i c " :  
 	 	 	 	 f o r ( c n t   =   0 ;   c n t   <   v a l u e . l e n g t h ;   c n t + + )  
 	 	 	 	 	 {  
 	 	 	 	 	 c h r   =   v a l u e . c h a r A t ( c n t ) ;  
 	 	 	 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 	 	 	 r e t u r n ( " S T R - 0 3 " ) ;  
 	 	 	 	 	 }  
 	 	 	 	 b r e a k ;  
 	 	 	 	  
 	 	 	 c a s e   " t e m p l a t e " :  
 	 	 	 	 f o r ( c n t   =   0 ;   c n t   <   v a l u e . l e n g t h ;   c n t + + )  
 	 	 	 	 	 {  
 	 	 	 	 	 c h r   =   v a l u e . c h a r A t ( c n t ) ;  
 	 	 	 	 	 i f   ( t e m p l a t e . i n d e x O f ( c h r )   = =   - 1 )  
 	 	 	 	 	 	 r e t u r n ( " S T R - 0 4 " ) ;  
 	 	 	 	 	 }  
 	 	 	 	 b r e a k ; 	 	 	  
 	 	 	 }  
 	 	 }  
  
 	 r e t u r n ( H n l V a l i d a t e R a n g e ( v a l u e . l e n g t h ,   m i n ,   m a x ) ) ;  
 	 }  
  
 f u n c t i o n   H n l V a l i d a t e T i m e ( v a l u e ,   r e q u i r e d ,   m i n ,   m a x ,   d a y _ a c t i v e ,   s e c o n d s _ a c t i v e )  
 	 {  
 	 i f   ( v a l u e   = =   " " )  
 	 	 {  
 	 	 i f   ( r e q u i r e d )  
 	 	 	 r e t u r n ( " T M E - 0 1 " ) ;  
 	 	 e l s e  
 	 	 	 r e t u r n ( " " ) ;  
 	 	 }  
  
 	 v a l u e   =   v a l u e . t o L o w e r C a s e ( ) ;  
 	 v a l u e   =   v a l u e . r e p l a c e ( /   / g ,   " " ) ;  
  
 	 v a r   p a r t s   =   v a l u e . s p l i t ( H n l V a l i d a t e . D a y S e p a r a t o r ) ;  
 	 i f   ( p a r t s . l e n g t h   >   1   & &   ! d a y _ a c t i v e )  
 	 	 r e t u r n ( " T M E - 0 2 " ) ;  
 	 i f   ( p a r t s . l e n g t h   ! =   1   & &   p a r t s . l e n g t h   ! =   2 )  
 	 	 r e t u r n ( " T M E - 0 3 " ) ;  
  
 	 v a r   t i m e ;  
  
 	 i f   ( p a r t s . l e n g t h   = =   2 )  
 	 	 {  
 	 	 t i m e   =   p a r t s [ 1 ] ;  
 	 	 f o r ( v a r   c n t   =   0 ;   c n t   <   p a r t s [ 0 ] . l e n g t h ;   c n t + + )  
 	 	 	 {  
 	 	 	 v a r   c h r   =   p a r t s [ 0 ] . c h a r A t ( c n t ) ;  
 	 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 	 r e t u r n ( " T M E - 0 4 " ) ;  
 	 	 	 }  
 	 	 }  
 	 e l s e  
 	 	 t i m e   =   p a r t s [ 0 ] ;  
  
 	 i f   ( ! t i m e . l e n g t h )  
 	 	 r e t u r n ( " " ) ;  
 	 	 	  
 	 i f   ( t i m e . i n d e x O f ( H n l V a l i d a t e . T i m e S e p a r a t o r )   = =   - 1 )  
 	 	 r e t u r n ( " T M E - 0 5 " ) ;  
  
 	 t i m e _ p a r t s   =   t i m e . s p l i t ( H n l V a l i d a t e . T i m e S e p a r a t o r ) ;  
 	 i f   ( t i m e _ p a r t s . l e n g t h   ! =   2   & &   t i m e _ p a r t s . l e n g t h   ! =   3 )  
 	 	 r e t u r n ( " T M E - 0 6 " ) ;  
 	 i f   ( t i m e _ p a r t s . l e n g t h   = =   3   & &   ! s e c o n d s _ a c t i v e )  
 	 	 r e t u r n ( " T M E - 0 7 " ) ; 	 	  
  
 	 f o r ( v a r   c n t   =   0 ;   c n t   <   t i m e _ p a r t s [ 0 ] . l e n g t h ;   c n t + + )  
 	 	 {  
 	 	 v a r   c h r   =   t i m e _ p a r t s [ 0 ] . c h a r A t ( c n t ) ;  
 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 r e t u r n ( " T M E - 0 8 " ) ;  
 	 	 }  
  
 	 f o r ( v a r   c n t   =   0 ;   c n t   <   t i m e _ p a r t s [ 1 ] . l e n g t h ;   c n t + + )  
 	 	 {  
 	 	 v a r   c h r   =   t i m e _ p a r t s [ 1 ] . c h a r A t ( c n t ) ;  
 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 r e t u r n ( " T M E - 0 9 " ) ;  
 	 	 }  
  
 	 i f   ( s e c o n d s _ a c t i v e )  
 	 	 {  
 	 	 f o r ( v a r   c n t   =   0 ;   c n t   <   t i m e _ p a r t s [ 2 ] . l e n g t h ;   c n t + + )  
 	 	 	 {  
 	 	 	 v a r   c h r   =   t i m e _ p a r t s [ 1 ] . c h a r A t ( c n t ) ;  
 	 	 	 i f   ( c h r   <   ' 0 '   | |   c h r   >   ' 9 ' )  
 	 	 	 	 r e t u r n ( " T M E - 1 0 " ) ;  
 	 	 	 }  
 	 	 }  
  
 	 v a r   h o u r   =   p a r s e F l o a t ( t i m e _ p a r t s [ 0 ] ) ;  
 	 v a r   m i n u t   =   p a r s e F l o a t ( t i m e _ p a r t s [ 1 ] ) ;  
 	 v a r   s e c o n d   =   0 ;  
 	 i f   ( s e c o n d s _ a c t i v e )  
 	 	 s e c o n d   =   p a r s e F l o a t ( t i m e _ p a r t s [ 2 ] ) ;  
  
 	 i f   ( h o u r   <   0   | |   h o u r   >   2 3 )  
 	 	 r e t u r n ( " T M E - 1 1 " ) ;  
 	 	 	  
 	 i f   ( m i n u t   <   0   | |   m i n u t   >   5 9 )  
 	 	 r e t u r n ( " T M E - 1 2 " ) ;  
  
 	 i f   ( s e c o n d   <   0   | |   s e c o n d   >   5 9 )  
 	 	 r e t u r n ( " T M E - 1 3 " ) ;  
  
 	 v a r   s e c o n d s   =   h o u r   *   1 4 4 0   +   m i n u t   *   6 0   +   s e c o n d ;  
 	 	  
 	 r e t u r n ( H n l V a l i d a t e R a n g e ( s e c o n d s ,   m i n ,   m a x ) ) ;  
 	 }  
  
 v a r   H n l V a l i d a t e   =   n e w   O b j e c t ( ) ;  
  
 H n l V a l i d a t e . D e c i m a l S e p a r a t o r   =   " , " ;  
 H n l V a l i d a t e . T h o u s a n d s S e p a r a t o r   =   " . " ;  
 H n l V a l i d a t e . D a t e F o r m a t   =   " D M A " ;  
 H n l V a l i d a t e . D a y S e p a r a t o r   =   " d " ;  
 H n l V a l i d a t e . T i m e S e p a r a t o r   =   " : " ;  
  
 
