ÿþ 
  
 / / A8=E@>=870F8O  ?>A;5  87<5=5=8O  40BK 
 / / c l i e n t S c r i p t   -   DF8O  0?459B  D8;4  =0  A5@25@5 
 f u n c t i o n   S y n c D a t e ( c l i e n t I D , c l i e n t S c r i p t )  
 {  
  
  
         D a y s O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d (   c l i e n t I D   +   " D a y " ) ;  
         M o n t h O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d ( c l i e n t I D   +   " M o n t h " ) ;  
         Y e a r O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d (   c l i e n t I D   +   " Y e a r " ) ;  
  
         S e t V a l u e ( c l i e n t I D , Y e a r O b j e c t . v a l u e   +   ' / '   +   M o n t h O b j e c t . v a l u e   +   ' / '   +   D a y s O b j e c t . v a l u e ) ;  
         i f   ( c l i e n t S c r i p t ! = ' n u l l '   & &   Y e a r O b j e c t . v a l u e ! = ' '   & &   M o n t h O b j e c t . v a l u e   ! = ' '   & &   D a y s O b j e c t . v a l u e   ! = ' ' )  
         {  
                 c l i e n t S c r i p t = u n e s c a p e ( c l i e n t S c r i p t ) ;  
                 e v a l ( c l i e n t S c r i p t ) ;  
         }  
          
  
 }  
  
  
  
 f u n c t i o n   S y n c H e b r e w D a t e ( c l i e n t I D , c l i e n t S c r i p t )  
 {  
  
  
         D a y s O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d (   c l i e n t I D   +   " D a y " ) ;  
         M o n t h O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d ( c l i e n t I D   +   " M o n t h " ) ;  
         Y e a r O b j e c t   =   d o c u m e n t . g e t E l e m e n t B y I d (   c l i e n t I D   +   " Y e a r " ) ;  
  
         S e t V a l u e ( c l i e n t I D , Y e a r O b j e c t . v a l u e   +   ' / '   +   M o n t h O b j e c t . v a l u e   +   ' / '   +   D a y s O b j e c t . v a l u e ) ;  
         i f   ( c l i e n t S c r i p t ! = ' n u l l '   & &   Y e a r O b j e c t . v a l u e ! = ' '   & &   M o n t h O b j e c t . v a l u e   ! = ' '   & &   D a y s O b j e c t . v a l u e   ! = ' ' )  
         {  
                 c l i e n t S c r i p t = u n e s c a p e ( c l i e n t S c r i p t ) ;  
                 e v a l ( c l i e n t S c r i p t ) ;  
         }  
          
  
 }  
  
  
  
  
     f u n c t i o n   H e b r e w T o C o m m o n ( h e b r e w D a t e C l i e n t I D , i s E v e n i n g C l i e n t I D , c o m m o n D a t e C l i e n t I D )  
         {  
                 v a r   h e b r e w D a t e = d o c u m e n t . g e t E l e m e n t B y I d ( h e b r e w D a t e C l i e n t I D ) . v a l u e ;  
                 v a r   i s E v e n i n g = d o c u m e n t . g e t E l e m e n t B y I d ( i s E v e n i n g C l i e n t I D ) . c h e c k e d ;  
                  
                 v a r   a s s e m b l y N a m e = ' c o m m o n ' ;  
                 v a r   t y p e N a m e = ' h e b r e w C o n v e r t e r ' ;  
                 v a r   m e t h o d N a m e = ' H e b r e w T o C o m m o n ' ;  
                 v a r   p a r a m e t e r s = ' h e b r e w D a t e = '   +   h e b r e w D a t e   +   ' & i s E v e n i n g = '   +   i s E v e n i n g ;  
                  
                 v a r   c o m m o n D a t e S t r i n g =   C a l l b a c k R e q u e s t ( a s s e m b l y N a m e , t y p e N a m e , m e t h o d N a m e , p a r a m e t e r s , n u l l ) ;  
                 i f   ( c o m m o n D a t e S t r i n g = = u n d e f i n e d )   r e t u r n ;  
                 / / y e a r   m o n t h   d a y  
                 v a r   c o m m o n D a t e = c o m m o n D a t e S t r i n g . s p l i t ( '   ' ) ;  
                  
                  
                 S e t V a l u e ( c o m m o n D a t e C l i e n t I D , c o m m o n D a t e S t r i n g ) ;  
                 S e t V a l u e ( c o m m o n D a t e C l i e n t I D   +   ' Y e a r ' , c o m m o n D a t e [ 0 ] ) ;  
                 S e t V a l u e ( c o m m o n D a t e C l i e n t I D   +   ' M o n t h ' , c o m m o n D a t e [ 1 ] ) ;  
                 S e t V a l u e ( c o m m o n D a t e C l i e n t I D   +   ' D a y ' , c o m m o n D a t e [ 2 ] ) ;  
                  
                  
         }  
          
          
          
           f u n c t i o n   C o m m o n T o H e b r e w ( c o m m o n D a t e C l i e n t I D , i s E v e n i n g C l i e n t I D , h e b r e w D a t e C l i e n t I D )  
         {  
                 v a r   c o m m o n D a t e = d o c u m e n t . g e t E l e m e n t B y I d ( c o m m o n D a t e C l i e n t I D ) . v a l u e ;  
                 v a r   i s E v e n i n g = d o c u m e n t . g e t E l e m e n t B y I d ( i s E v e n i n g C l i e n t I D ) . c h e c k e d ;  
                  
                 v a r   a s s e m b l y N a m e = ' c o m m o n ' ;  
                 v a r   t y p e N a m e = ' h e b r e w C o n v e r t e r ' ;  
                 v a r   m e t h o d N a m e = ' C o m m o n T o H e b r e w ' ;  
                 v a r   p a r a m e t e r s = ' c o m m o n D a t e = '   +   c o m m o n D a t e   +   ' & i s E v e n i n g = '   +   i s E v e n i n g     +   ' & f o r m a t H e b r e w D a t e = f a l s e ' ;  
                  
                 v a r   h e b r e w D a t e S t r i n g =   C a l l b a c k R e q u e s t ( a s s e m b l y N a m e , t y p e N a m e , m e t h o d N a m e , p a r a m e t e r s , n u l l ) ;  
                 / / y e a r   m o n t h   d a y  
                 i f   ( h e b r e w D a t e S t r i n g = = u n d e f i n e d )   r e t u r n ;  
                  
                 v a r   h e b r e w D a t e = h e b r e w D a t e S t r i n g . s p l i t ( '   ' ) ;  
                  
                    
                 S e t V a l u e ( h e b r e w D a t e C l i e n t I D , h e b r e w D a t e S t r i n g ) ;  
                 S e t V a l u e ( h e b r e w D a t e C l i e n t I D   +   ' Y e a r ' , h e b r e w D a t e [ 0 ] ) ;  
                 S e t V a l u e ( h e b r e w D a t e C l i e n t I D   +   ' M o n t h ' , h e b r e w D a t e [ 1 ] ) ;  
                 S e t V a l u e ( h e b r e w D a t e C l i e n t I D   +   ' D a y ' , h e b r e w D a t e [ 2 ] ) ;  
                  
                  
         } 
