ÿþf u n c t i o n   X M L _ D B _ G E T _ D A T A ( ) 	 
 	 	 w i n d o w . T B L . i n n e r H T M L   =   " " 
 	 	 w i n d o w . L N K . i n n e r H T M L   =   " "  	 	 D i m   D A Y S , W E E K S , W E E K R S , M O N T H S , M O N T H R S , L P M D A T E , i , j , B O D Y S T R , x m l D o c , B D a y , o b j N o d e L i s t  	 	 d i m   W e e k D A r r , L i n k s A r r , L i n k s S t r , a , b , c , d , e , f , g 
         	 i f   w i n d o w . r a d i o 1 . s t a t u s   =   t r u e   t h e n          	 	 i f     w i n d o w . L M P y e a r . s e l e c t e d I n d e x   =   0   o r   w i n d o w . L M P m o n t h . s e l e c t e d I n d e x   =   0   o r   w i n d o w . L M P d a y . s e l e c t e d I n d e x   =   0   t h e n 
         	 	 	 a l e r t ( " . . . êÑ×èÕ  êÐèÙÚ  ÑÑçéÔ" )          	 	 	 e x i t   f u n c t i o n 
         	 	 e n d   i f 
         	          	 	 L P M D A T E   =   D a t e S e r i a l ( w i n d o w . L M P y e a r . o p t i o n s ( w i n d o w . L M P y e a r . s e l e c t e d I n d e x ) . t e x t , w i n d o w . L M P m o n t h . o p t i o n s ( w i n d o w . L M P m o n t h . s e l e c t e d I n d e x ) . t e x t , w i n d o w . L M P d a y . o p t i o n s ( w i n d o w . L M P d a y . s e l e c t e d I n d e x ) . t e x t )   
 	 	 	 i f   D a t e D i f f ( " d " , N o w ( ) , L P M D A T E )   >   0   t h e n  	 	 	 	 a l e r t ( " . . . ÐÙß  ÞÙÓâ  ÐÕÓÕê  êçÕäê  ÔÔèÙÕß  ÔàÕÛ×Ùê" )  	 	 	 	 e x i t   f u n c t i o n 
 	 	 	 e n d   i f 
 	 	  	 	 	 D A Y S   =   a b s (   D a t e D i f f ( " d " , N o w ( ) , L P M D A T E ) )   +   1   
 	 	 	 W E E K S   =   D A Y S   \   7 
 	 	 	 W E E K R S   =   D A Y S   M o d   7 
 	 	 	 M O N T H S   =   W E E K S   \   4 
 	 	 	 M O N T H R S   =   W E E K S   M o d   4 
 	 	 	 i f   W E E K S   >   4 4   t h e n    	 	 	 	 a l e r t ( " . . . ÐÙß  ÞÙÓâ  ÐÕÓÕê  êçÕäê  ÔÔèÙÕß  ÔàÕÛ×Ùê" ) 
 	 	 	 	 e x i t   f u n c t i o n 
 	 	 	 e n d   i f   
 	 	 	  	 	 	 B O D Y S T R   =   " " 
 	 	 	 B D a y   =   C D a t e ( L P M D A T E )   +   7   -   9 0   -   2   +   3 6 5  	 	 	 L i n k s A r r   =   A r r a y ( 8 6 , 9 7 , 9 8 , 9 9 , 1 0 0 , 1 0 1 , 1 0 2 , 1 0 3 , 1 0 4 , 1 0 4 , 1 0 4 , 1 0 4 , 1 0 4 , 1 0 4 )  	 	 	 L i n k s S t r   =   " "   &   " ÜÞÙÓâ  àÕáã  âÜ  êçÕäê  ÔÔèÙÕß  ÔàÕÛ×Ùê  àÙêß  ÜÜ×Õå"   _  	 	 	 	     &   " < a   h r e f = h t t p : / / w w w . o b g y n - w o l f s o n . o r g . i l / C o n t e n t / A r t i c l e s / W o l f s o n A r t i c l e s . a s p ? A r t i c l e = "   &   L i n k s A r r ( M O N T H S )   &   " >   ÛÐß  < / a > " 
 	 	 	 a   =   " èÐéÕß" 
 	 	 	 b   =   " éàÙ" 
 	 	 	 c   =   " éÜÙéÙ" 
 	 	 	 d   =   " èÑÙâÙ" 
 	 	 	 e   =   " ×ÞÙéÙ" 
 	 	 	 f   =   " éÙéÙ" 
 	 	 	 g   =   " éÑê" 
 	 	 	 W e e k D A r r     =   A r r a y ( 0 , a , b , c , d , e , f , g ) 
 	 	 	 B O D Y S T R   =     " < p >         ÒÙÜ  ÔèÙÕß  ÑéÑÕâÕê  -     "   &   W E E K S   &   "   éÑÕâÕê  ÕâÕÓ  "   &   W E E K R S   &   "   ÙÞÙÝ< / p > "   _ 
 	 	 	 	   &   " < p >         ÒÙÜ  ÔèÙÕß  Ñ×ÕÓéÙÝ  -       "   &   M O N T H S   &   "   ×ÕÓéÙÝ  ÕâÕÓ  "   &   M O N T H R S   &   "   éÑÕâÕê< / p > "   _ 
 	 	 	 	   &   " < h 3 >       ÜÙÓÔ  ÑÞÕâÓ  ×ÜÔ  ÑÙß  éÑÕâ  3 8   ÜéÑÕâ  4 2     < / h 3 > "   _  	 	 	 	   &   " < p >   éÑÕâ  3 8   :     "   &   d a y ( B d a y   -   1 4 )   &   " / "   &   m o n t h ( B d a y   -   1 4 )   &   " / "   &   y e a r ( B d a y   -   1 4 )   &   " < / p > "   _ 
 	 	 	 	   &   " < p >   éÑÕâ  4 0   :     "   &   d a y ( B d a y )   &   " / "   &   m o n t h ( B d a y )   &   " / "   &   y e a r ( B d a y )   &   "   ÙÕÝ  " &   W e e k D A r r ( W e e k d a y ( B D a y , 1 ) )   & " < / p > "   _ 
 	 	 	 	   &   " < p >   éÑÕâ  4 2   :     "   &   d a y ( B d a y   +   1 4 )   &   " / "   &   m o n t h ( B d a y   +   1 4 )   &   " / "   &   y e a r ( B d a y   +   1 4 )   &   " < / p > "   
 	 	 	 j   =   0 
 	 e n d   i f 
 	 i f   w i n d o w . r a d i o 2 . s t a t u s   =   t r u e   t h e n 
 	 	 i f     w i n d o w . L M P w e e k . s e l e c t e d I n d e x   =   0   t h e n 
         	 	 	 a l e r t ( " . . . êÑ×èÕ  éÑÕâ  ÑÑçéÔ" )          	 	 	 e x i t   f u n c t i o n 
         	 e n d   i f          	          	 W E E K S   =   ( w i n d o w . L M P w e e k . o p t i o n s ( w i n d o w . L M P w e e k . s e l e c t e d I n d e x ) . v a l u e ) 
 	 e n d   i f 	 	 
 	  	 s e t   x m l D o c     =   C r e a t e O b j e c t ( " M i c r o s o f t . X M L D O M " )   
 	 x m l D o c . a s y n c   =   f a l s e 
 	 x m l D o c . r e s o l v e E x t e r n a l s   =   f a l s e 
 	 x m l D o c . l o a d ( " D B . x m l " ) 
 	 s e t   o b j N o d e L i s t   =   x m l D o c . g e t E l e m e n t s B y T a g N a m e ( " R o w " ) 
 	  	         	 f o r   i   =   0     t o   o b j N o d e L i s t . l e n g t h   -   1 
 	 	 	 	 i f   C i n t ( o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( 0 ) . t e x t )   =   C i n t ( W E E K S )   t h e n 
 	 	 	 	 
 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < p >   ÞéçÜ  âÕÑèÙ  ÞÞÕæâ  ÑÒèÞÙÝ  ÜäÙ  ÒÙÜ  ÔèÙÕß  àÕÛ×Ù: " 
 	 	 	 	 	 f o r   j   =   0   t o   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . l e n g t h   -   1 
 	 	 	 	 	 	 i f   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . n o d e N a m e   =   " N O R M A L _ R A N G E _ G R "   t h e n 
 	 	 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   "   "   &   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . t e x t   &   " " 
 	 	 	 	 	 	 e n d   i f 
 	 	 	 	 	 n e x t  	 	 	 	 	 B O D Y S T R   =   B O D Y S T R     &   "   ,   ØÕÕ×    "   &   "   ( " 
 	 	 	 	 	 f o r   j   =   0   t o   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . l e n g t h   -   1 
 	 	 	 	 	 	 i f   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . n o d e N a m e   =   " W E I G H T _ G R "   t h e n 
 	 	 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " "   &   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . t e x t   &   " ) < / p > " 
 	 	 	 	 	 	 e n d   i f 
 	 	 	 	 	 n e x t 
 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < h 3 > ÑÓÙçÕê  ÞÕÞÜæÕê  éàÙêß  ÜÑæâ  ÑêçÕäÔ  ÖÕ: < / h 3 > "  	 	 	 	  	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < p > ÑÓÙçÕê  ÔÞæÕÙÕê  ÑáÜ  ÔéèÕêÙÝ  éÜ  ÞéèÓ  ÔÑèÙÐÕê  /   çÕäÕê  Ô×ÕÜÙÝ: < / p > < u l > " 
 	 	 	 	  	 	 	 	 	 f o r   j   =   0   t o   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . l e n g t h   -   1 
 	 	 	 	 	 	 i f   l e f t ( o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . n o d e N a m e , 8 ) = " W O P _ T E S T "   t h e n 
 	 	 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < l i > "   &   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . t e x t   &   " < / l i > " 	 	 	 	 	  	 	 	 	 	 	 e n d   i f 
 	 	 	 	 	 n e x t 
 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < / u l > < p > ÑÓÙçÕê  èéÕê  éÐÙàß  ÑáÜ  ÔÑèÙÐÕê: < / p > < u l > " 	 	 	 	 	 
 	 	 	 	 	 i f   W E E K S   > =   5   a n d   W E E K S   <   1 3   t h e n 
 	 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   &   " < h 3 > ( ÑÓÙçÕê  ÒàØÙÕê  èç  ÑÔèÙÕß  èÐéÕß) < / h 3 > " 
 	 	 	 	 	 e n d   i f 	  	 	 	 	 	 f o r   j   =   0   t o   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . l e n g t h   -   1 	 
 	 	 	 	 	 	 I f   l e f t ( o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . n o d e N a m e , 7 ) = " W P _ T E S T "   t h e n 	 	 	 
 	 	 	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   & " < l i > " &   o b j N o d e L i s t . i t e m ( i ) . c h i l d N o d e s . i t e m ( j ) . t e x t   &   " < / l i > "  	 	 	 	 	 	 e n d   i f 
 	 	 	 	 	 n e x t 	  	 	 	 	 	 B O D Y S T R   =   B O D Y S T R   & " < / u l > " 
 	 	 	 	 e n d   i f 
 	 	 	 n e x t  	 	 	 w i n d o w . L N K . i n n e r H T M L   =   L i n k s S t r     
 	 	 	 w i n d o w . T B L . i n n e r H T M L   =   B O D Y S T R 
  e n d   f u n c t i o n 
