þÿ < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " U T F - 1 6 " ? > 
 < M o d u l e > 
 	 < M o d u l e P r e f s   
         t i t l e = " Y e a r m a t e s " 
         d e s c r i p t i o n = " F i n d   y o u r   l o n g   l o s t   b a t c h m a t e s   f r o m   y o u r   s c h o o l ,   c o l l e g e   o r   y o u r   w o r k p l a c e .   C h a t   w i t h   t h e m .   K n o w   m o r e   a b o u t   y o u r   f r i e n d s   h i s t o r y   a n d   t h e i r   o l d   d a y s . "   
         a u t h o r = " j a v a n g e l o " 
         a u t h o r _ e m a i l = " j a v a n g e l o @ g m a i l . c o m " 
         a u t h o r _ l i n k = " h t t p : / / w w w . j a v a n g e l o . c o m " 
         t i t l e _ u r l = " h t t p : / / w w w . y e a r m a t e s . c o m " 
         a u t h o r _ l o c a t i o n = " K o l k a t a ,   W B ,   I n d i a " 
         a u t h o r _ a f f i l i a t i o n = " J a v a n g e l o . c o m " 
         s c r e e n s h o t = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s c r e e n s h o t s / s c r e e n s h o t . j p g " 
         t h u m b n a i l = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / t h u m b n a i l / t h u m b n a i l . j p g " 	 
         > 
         	 < R e q u i r e   f e a t u r e = " o p e n s o c i a l - 0 . 7 " / > 
 	 	 < R e q u i r e   f e a t u r e = " d y n a m i c - h e i g h t " / > 
 	 	 < R e q u i r e   f e a t u r e = " v i e w s " / > 
 	 	 < R e q u i r e   f e a t u r e = " t a b s " / > 
 	 	 < R e q u i r e   f e a t u r e = " m i n i m e s s a g e " / > 	 
 	 	 < R e q u i r e   f e a t u r e = " a n a l y t i c s " / >           	 	 	 
 	 < / M o d u l e P r e f s > 
 	 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 < ! - - b e g i n   c u s t o m   h e a d e r   c o n t e n t   f o r   t h i s   e x a m p l e - - > 
 < s t y l e   t y p e = " t e x t / c s s " > 
         # p a g i n a t e d   { 
                 t e x t - a l i g n :   c e n t e r ; 
         } 
         # p a g i n a t e d   t a b l e   { 
                 m a r g i n - l e f t : a u t o ;   m a r g i n - r i g h t : a u t o ; 
         } 
         # p a g i n a t e d   . y u i - p g - c o n t a i n e r   a   { 
                 c o l o r :   # 0 0 d ; 
         } 
         # p a g i n a t e d   . y u i - p g - p a g e s   a   { 
                 t e x t - d e c o r a t i o n :   u n d e r l i n e ; 
         } 
         # p a g i n a t e d ,   # p a g i n a t e d   . y u i - d t - l o a d i n g   { 
                 t e x t - a l i g n :   c e n t e r ;   b a c k g r o u n d - c o l o r :   t r a n s p a r e n t ; 
         } 
 < / s t y l e > 
 < s t y l e > 
 . c h a t _ a r e a 
 { 
 	 b o r d e r :   1 p x   s o l i d   # c c c c c c ; 
 	 b a c k g r o u n d : # f f f ; 
 	 w i d t h : 1 0 0 % ; 
 	 h e i g h t : 1 0 0 % ; 
 	 f o n t - f a m i l y : " l u c i d a   g r a n d e " ,   t a h o m a ,   v e r d a n a ,   a r i a l ,   s a n s - s e r i f ; 
 	 f o n t - s i z e :   1 2 p x ; 
 	 f o n t - w e i g h t :   n o r m a l ; 
 	 o v e r f l o w :   a u t o 
 } 
 . o n l i n e _ a r e a 
 { 
 	 b o r d e r :   1 p x   s o l i d   # c c c c c c ; 
 	 b a c k g r o u n d : # f f f ; 
 	 w i d t h : 1 5 0 p x ; 
 	 h e i g h t : 1 0 0 % ; 
 	 f o n t - f a m i l y : " l u c i d a   g r a n d e " ,   t a h o m a ,   v e r d a n a ,   a r i a l ,   s a n s - s e r i f ; 
 	 f o n t - s i z e :   1 2 p x ; 
 	 f o n t - w e i g h t :   b o l d ; 
 	 o v e r f l o w :   a u t o 
 } 
 . c h a t _ a r e a _ c o n t a i n e r _ f b 6 
 { 
 	 b o r d e r :   1 p x   s o l i d   # c c c c c c ; 
 	 b a c k g r o u n d : # f f f ; 
 	 t e x t - a l i g n : l e f t ; 
 	 h e i g h t : 3 5 0 p x ; 
 	 o v e r f l o w :   s c r o l l ; 
 	 p a d d i n g :   1 0 p x ; 
 	 f o n t - f a m i l y : " l u c i d a   g r a n d e " ,   t a h o m a ,   v e r d a n a ,   a r i a l ,   s a n s - s e r i f ; 
 	 f o n t - s i z e :   1 2 p x ; 
 	 f o n t - w e i g h t :   b o l d 
 	 
 } 
 . s m a l l _ f o n t { f o n t - s i z e : 1 0 p x ; f o n t - w e i g h t : n o r m a l } 
 
 . o t h e r s _ m e s s a g e { f o n t - s i z e : 1 0 p x ; f o n t - w e i g h t : n o r m a l ; c o l o r : b l u e } 
 
 < / s t y l e > 
 < s t y l e > 
 @ c h a r s e t   " u t f - 8 " ; 
 
 . f b   { 
 	 c o l o r :   # 3 3 3 ; 
 	 p a d d i n g :   5 p x ; 
 	 b a c k g r o u n d - c o l o r :   # f 7 f 7 f 7 ; 
 	 b o r d e r :   1 p x   s o l i d   # b 7 b 7 b 7 ; 
 } 
 
 . f b   a   { 
 c o l o r :   # 3 B 5 9 9 8 ; 
 t e x t - d e c o r a t i o n : n o n e ; 
 } 
 
 . f b   p   { 
 p a d d i n g :   5 p x ; 
 } 
 
 . f b 1   { 
 	 c o l o r : # F F F F F F ; 
 	 b a c k g r o u n d - c o l o r : # 3 B 5 9 9 8 ; 
 	 b o r d e r - b o t t o m :   s o l i d   # 6 d 8 4 b 4   5 p x ; 
 } 
 
 . f b 2   { 
 	 p a d d i n g :   5 p x ; 
 	 c o l o r :   # F F F F F F ; 
 	 b a c k g r o u n d :   # 3 B 5 9 9 8 ; 
 } 
 
 . f b 2   a   { 
 	 c o l o r : # F F F F F F ; 
 	 t e x t - d e c o r a t i o n :   n o n e ; 
 	 o u t l i n e - s t y l e :   n o n e ; 
 	 p a d d i n g :   5 p x ; 
 } 
 
 . f b 2   a : h o v e r   { 
 	 b a c k g r o u n d :   # 6 D 8 4 B 4 ; 
 	 p a d d i n g :   5 p x ; 
 	 t e x t - d e c o r a t i o n :   n o n e ; 
 	 f o n t - w e i g h t :   b o l d ; 
 } 
 
 . f b 2 p   { 
 	 p a d d i n g :   2 p x ; 
 	 c o l o r :   # F F F F F F ; 
 	 b a c k g r o u n d :   # 3 B 5 9 9 8 ; 
 } 
 
 . f b 2 p   a   { 
 	 c o l o r : # F F F F F F ; 
 	 t e x t - d e c o r a t i o n :   n o n e ; 
 	 o u t l i n e - s t y l e :   n o n e ; 
 	 p a d d i n g :   2 p x ; 
 } 
 
 . f b 2 p   a : h o v e r   { 
 	 b a c k g r o u n d :   # 6 D 8 4 B 4 ; 
 	 p a d d i n g :   2 p x ; 
 	 t e x t - d e c o r a t i o n :   n o n e ; 
 	 f o n t - w e i g h t :   b o l d ; 
 } 
 
 . f b 3   { 
 	 c o l o r :   # 3 B 5 9 9 8 ; 
 	 b a c k g r o u n d - c o l o r :   # f 7 f 7 f 7 ; 
 	 b o r d e r - t o p :   1 p x   s o l i d   # d d d ; 
 	 b o r d e r - b o t t o m :   1 p x   s o l i d   # d d d ; 
 } 
 
 d i v . f b 3 : h o v e r   { 
 b o r d e r : n o n e ; 
 b a c k g r o u n d - c o l o r :   # d 8 d f e a ; 
 b o r d e r - t o p :   1 p x   s o l i d   # d 8 d f e a ; 
 b o r d e r - b o t t o m :   1 p x   s o l i d   # d 8 d f e a ; 
 } 
 
 . f b I n f o   { 
 	 c o l o r :   # 3 B 5 9 9 8 ; 
 	 b a c k g r o u n d : # f 7 f 7 f 7 ; 
 	 b o r d e r :   1 p x   s o l i d   # d d d ; 
 } 
 
 
 
 . f b 5   { 
 	 c o l o r :   # 3 3 3 ; 
 	 b a c k g r o u n d : # f f e b e 8 ; 
 	 b o r d e r :   1 p x   s o l i d   # d d 3 c 1 0 ; 
 } 
 
 . f b 4   { 
 	 c o l o r :   # 3 3 3 ; 
 	 b a c k g r o u n d : # f f f 9 d 7 ; 
 	 b o r d e r :   1 p x   s o l i d   # e 2 c 8 2 2 ; 
 } 
 
 
 
 . f b 5   { 
 	 c o l o r :   # 3 3 3 ; 
 	 b a c k g r o u n d : # f f e b e 8 ; 
 	 b o r d e r :   1 p x   s o l i d   # d d 3 c 1 0 ; 
 } 
 
 . f b 6   { 
 b o r d e r :   1 p x   s o l i d   # c c c c c c ; 
 b a c k g r o u n d : # f f f ; 
 t e x t - a l i g n : l e f t ; 
 } 
 
 
 . f b 6 a ,   . f b 6 b ,   . f b 6 c   { 
 	 f l o a t :   l e f t ; 
 } 
 
 
 . f b 6 b   { 
 	 
 	 
 } 
 
 . f b 6 b   a   { 
 f o n t - s i z e : 1 2 p x ; 
 c o l o r :   # 3 B 5 9 9 8 ; 
 t e x t - d e c o r a t i o n :   n o n e ; 
 } 
 
 . f b 6 b   a : h o v e r   { 
 t e x t - d e c o r a t i o n :   u n d e r l i n e ; 
 } 
 
 
 . f b 6 c   a   { 
 
 } 
 
 
 . f b 6 c   a   { 
 
 	 c o l o r :   # 3 B 5 9 9 8 ; 
 	 t e x t - d e c o r a t i o n : n o n e ; 
 } 
 
 . f b 6 c   a : h o v e r   { 
 	 c o l o r :   # F F F ; 
 	 b a c k g r o u n d : # 3 B 5 9 9 8 ; 
 	 } 
 
 
 . f b 6 c   l i   { 
 m a r g i n :   0 p x ; 
 p a d d i n g - l e f t : 5 p x ; 
 	 w h i t e - s p a c e :   n o w r a p ; 
 	 l i s t - s t y l e : n o n e ; 
 	 c o l o r :   # 3 B 5 9 9 8 ; 
 	 b o r d e r - b o t t o m :   1 p x   s o l i d   # d 8 d f e a ; 
 	 l i n e - h e i g h t :   1 5 p x ; 
 	 f o n t - s i z e : 1 1 p x ; 
 	 f o n t - w e i g h t :   n o r m a l ; 
 	 	 d i s p l a y : b l o c k ; 
 } 
 
 . f b 6 c   l i : h o v e r     { 
 	 c o l o r :   # F F F ; 
 	 b a c k g r o u n d - c o l o r : # 3 B 5 9 9 8 ; 
 } 
 
 
 . f b 6 c n a m e   { 
 	 f o n t - w e i g h t : n o r m a l ; 
 	 f o n t - s i z e :   1 1 p x ; 
 	 c o l o r : # 9 9 9 9 9 9 ; 
 } 
 
 . f b 6 l a b e l   { 
 	 f o n t - w e i g h t : b o l d ; 
 	 f o n t - s i z e :   1 1 p x ; 
 	 c o l o r : # 0 0 0 ; 
 } 
 
 . f b p o s t   { 
 	 f o n t - s i z e :   x - s m a l l ; 
 } 
 
 
 . f b ,   . f b 1 ,   . f b 2 ,   . f b 3 ,   . f b 4 ,   . f b 5 ,   . f b 6 , . f b I n f o   { 
 p a d d i n g :   1 0 p x ; 
 f o n t - f a m i l y : " l u c i d a   g r a n d e " ,   t a h o m a ,   v e r d a n a ,   a r i a l ,   s a n s - s e r i f ; 
 f o n t - s i z e :   1 2 p x ; 
 f o n t - w e i g h t :   b o l d ; 
 } 
 
 . f b 2 p   { 
 p a d d i n g :   5 p x ; 
 f o n t - f a m i l y : " l u c i d a   g r a n d e " ,   t a h o m a ,   v e r d a n a ,   a r i a l ,   s a n s - s e r i f ; 
 f o n t - s i z e :   1 0 p x ; 
 f o n t - w e i g h t :   b o l d ; 
 } 
 
 
 . f b x   { 
 f o n t - s i z e : 1 1 p x ; 
 f o n t - w e i g h t : n o r m a l ; 
 b a c k g r o u n d :   # f 7 f 7 f 7 ; 
 c o l o r : # 0 0 0 ; 
 p a d d i n g :   5 p x ; 
 b o r d e r :   1 p x   s o l i d   # B 7 B 7 B 7 ; 
 f l o a t :   r i g h t ; 
 } 
 
 . f b x   H 3   { 
 f o n t - s i z e : 1 1 p x ; 
 b a c k g r o u n d :   # e 9 e 9 e 9 ; 
 c o l o r : # 3 3 3 ; 
 p a d d i n g :   2 p x ; 
 m a r g i n - b o t t o m :   5 p x ; 
 m a r g i n - t o p :   0 p x ; 
 } 
 
 . f b x - t i n y   { 
 f o n t - s i z e : 1 0 p x ; 
 c o l o r :   # 7 7 7 ; 
 } 
 
 . f b x   a   { 
 c o l o r :   # 3 B 5 9 9 8 ; 
 t e x t - d e c o r a t i o n : n o n e ; 
 } 
 
 . f b x   a   { 
 t e x t - d e c o r a t i o n : u n d e r l i n e ; 
 } 
 
 . f b y   { 
 w i d t h : 1 6 5 p x ; 
 f l o a t :   l e f t ; 
 b o r d e r - r i g h t : 1 p x   s o l i d   # e e e ; 
 } 
 
 . f b y   a   { 
 c o l o r :   # 3 B 5 9 9 8 ; 
 b o r d e r - b o t t o m : 1 p x   t h i n   # c c c ; 
 f o n t - w e i g h t :   n o r m a l ; 
 
 } 
 
 . f b y   a : h o v e r   { 
 t e x t - d e c o r a t i o n : u n d e r l i n e ; 
 } 
 
 . f b y   H 3   { 
 f o n t - s i z e : 1 1 p x ; 
 c o l o r : # 3 B 5 9 9 8 ; 
 b a c k g r o u n d : # d 8 d f e a ; 
 b o r d e r - t o p :   1 p x   s o l i d   # 3 B 5 9 9 8 ; 
 p a d d i n g :   3 p x   1 0 p x ; 
 m a r g i n :   0 p x ; 
 } 
 
 
 . f b y   H 3 : h o v e r   { 
 b a c k g r o u n d : # c f d 7 e 4 ; 
 b o r d e r - t o p :   1 p x   s o l i d   # 3 B 5 9 9 8 ; 
 } 
 
 . f b y   l i   { 
 f o n t - s i z e : 1 1 p x ; 
 f o n t - w e i g h t :   n o r m a l ; 
 m a r g i n - l e f t :   5 p x ; 
 p a d d i n g :   3 p x   0 p x ; 
 l i s t - s t y l e : n o n e ; 
 b o r d e r - b o t t o m : 1 p x   s o l i d   # c c c ; 
 w i d t h :   1 5 5 p x ; 
 } 
 
 . f b y   i m g   { 
 b o r d e r : 0 ; 
 } 
 
 . f b r   { 
 p a d d i n g : 2 p x ; 
 t e x t - a l i g n : r i g h t ; 
 } 
 < / s t y l e > 
 < s t y l e   t y p e = " t e x t / c s s " > 
 i n p u t . s e a r c h   {   
 	 b a c k g r o u n d : w h i t e   u r l ( f a c e b o o k . c o m / i m a g e s / m a g g l a s s . p n g )   n o - r e p e a t   s c r o l l   3 p x   4 p x ; 
     	 p a d d i n g - l e f t : 1 7 p x ; 
 }   
     
 i n p u t ,   t e x t a r e a ,   s e l e c t   
 {   
     	 b o r d e r : 1 p x   s o l i d   # B D C 7 D 8 ; 
     	 f o n t - f a m i l y : " l u c i d a   g r a n d e " , t a h o m a , v e r d a n a , a r i a l , s a n s - s e r i f ;   
     	 f o n t - s i z e : 1 1 p x ;   p a d d i n g : 3 p x ;   
 }   
 i n p u t : f o c u s ,   t e x t a r e a : f o c u s ,   s e l e c t : f o c u s   
 { 
     	 b o r d e r - c o l o r : # 6 8 7 F B 0 
 }   
 . f i e l d   
 { 
     	 b o r d e r : 1 p x   s o l i d   # b d c 7 d 8 ;   
     	 p a d d i n g : 2 p x 
 }   
 . f i e l d : f o c u s   
 { 
     	 b o r d e r - c o l o r : # 6 8 7 F B 0 
 }   
 t e x t a r e a . f i e l d   
 { 
     	 w i d t h : 9 8 . 5 % ; 
     	 h e i g h t : 1 0 0 p x 
 }   
 b u t t o n   
 {   
     	 p a d d i n g : 1 p x   3 p x   1 p x   4 p x ;   
     	 f o n t - s i z e : 1 e m ;   
     	 f o n t - w e i g h t :   b o l d ; 
     	 c u r s o r : p o i n t e r ;   
     	 b a c k g r o u n d : # 3 b 5 9 9 8 ;   
     	 c o l o r : # f f f ;   
     	 b o r d e r : 1 p x   s o l i d   # 0 e 1 f 5 b ; 
     	 b o r d e r - l e f t - c o l o r : # D 9 D F E A ; 
     	 b o r d e r - t o p - c o l o r : # D 9 D F E A ; 
 }   
 b u t t o n . n e x t ,   b u t t o n . c a n c e l   
 {   
 	 b a c k g r o u n d : # d d d ; 
 	 c o l o r : # 1 1 1 ; 
 	 b o r d e r : 1 p x   s o l i d   # 6 6 6 ; 
 	 b o r d e r - l e f t - c o l o r : # d d d ; 
 	 b o r d e r - t o p - c o l o r : # d d d 
 } 
 
 . b u t t o n   
 {   
     	 p a d d i n g : 1 p x   3 p x   1 p x   4 p x ;   
     	 f o n t - s i z e : 1 e m ;   
     	 f o n t - w e i g h t :   b o l d ; 
     	 c u r s o r : p o i n t e r ;   
     	 b a c k g r o u n d : # 3 b 5 9 9 8 ;   
     	 c o l o r : # f f f ;   
     	 b o r d e r : 1 p x   s o l i d   # 0 e 1 f 5 b ; 
     	 b o r d e r - l e f t - c o l o r : # D 9 D F E A ; 
     	 b o r d e r - t o p - c o l o r : # D 9 D F E A ; 
 } 
 
 . b u t t o n _ s e l e c t e d   
 {   
     	 p a d d i n g : 1 p x   3 p x   1 p x   4 p x ;   
     	 f o n t - s i z e : 1 e m ;   
     	 f o n t - w e i g h t :   b o l d ; 
     	 c u r s o r : p o i n t e r ;   
     	 b a c k g r o u n d : # 6 D 8 4 B 4 ;   
     	 c o l o r : # f f f ;   
     	 b o r d e r : 1 p x   s o l i d   # 0 e 1 f 5 b ; 
     	 b o r d e r - l e f t - c o l o r : # D 9 D F E A ; 
     	 b o r d e r - t o p - c o l o r : # D 9 D F E A ; 
 }   
     < / s t y l e >   
 
 < ! - - e n d   c u s t o m   h e a d e r   c o n t e n t   f o r   t h i s   e x a m p l e - - > 
     ] ] > 
     < / C o n t e n t > 
 < C o n t e n t   t y p e = " h t m l "   v i e w = " p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 < T A B L E   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   c l a s s = " f b "   w i d t h = " 5 0 0 p x " > < T R > < T D > 
 < d i v   c l a s s = " f b 2 p "   w i d t h = " 1 0 0 % " > 
 < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ H O M E ) " > H o m e < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ M Y H I S T O R Y ) ; m a k e M y H i s t o r y P a g e R e q u e s t ( 1 ) " > M y   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ A D D H I S T O R Y ) ; m a k e A d d T o H i s t o r y P a g e R e q u e s t ( ) " > A d d   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ S E A R C H ) " > S e a r c h < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ F R I E N D S H I S T O R Y ) ; m a k e A l l F r i e n d s H i s t o r y P a g e R e q u e s t ( ) " > F r i e n d s   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ C H A T ) " > C h a t < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ I N V I T E ) ; h a n d l e I n v i t e P a g e R e q u e s t ( ) " > I n v i t e < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ F O R U M ) " > F o r u m < / a > 
 < / d i v > < b r > 	 	 
 < T A B L E   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   w i d t h = " 1 0 0 % " > 	 	 
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s " > 
 	 	 	 < ! [ C D A T A [ 
 < T A B L E   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   c l a s s = " f b "   w i d t h = " 7 6 5 p x " > < T R > < T D > 	 
 < d i v   c l a s s = " f b 2 "   w i d t h = " 1 0 0 % " > 
 < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ H O M E ) " > H o m e < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ M Y H I S T O R Y ) ; m a k e M y H i s t o r y P a g e R e q u e s t ( 1 ) " > M y   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ A D D H I S T O R Y ) ; m a k e A d d T o H i s t o r y P a g e R e q u e s t ( ) " > A d d   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ S E A R C H ) " > S e a r c h < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ F R I E N D S H I S T O R Y ) ; m a k e A l l F r i e n d s H i s t o r y P a g e R e q u e s t ( ) " > F r i e n d s   H i s t o r y < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ C H A T ) " > C h a t < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ I N V I T E ) ; h a n d l e I n v i t e P a g e R e q u e s t ( ) " > I n v i t e < / a >   |   < a   h r e f = " j a v a s c r i p t : t a b s e l ( T A B I N D E X _ F O R U M ) " > F o r u m < / a > 
 < / d i v > < b r > 	 
 < d i v   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   a l i g n = " c e n t e r " > 
 < d i v   w i d t h = " 1 0 0 % "   a l i g n = " c e n t e r " > 	 	 	 	 
 	 	 	 < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > < ! - - 
 	 	 	 g o o g l e _ a d _ c l i e n t   =   " p u b - 2 7 0 2 7 3 2 4 6 6 9 1 4 7 5 3 " ; 
 	 	 	 / *   T i t l e   B a r   7 2 8 x 9 0 ,   c r e a t e d   3 / 2 4 / 0 8   * / 
 	 	 	 g o o g l e _ a d _ s l o t   =   " 8 0 9 3 0 2 0 2 1 4 " ; 
 	 	 	 g o o g l e _ a d _ w i d t h   =   7 2 8 ; 
 	 	 	 g o o g l e _ a d _ h e i g h t   =   9 0 ; 
 	 	 	 / / - - > 
 	 	 	 < / s c r i p t > 
 
 	 	 	 < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " 
 	 	 	 s r c = " h t t p : / / p a g e a d 2 . g o o g l e s y n d i c a t i o n . c o m / p a g e a d / s h o w _ a d s . j s " > 
 	 	 	 < / s c r i p t > 
 
 < b r / > 	 	 	 
 < / d i v > 
 < / d i v > 
 < b r / > 
 < T A B L E   b o r d e r = " 0 "   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 "   w i d t h = " 1 0 0 % " > 
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
     < T B O D Y > 
     	 < t r > 
     	 	 < t d > 
     	 	 < d i v   i d = " m e s s a g e B o x " > < / d i v > 
     	 	 < / t d > 
     	 < / t r > 
         < t r   i d = " t r T a b L o a d i n g "   h e i g h t = " 2 0 0 " > 
             < t d > 
                 < d i v   i d = " d i v T a b L o a d i n g "   a l i g n = " c e n t e r "   c l a s s = " f b 6 l a b e l " > 
                     < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / l o a d i n g . g i f "   w i d t h = " 2 0 "   h e i g h t = " 2 0 " / > < b r / > < b r / > 
                                     P l e a s e   w a i t . . . L o a d i n g 
                 < / d i v > 
             < / t d > 
         < / t r > 
         < T R   i d = " t r T a b 0 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 0 "   a l i g n = " C E N T E R " > 
     ] ] > 
     < / C o n t e n t > 
 < C o n t e n t   t y p e = " h t m l "   v i e w = " p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 	 	 	 < t a b l e   w i d t h = " 1 0 0 % "   > 
 	 	 	 < t r > 
 	 	 	 	 < t d   a l i g n = " c e n t e r "   c l a s s = " f b 6 "   c o l s p a n = " 2 " > 
 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / f r e n s . j p g "   / > < b r / > 
 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / w e l c o m e . g i f "   / > < b r / > 
 	 	 	 	 < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 	 < t d   c l a s s = " f b 6 "   w i d t h = " 4 0 % " > 
 	 	 	 	 	 < t a b l e   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   h e i g h t = " 1 0 0 % " > 
 	 	 	 	 	 	 < t r > < t d   c o l s p a n = " 2 "   c l a s s = " f b 1 "   a l i g n = " c e n t e r " > F i n d   M a t e s   b y   N a m e < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d > < i n p u t   t y p e = " t e x t "   i d = " h o m e _ s e a r c h _ m a t e _ n a m e "   s t y l e = " w i d t h : 1 0 0 % "   / > < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d   a l i g n = " c e n t e r "   c o l s p a n = " 2 "   > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " s e a r c h "   o n c l i c k = " h a n d l e O n H o m e P a g e M a t e S e a r c h B y N a m e ( ) "   / > < / t d > < / t r > 
 	 	 	 	 	 < / t a b l e > 
 	 	 	 	 < / t d > 
 	 	 	 	 < t d   c l a s s = " f b 6 "   w i d t h = " 6 0 % " > 
 	 	 	 	 	 < t a b l e   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   h e i g h t = " 1 0 0 % " > 
 	 	 	 	 	 	 < t r > < t d   c o l s p a n = " 2 "   c l a s s = " f b 1 "   a l i g n = " c e n t e r " > F i n d   M a t e s   b y   I n s t i t u t e / W o r k p l a c e < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d > < i n p u t   t y p e = " t e x t "   i d = " h o m e _ s e a r c h _ i n s t _ n a m e "   s t y l e = " w i d t h : 1 0 0 % "   / > < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d   a l i g n = " c e n t e r "   c o l s p a n = " 2 "   > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " s e a r c h "   o n c l i c k = " h a n d l e O n H o m e P a g e M a t e S e a r c h B y I n s t ( ) "   / > < / t d > < / t r > 
 	 	 	 	 	 < / t a b l e > 
 	 	 	 	 < / t d > 
 	 	 	 	 
 	 	 	 < / t r > 
 	 	 	 < / t a b l e > 
     
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s " > 
 	 	 	 < ! [ C D A T A [ 
 	 	 	 < t a b l e   w i d t h = " 1 0 0 % "   > 
 	 	 	 < t r > 
 	 	 	 	 < t d   a l i g n = " c e n t e r "   c l a s s = " f b 6 " > 
 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / f r e n s . j p g "   / > < b r / > 
 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / w e l c o m e . g i f "   / > < b r / > 
 	 	 	 	 < / t d > 
 	 	 	 	 < t d   c l a s s = " f b 6 " > 
 	 	 	 	 	 < t a b l e   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   h e i g h t = " 1 0 0 % " > 
 	 	 	 	 	 	 < t r > < t d   c o l s p a n = " 2 "   c l a s s = " f b 1 "   a l i g n = " c e n t e r " > F i n d   M a t e s   b y   N a m e < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d > < i n p u t   t y p e = " t e x t "   i d = " h o m e _ s e a r c h _ m a t e _ n a m e "   s t y l e = " w i d t h : 1 0 0 % "   / > < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d   a l i g n = " c e n t e r "   c o l s p a n = " 2 "   > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " s e a r c h "   o n c l i c k = " h a n d l e O n H o m e P a g e M a t e S e a r c h B y N a m e ( ) "   / > < / t d > < / t r > 
 	 	 	 	 	 < / t a b l e > < b r / > 
 	 	 	 	 	 < t a b l e   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   h e i g h t = " 1 0 0 % " > 
 	 	 	 	 	 	 < t r > < t d   c o l s p a n = " 2 "   c l a s s = " f b 1 "   a l i g n = " c e n t e r " > F i n d   M a t e s   b y   I n s t i t u t e / W o r k p l a c e < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d > < i n p u t   t y p e = " t e x t "   i d = " h o m e _ s e a r c h _ i n s t _ n a m e "   s t y l e = " w i d t h : 1 0 0 % "   / > < / t d > < / t r > 
 	 	 	 	 	 	 < t r > < t d   a l i g n = " c e n t e r "   c o l s p a n = " 2 "   > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " s e a r c h "   o n c l i c k = " h a n d l e O n H o m e P a g e M a t e S e a r c h B y I n s t ( ) "   / > < / t d > < / t r > 
 	 	 	 	 	 < / t a b l e > 
 	 	 	 	 < / t d > 
 	 	 	 	 
 	 	 	 < / t r > 
 	 	 	 < / t a b l e > 
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [                 
                 < / d i v > 
               < / T D > 
         < / T R > 
         < T R   i d = " t r T a b 1 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 1 "   a l i g n = " C E N T E R " > < / d i v > 
             < / T D > 
         < / T R > 
         < T R   i d = " t r T a b 2 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 2 "   a l i g n = " C E N T E R " > 
                 < / d i v > 
             < / T D > 
         < / T R > 
     ] ] > 
     < / C o n t e n t > 
 < C o n t e n t   t y p e = " h t m l "   v i e w = " p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
         < T R   i d = " t r T a b 3 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 3 "   a l i g n = " C E N T E R " > 
                 	 < f o r m   n a m e = " a d v a n c e _ s e a r c h "   > 
 	 	 	 < s p a n   c l a s s = " f b 6 l a b e l " > N O T E   :   A l l   t h e   f i e l d s   a r e   o p t i o n a l < / s p a n > 
 	 	 	 < t a b l e   c l a s s = " f b 6 " > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > F i r s t   N a m e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ f i r s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > L a s t   N a m e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ l a s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > R o l e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ r o l e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > I n s t / O r g   N a m e   ( P a r t i a l ) : < / t d > < t d > < i n p u t   i d = " s e a r c h _ i n s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > C o u n t r y : < / t d > < t d > < i n p u t   i d = " s e a r c h _ c t r y _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > C i t y : < / t d > < t d > < i n p u t   i d = " s e a r c h _ c i t y _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > F r o m   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ f r o m _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > T o   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ t o _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > B a t c h   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ b a t c h _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c o l s p a n = " 4 "   a l i g n = " c e n t e r " > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " S e a r c h "   o n c l i c k = " h a n d l e O n M e m b e r S e a r c h S u b m i t ( ) "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < / t a b l e > 
 	 	 	 < i n p u t   t y p e = " h i d d e n "   i d = " s e a r c h _ p r i m a r y _ i d "   v a l u e = " "   / > 
 	 	 	 < / f o r m >       
 	 	 	 < d i v   i d = " s e a r c h _ r e s u l t _ d i v "   > < / d i v >           
                 < / d i v > 
             < / T D > 
         < / T R > 
     
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s " > 
 	 	 	 < ! [ C D A T A [ 
         < T R   i d = " t r T a b 3 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 3 "   a l i g n = " C E N T E R " > 
 	 	 	 < f o r m   n a m e = " a d v a n c e _ s e a r c h " > 
 	 	 	 < s p a n   c l a s s = " f b 6 l a b e l " > N O T E   :   A l l   t h e   f i e l d s   a r e   o p t i o n a l < / s p a n > 
 	 	 	 < t a b l e   c l a s s = " f b 6 " > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > F i r s t   N a m e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ f i r s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > L a s t   N a m e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ l a s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > R o l e : < / t d > < t d > < i n p u t   i d = " s e a r c h _ r o l e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > C o u n t r y : < / t d > < t d > < i n p u t   i d = " s e a r c h _ c t r y _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > C i t y : < / t d > < t d > < i n p u t   i d = " s e a r c h _ c i t y _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > I n s t / O r g   N a m e   ( P a r t i a l ) : < / t d > < t d > < i n p u t   i d = " s e a r c h _ i n s t _ n a m e "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > B a t c h   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ b a t c h _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > F r o m   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ f r o m _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > T o   Y e a r : < / t d > < t d > < i n p u t   i d = " s e a r c h _ t o _ y e a r "   t y p e = " t e x t "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < t r > 
 	 	 	 < t d   c o l s p a n = " 6 "   a l i g n = " c e n t e r " > < i n p u t   c l a s s = " b u t t o n "     t y p e = " b u t t o n "   v a l u e = " S e a r c h "   o n c l i c k = " h a n d l e O n M e m b e r S e a r c h S u b m i t ( ) "   / > < / t d > 
 	 	 	 < / t r > 
 	 	 	 < / t a b l e > 
 	 	 	 < i n p u t   t y p e = " h i d d e n "   i d = " s e a r c h _ p r i m a r y _ i d "   v a l u e = " "   / > 
 	 	 	 < / f o r m >       
 	 	 	 < d i v   i d = " s e a r c h _ r e s u l t _ d i v "   > < / d i v >           
                 < / d i v > 
             < / T D > 
         < / T R > 
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 
         < T R   i d = " t r T a b 4 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 4 "   a l i g n = " C E N T E R " > < / d i v > 
             < / T D > 
         < / T R > 
         < T R   i d = " t r T a b 5 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 5 "   a l i g n = " C E N T E R " > 
                 	 < b r / > 
 	 	 	 < d i v   c l a s s = " f b 6 l a b e l " > R o o m s   :   < s e l e c t   i d = " r o o m s "   s t y l e = " w i d t h : 8 0 % " " > 
 	 	 	 < o p t i o n   v a l u e = " 0 " > Y e a r m a t e s   C o m m o n   R o o m < / o p t i o n > 
 	 	 	 < / s e l e c t > 
 	 	 	 < i n p u t   t y p e = " b u t t o n "   c l a s s = " b u t t o n "   v a l u e = "   G o   "   o n c l i c k = " h a n d l e O n R o o m C h a n g e ( ) "   / > 
 	 	 	 < / d i v > 
 	 	 	 < b r / > 
 	 	 	 < t a b l e   w i d t h = " 1 0 0 % "   c l a s s = " f b 6 " > 
 	 	 	 	 < t r > 
 	 	 	 	 	 < t d   c o l s p a n = " 2 " > < / t d > < t d > O n l i n e   M e m b e r s < / t d > 
 	 	 	 	 < / t r > 
 	 	 	 	 < t r > 
 	 	 	 	 	 < t d   h e i g h t = " 2 5 0 p x "   c o l s p a n = " 2 " > 
 	 	 	 	 	 	 < d i v   i d = " c h a t _ a r e a "   c l a s s = " c h a t _ a r e a " > < / d i v > 
 	 	 	 	 	 < / t d > 
 	 	 	 	 	 < t d   h e i g h t = " 2 5 0 p x "   w i d t h = " 1 5 0 p x " > 
 	 	 	 	 	 	 < d i v   i d = " o n l i n e _ a r e a "   c l a s s = " o n l i n e _ a r e a " > < / d i v > 
 	 	 	 	 	 < / t d > 
 	 	 	 	 < / t r > 
 	 	 	 	 < t r > 
 	 	 	 	 	 < t d   v a l i g n = " b o t t o m "   w i d t h = " 1 0 0 p x " > 
 	 	 	 	 	 	 < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " B "   o n c l i c k = " h a n d l e M e s s a g e B o l d C l i c k ( ) "   i d = " m s g _ b o l d "   / > 
 	 	 	 	 	 	 < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " I "     o n c l i c k = " h a n d l e M e s s a g e I t a l i c s C l i c k ( ) "   i d = " m s g _ i t a l i c s "   / > 
 	 	 	 	 	 	 < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " U "     o n c l i c k = " h a n d l e M e s s a g e U n d e r l i n e C l i c k ( ) "   i d = " m s g _ u n d e r l i n e "   / > 
 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / t e s t / i m a g e s / s m i l i e s / s m i l e . p n g "   i d = " s m i l y I m g B u t t o n "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 < / t d > 
     ] ] > 
     < / C o n t e n t > 
 < C o n t e n t   t y p e = " h t m l "   v i e w = " p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 	 	 	 	 	 < t d   w i d t h = " 2 0 0 p x " > 
 	 	 	 	 	 	 < i n p u t   i d = " m s g _ a r e a "   t y p e = " t e x t "   o n k e y p r e s s = " h a n d l e C h a t M e s s a g e I n p u t K e y P r e s s ( e v e n t ) "   s t y l e = " w i d t h : 1 0 0 % "   / > 
 	 	 	 	 	 < / t d > 
 
     
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s " > 
 	 	 	 < ! [ C D A T A [ 
 	 	 	 	 	 < t d   w i d t h = " 5 0 0 p x " > 
 	 	 	 	 	 	 < i n p u t   i d = " m s g _ a r e a "   t y p e = " t e x t "   o n k e y p r e s s = " h a n d l e C h a t M e s s a g e I n p u t K e y P r e s s ( e v e n t ) "   s t y l e = " w i d t h : 1 0 0 % "   / > 
 	 	 	 	 	 < / t d > 
 
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 	 	 	 	 	 
 	 	 	 	 	 < t d   w i d t h = " 1 5 0 p x " > 
 	 	 	 	 	 	 < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " s e n d "   o n c l i c k = " h a n d l e S e n d C h a t M e s s a g e ( ) "   / > 
 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / l o a d i n g . g i f "   a l t = " S e n d i n g . . . "   s t y l e = " v i s i b i l i t y : h i d d e n "   i d = " l o c a l _ l o a d i n g _ c h a t _ m s g " / > < s p a n   i d = " n e x t _ r e f r e s h " > < / s p a n > 
 	 	 	 	 	 < / t d > 
 	 	 	 	 < / t r > 
 	 	 	 < / t a b l e > 
 	 	 	 < d i v   i d = " s m i l i e s "   s t y l e = " d i s p l a y : n o n e ; p o s i t i o n : a b s o l u t e ; l e f t : 2 0 0 p x ; t o p : 3 0 0 p x ; w i d t h : 1 9 2 p x ; b o r d e r - s t y l e :   s o l i d ; b a c k g r o u n d - c o l o r :   w h i t e ; p a d d i n g :   5 p x ; " > 
 	 	 	 	 < t a b l e > 
 	 	 	 	 	 < t r > 
 	 	 	 	 	 	 < t d   v a l i g n = " b o t t o m " > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / a n g r y . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { a n g r y } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / b l i n k . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { b l i n k } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / b l u s h 1 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { b l u s h 1 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / b l u s h 2 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { b l u s h 2 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / b o r e d . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { b o r e d } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / c o n f u s e d . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { c o n f u s e d } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / c o o l . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { c o o l } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / c u r s i n g . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { c u r s i n g } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / d e v i l . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { d e v i l } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / g l a r e . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { g l a r e } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / g r i n 1 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { g r i n 1 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / g r i n 2 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { g r i n 2 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / h a p p y 1 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { h a p p y 1 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / h a p p y 2 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { h a p p y 2 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / h u h . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { h u h } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / k i s s . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { k i s s } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / l a u g h . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { l a u g h } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / m a d . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { m a d } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / m e l l o w . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { m e l l o w } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / o h m y . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { o h m y } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / s a d . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { s a d } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / s l e e p . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { s l e e p } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / s m i l e . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { s m i l e } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / t o n g u e 1 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { t o n g u e 1 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / t o n g u e 2 . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { t o n g u e 2 } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / u n h a p p y . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { u n h a p p y } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / u n s u r e . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { u n s u r e } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / v o m i t . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { v o m i t } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / w i n k . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { w i n k } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 	 < i m g   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / w u b . p n g "   o n c l i c k = " h a n d l e A d d S m i l e y ( ' : { w u b } : ' ) "   s t y l e = " c u r s o r : p o i n t e r ; "   / > 
 	 	 	 	 	 	 < / t d > 
 	 	 	 	 	 < / t r > 
 	 	 	 	 < / t a b l e > 
 	 	 	 < / d i v > 
                 < / d i v > 
               < / T D > 
         < / T R >         
         < T R   i d = " t r T a b 6 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 6 "   a l i g n = " C E N T E R " > < / d i v > 
             < / T D > 
         < / T R > 
         < T R   i d = " t r T a b 7 " > 
             < T D > 
                 < d i v   i d = " d i v T a b 7 "   a l i g n = " C E N T E R " > 
 	 	 	 < t a b l e   c l a s s = " f b 6 "   w i d t h = " 1 0 0 % "   a l i g n = " c e n t e r " > 
 	 	 	 < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > A l l   h e l p   a n d   d i s c u s s i o n   o n   Y e a r m a t e s   c a n   b e   g o t   a t   t h e   Y e a r m a t e s   U s e r s   O r k u t   C o m m u n i t y . < b r / > < b r / > < / t d > 
 	 	 	 < / t r > < t r > 
 	 	 	 < t d   c l a s s = " f b 6 l a b e l " > < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = " C l i c k   h e r e   t o   g o t o   Y e a r m a t e s   U s e r s   O r k u t   C o m m u n i t y "   o n c l i c k = " w i n d o w _ o p e n ( ' h t t p : / / w w w . o r k u t . c o . i n / M a i n # C o m m u n i t y . a s p x ? c m m = 7 4 3 8 4 4 6 1 ' ) "   / > < / t d > 
                 	   < / t r > 
                 	   < / t a b l e > 
                   < / d i v > 
             < / T D > 
         < / T R > 
     < / T B O D Y > 
 < / T A B L E > 
 < b r / > 
 < / T D > < / T R > < / T A B L E > 
     ] ] > 
     < / C o n t e n t > 
 < C o n t e n t   t y p e = " h t m l "   v i e w = " p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 < s c r i p t > 
 v a r   V I E W _ N A M E = ' p r o f i l e ' ; 
 < / s c r i p t >   
     
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s " > 
 	 	 	 < ! [ C D A T A [ 
 < s c r i p t > 
 v a r   V I E W _ N A M E = ' c a n v a s ' ; 
 < / s c r i p t >   
     ] ] > 
     < / C o n t e n t >     
 < C o n t e n t   t y p e = " h t m l "   v i e w = " c a n v a s , p r o f i l e " > 
 	 	 	 < ! [ C D A T A [ 
 < s c r i p t   t y p e = " t e x t / j a v a s c r i p t "   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / j s / y a h o o - d o m - e v e n t . j s " > < / s c r i p t > 
 
 < s c r i p t > 
 v a r   T A B I N D E X _ H O M E = 0 ; 
 
 v a r   T A B I N D E X _ M Y H I S T O R Y = 1 ; 
 v a r   T A B I N D E X _ A D D H I S T O R Y = 2 ; 
 v a r   T A B I N D E X _ S E A R C H = 3 ; 
 v a r   T A B I N D E X _ F R I E N D S H I S T O R Y = 4 ; 
 v a r   T A B I N D E X _ C H A T = 5 ; 
 v a r   T A B I N D E X _ I N V I T E = 6 ; 
 v a r   T A B I N D E X _ F O R U M = 7 ; 
 
 
 / / v a r   V I E W _ N A M E = ' c a n v a s ' ; 
 
 v a r   l a s t _ m s g _ t i m e = " " ; 
 v a r   t r L o a d i n g = ' t r T a b ' + T A B I N D E X _ H O M E ; 
 v a r   l o c a l L o a d i n g I m g I d = ' ' ; 
 v a r   v i e w e r = n u l l ; 
 v a r   v i e w e r F r i e n d s = n u l l ; 
 v a r   v i e w e r F r i e n d s B y I d =   { } ; 
 
 v a r   V I E W E R _ D I S P L A Y _ N A M E = n u l l ; 
 v a r   V I E W E R _ T H U M B N A I L _ U R L = n u l l ; 
 v a r   V I E W E R _ P R O F I L E _ U R L   = n u l l ; 
 v a r   V I E W E R _ U S E R _ I D = n u l l ; 
 
 
 v a r   o w n e r = n u l l ; 
 v a r   o w n e r F r i e n d s = n u l l ; 
 v a r   o w n e r F r i e n d s B y I d =   { } ; 
 
 v a r   O W N E R _ D I S P L A Y _ N A M E = n u l l ; 
 v a r   O W N E R _ T H U M B N A I L _ U R L = n u l l ; 
 v a r   O W N E R _ P R O F I L E _ U R L   = n u l l ; 
 v a r   O W N E R _ U S E R _ I D = n u l l ; 
 
 v a r   V I E W E R _ I D E N T I T Y = n u l l ; / / O W N E R , R E G I S T E R E D _ G U E S T , U N R E G I S T E R E D _ G U E S T 
 
 v a r   v i e w e r I s O w n e r = f a l s e ; 
 v a r   v i e w e r R e g S t a t u s = ' U N R E G I S T E R E D ' ; 
 
 
 
 
 v a r   s i n g l e F r i e n d P r i m a r y I d = ' ' ; 
 
 
 
 / / M E S S A G E   A R E A   D E T A I L S 
 v a r   i s B o l d S e l e c t e d = f a l s e ; 
 v a r   i s U n d e r l i n e S e l e c t e d = f a l s e ; 
 v a r   i s I t a l i c s S e l e c t e d = f a l s e ; 
 
 
 
 
 / / v a r   t a b s   =   n e w   g a d g e t s . T a b S e t ( _ _ M O D U L E _ I D _ _ ,   " H o m e " ) ; 
 / / t a b s . a l i g n T a b s ( " l e f t " ) ; 
 v a r   m s g b o x   =   n e w   g a d g e t s . M i n i M e s s a g e ( _ _ M O D U L E _ I D _ _ , d o c u m e n t . g e t E l e m e n t B y I d ( " m e s s a g e B o x " ) ) ; 
 / / v a r   m s g b o x   =   n e w   g a d g e t s . M i n i M e s s a g e ( _ _ M O D U L E _ I D _ _ ) ; 
 
 v a r   s e c s ; 
 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 ; 
 v a r   d e l a y   =   1 0 0 0 ; 
 
 f u n c t i o n   I n i t i a l i z e T i m e r ( ) 
 { 
         / /   S e t   t h e   l e n g t h   o f   t h e   t i m e r ,   i n   s e c o n d s 
         s e c s   =   1 5 ; 
         S t o p T h e C l o c k ( ) ; 
         S t a r t T h e T i m e r ( ) ; 
 } 
 
 f u n c t i o n   S t o p T h e 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 t a r t T h e T i m e r ( ) 
 { 
         i f   ( s e c s = = 0 ) 
         { 
                 S t o p T h e C l o c k ( ) ; 
                 
                 m a k e C h a t R o o m D e t a i l s R e q u e s t ( ) ; 
                 / /   H e r e ' s   w h e r e   y o u   p u t   s o m e t h i n g   u s e f u l   t h a t ' s 
                 / /   s u p p o s e d   t o   h a p p e n   a f t e r   t h e   a l l o t t e d   t i m e . 
                 / /   F o r   e x a m p l e ,   y o u   c o u l d   d i s p l a y   a   m e s s a g e : 
                 / / a l e r t ( " Y o u   h a v e   j u s t   w a s t e d   1 0   s e c o n d s   o f   y o u r   l i f e . " ) 
                 / / s e c s = 4 ; 
                 / / S t a r t T h e T i m e r ( ) ; 
                 I n i t i a l i z e T i m e r ( ) ; 
         } 
         e l s e 
         { 
         	 d o c u m e n t . g e t E l e m e n t B y I d ( " n e x t _ r e f r e s h " ) . i n n e r H T M L = s e c s ; 
                 s e l f . s t a t u s   =   s e c s ; 
                 s e c s   =   s e c s   -   1 ; 
                 t i m e r R u n n i n g   =   t r u e ; 
                 t i m e r I D   =   s e l f . s e t T i m e o u t ( " S t a r t T h e T i m e r ( ) " ,   d e l a y ) ; 
         } 
 } 
 
 
 
 
 
 
 
 
 g a d g e t s . u t i l . r e g i s t e r O n L o a d H a n d l e r ( o n L o a d H a n d l e r ) ; 
 
 f u n c t i o n   o n L o a d H a n d l e r ( )   { 
         
 	 i n i t ( ) ; 
         
 } 
 
 f u n c t i o n   i n i t ( ) 
 { 
 	 s h o w L o a d i n g ( ' t r T a b ' + T A B I N D E X _ H O M E ) ; 	 
 	 / / a l e r t ( 1 ) ; 
 	 / / h i d e T R ( ' e r r m s g t r ' ) ; 
 	 / / h i d e T R ( ' w a r n m s g t r ' ) ; 
 	 / / h i d e T R ( ' i n f o m s g t r ' ) ; 
 	 t a b s e l ( T A B I N D E X _ H O M E ) ; 
 	 / / t a b i n i t ( ) ; 
 	 r e q u e s t V i e w e r s D a t a ( ) ; 
 	 
 	 
 	 
 	 h i d e T R ( ' t r T a b L o a d i n g ' ) ; 
 } 
 
     f u n c t i o n   t a b s e l ( t a b n u m ) 
     { 
         v a r   p r e f = " t r T a b " ; 
         v a r   t r i d = " " ; 
         v a r   t d p r e f i x = " t d T a b " ; 
         v a r   t d i d = " " ; 
       / / s h o w I n f o ( p r e f + t a b n u m + "   l o a d e d " ) ; 
         f o r ( v a r   i = 0 ; i < = 7 ; i + + ) 
         { 
             i f ( i = = t a b n u m ) 
             { 
                 t r i d = p r e f + t a b n u m ; 
                 t d i d = t d p r e f i x + t a b n u m ; 
 	 	 
                 d o c u m e n t . g e t E l e m e n t B y I d ( t r i d ) . s t y l e . d i s p l a y = ' ' ; 
                 / / d o c u m e n t . g e t E l e m e n t B y I d ( t d i d ) . s t y l e . b a c k g r o u n d C o l o r = ' # D 4 D 0 C 8 ' ; 
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( t d i d ) . s t y l e . c o l o r = ' B L A C K ' ; 
 	 	 
             } 
             e l s e 
             { 
                 t r i d = p r e f + i ; 
                 t d i d = t d p r e f i x + i ; 
                 
                 d o c u m e n t . g e t E l e m e n t B y I d ( t r i d ) . s t y l e . d i s p l a y = ' n o n e ' ; 
                 / / d o c u m e n t . g e t E l e m e n t B y I d ( t d i d ) . s t y l e . b a c k g r o u n d C o l o r = ' # 6 F 9 7 C B ' ; 
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( t d i d ) . s t y l e . c o l o r = ' W H I T E ' ; 
                 
             } 
         } 
         a d j u s t H e i g h t ( ) ; 
 
     } 
     
       
     
     f u n c t i o n   h i d e T R ( t r i d ) 
     { 
     	 d o c u m e n t . g e t E l e m e n t B y I d ( t r i d ) . s t y l e . d i s p l a y = ' n o n e ' ; 
         a d j u s t H e i g h t ( ) ; 
     } 
 
 
     f u n c t i o n   h i d e M s g ( m s g i d ) 
     { 
     	 d o c u m e n t . g e t E l e m e n t B y I d ( m s g i d ) . s t y l e . d i s p l a y = ' n o n e ' ; 
         a d j u s t H e i g h t ( ) ; 
     } 
 
     f u n c t i o n   s h o w I n f o ( m s g ) 
     { 
         / / d o c u m e n t . g e t E l e m e n t B y I d ( " i n f o m s g t r " ) . s t y l e . d i s p l a y = ' ' ; 
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( " i n f o m s g d i v " ) . i n n e r H T M L = m s g ; 
 	 
 	 v a r   s t a t u s M s g   =   m s g b o x . c r e a t e D i s m i s s i b l e M e s s a g e ( m s g ) ; 
     	 / /   C h a n g e   t h e   m e s s a g e ' s   b a c k g r o u n d   c o l o r   t o   r e d 
     	 / / s t a t u s M s g . s t y l e . b a c k g r o u n d C o l o r   =   " # 6 F 9 7 C B " ; 
     	 / / s t a t u s M s g . s t y l e . c o l o r   =   " W H I T E " ; 
 	 s t a t u s M s g . c l a s s N a m e   =   " f b I n f o " ; 
 	 a d j u s t H e i g h t ( ) ; 
     } 
     f u n c t i o n   s h o w E r r o r ( m s g ) 
     { 
         / / d o c u m e n t . g e t E l e m e n t B y I d ( " e r r m s g t r " ) . s t y l e . d i s p l a y = ' ' ; 
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( " e r r m s g d i v " ) . i n n e r H T M L = m s g ; 
 	 
 	 
 	 v a r   s t a t u s M s g   =   m s g b o x . c r e a t e D i s m i s s i b l e M e s s a g e ( m s g ) ; 
     	 / /   C h a n g e   t h e   m e s s a g e ' s   b a c k g r o u n d   c o l o r   t o   r e d 
     	 / / s t a t u s M s g . s t y l e . b a c k g r o u n d C o l o r   =   " r e d " ; 
     	 / / s t a t u s M s g . s t y l e . c o l o r   =   " w h i t e " ; 
     	 s t a t u s M s g . c l a s s N a m e   =   " f b 4 " ; 
 	 a d j u s t H e i g h t ( ) ; 
     
     } 
     f u n c t i o n   s h o w W a r n i n g ( m s g ) 
     { 
         / / d o c u m e n t . g e t E l e m e n t B y I d ( " w a r n m s g t r " ) . s t y l e . d i s p l a y = ' ' ; 
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( " w a r n m s g d i v " ) . i n n e r H T M L = m s g ; 
 	 
 	 	 v a r   s t a t u s M s g   =   m s g b o x . c r e a t e D i s m i s s i b l e M e s s a g e ( m s g ) ; 
     	 / /   C h a n g e   t h e   m e s s a g e ' s   b a c k g r o u n d   c o l o r   t o   r e d 
     	 / / s t a t u s M s g . s t y l e . b a c k g r o u n d C o l o r   =   " l i g h t g r e e n " ; 
     	 / / s t a t u s M s g . s t y l e . c o l o r   =   " d a r k g r e e n " ; 
 	 s t a t u s M s g . c l a s s N a m e   =   " f b 5 " ; 
 	 
 	 a d j u s t H e i g h t ( ) ; 
     } 
     f u n c t i o n   a d j u s t H e i g h t ( ) 
     { 
         g a d g e t s . w i n d o w . a d j u s t H e i g h t ( ) ; 
     } 
     
     f u n c t i o n   r e q u e s t V i e w e r s D a t a ( )   
     { 
         v a r   o p t _ p a r a m s   =   { } ; 
 
 
 	   v a r   f i e l d s   =   [ ] ; 
 	   f i e l d s . p u s h ( o p e n s o c i a l . P e r s o n . F i e l d . I D ) ;   
 	   f i e l d s . p u s h ( o p e n s o c i a l . P e r s o n . F i e l d . N A M E ) ; 
 	   f i e l d s . p u s h ( o p e n s o c i a l . P e r s o n . F i e l d . P R O F I L E _ U R L ) ;   
 	   f i e l d s . p u s h ( o p e n s o c i a l . N a m e . F i e l d . G I V E N _ N A M E ) ; 
 
 
 
 	 o p t _ p a r a m s [ o p e n s o c i a l . D a t a R e q u e s t . P e o p l e R e q u e s t F i e l d s . P R O F I L E _ D E T A I L S ] =   [ o p e n s o c i a l . P e r s o n . F i e l d . P R O F I L E _ U R L , o p e n s o c i a l . P e r s o n . F i e l d . N A M E , o p e n s o c i a l . N a m e . F i e l d . G I V E N _ N A M E , o p e n s o c i a l . N a m e . F i e l d . F A M I L Y _ N A M E ] ; 
     
         v a r   p a r a m s   =   {   } ; 
         p a r a m s [ o p e n s o c i a l . D a t a R e q u e s t . P e o p l e R e q u e s t F i e l d s . F I L T E R ]   =   o p e n s o c i a l . D a t a R e q u e s t . F i l t e r T y p e . A L L ; 
     	 p a r a m s [ o p e n s o c i a l . D a t a R e q u e s t . P e o p l e R e q u e s t F i e l d s . M A X ]   =   1 0 0 ; 
     
     
         v a r   r e q = o p e n s o c i a l . n e w D a t a R e q u e s t ( ) ; 
         
         r e q . a d d ( r e q . n e w F e t c h P e r s o n R e q u e s t ( o p e n s o c i a l . D a t a R e q u e s t . P e r s o n I d . V I E W E R , o p t _ p a r a m s ) ,   " v i e w e r " ) ; 
 
 	 r e q . a d d ( r e q . n e w F e t c h P e r s o n R e q u e s t ( o p e n s o c i a l . D a t a R e q u e s t . P e r s o n I d . O W N E R , o p t _ p a r a m s ) ,   " o w n e r " ) ; 
         
         
         / / r e q . a d d ( r e q . n e w F e t c h P e r s o n R e q u e s t ( " V I E W E R " ) ,   " v i e w e r " ) ; 
         r e q . a d d ( r e q . n e w F e t c h P e o p l e R e q u e s t ( ' V I E W E R _ F R I E N D S ' , p a r a m s ) ,   ' v i e w e r F r i e n d s ' ) ; 
         / / r e q . a d d ( r e q . n e w F e t c h P e r s o n R e q u e s t ( " O W N E R " ) ,   " o w n e r " ) ; 
         r e q . a d d ( r e q . n e w F e t c h P e o p l e R e q u e s t ( ' O W N E R _ F R I E N D S ' , p a r a m s ) ,   ' o w n e r F r i e n d s ' ) ; 
         
         r e q . s e n d ( h a n d l e V i e w e r s D a t a R e s p o n s e ) ; 
         s h o w L o a d i n g ( ' t r T a b ' + T A B I N D E X _ H O M E ) ; 
     } 
 
     f u n c t i o n   h a n d l e V i e w e r s D a t a R e s p o n s e ( d a t a )   
     { 
     	 h i d e L o a d i n g ( ) ; 
             v i e w e r   =   d a t a . g e t ( " v i e w e r " ) . g e t D a t a ( ) ; 
             
             o w n e r   =   d a t a . g e t ( " o w n e r " ) . g e t D a t a ( ) ; 
 
             i f ( o w n e r ! = n u l l & & o w n e r ! = = u n d e f i n e d ) 
             { 
 	             O W N E R _ D I S P L A Y _ N A M E = o w n e r . g e t D i s p l a y N a m e ( ) ; 
 	             O W N E R _ T H U M B N A I L _ U R L = o w n e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . T H U M B N A I L _ U R L ) ; 
 	             O W N E R _ P R O F I L E _ U R L   =   o w n e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . P R O F I L E _ U R L ) ; 
 	             
 	             v a r   r e g e x   = / u i d = ( [ ^ & a m p ; a m p ; # ] + ) / ; 
 	             v a r   r e s u l t   =   O W N E R _ P R O F I L E _ U R L . m a t c h ( r e g e x ) ; 
 	             i f   ( r e s u l t . l e n g t h   = =   2 )   
 	             { 
 	                     O W N E R _ U S E R _ I D   =   r e s u l t [ 1 ] ; 
 	                 / *   u i d   n o w   c o n t a i n s   t h e   v i e w e r & a m p ; a p o s ; s   o r k u t   U I D   * / 
 	             }   e l s e   
 	             { 
 	                     / *   t h e r e   w a s   a   p r o b l e m   g e t t i n g   t h e   U I D   * / 
 	                       O W N E R _ U S E R _ I D = n u l l ; 
 	             } 
 	             / / s h o w I n f o ( " O W N E R _ U S E R _ I D   :   " + O W N E R _ U S E R _ I D ) ; 
 	             
 	             o w n e r F r i e n d s   =   d a t a . g e t ( " o w n e r F r i e n d s " ) . g e t D a t a ( ) . a s A r r a y ( )   | |   [ ] ; 
 	 	 	 f o r   ( v a r   i = 0 ;   i < o w n e r F r i e n d s . l e n g t h ;   + + i )   { 
             	 	 	 o w n e r F r i e n d s B y I d [ o w n e r F r i e n d s [ i ] . g e t I d ( ) ]   =   o w n e r F r i e n d s [ i ] ; 
         	 	 } 	 
 	             
 	             
             } 
 
 
             
             i f ( v i e w e r = = n u l l | | v i e w e r = = u n d e f i n e d ) 
             { 
 	 	 V I E W E R _ I D E N T I T Y = " U N R E G I S T E R E D _ G U E S T " ;             	 
             	 s h o w W a r n i n g ( " Y o u   h a v e   n o t   a d d e d   t h e   a p p l i c a t i o n   t o   y o u r   p r o f i l e .   Y o u   w i l l   n o t   b e   a b l e   t o   u s e   m a n y   f e a t u r e s   o f   t h e   a p p l i c a t i o n . " ) ; 
             } 
             e l s e 
             { 
             	 i f ( v i e w e r . g e t I d ( ) = = o w n e r . g e t I d ( ) ) 
             	 { 
             	 	 V I E W E R _ I D E N T I T Y = " O W N E R " ; 
             	 	 v i e w e r I s O w n e r = t r u e ; 
             	 	 / / c h e c k   w h e t h e r   u s e r   i n   d b   o r   n o t 
             	 	 
 	             V I E W E R _ D I S P L A Y _ N A M E = v i e w e r . g e t D i s p l a y N a m e ( ) ; 
 	             V I E W E R _ T H U M B N A I L _ U R L = v i e w e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . T H U M B N A I L _ U R L ) ; 
 	             V I E W E R _ P R O F I L E _ U R L   =   v i e w e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . P R O F I L E _ U R L ) ; 
             	 	 
             	 	 / / s h o w I n f o ( " V I E W E R _ D I S P L A Y _ N A M E   : " + V I E W E R _ D I S P L A Y _ N A M E ) ; 
             	 	 / / s h o w I n f o ( " V I E W E R _ T H U M B N A I L _ U R L   : " + V I E W E R _ T H U M B N A I L _ U R L ) ; 
             	 	 / / s h o w I n f o ( " V I E W E R _ P R O F I L E _ U R L   : " + V I E W E R _ P R O F I L E _ U R L ) ; 
             	 	 
             	 	 
 	 	             v a r   r e g e x   = / u i d = ( [ ^ & a m p ; a m p ; # ] + ) / ; 
 	 	             v a r   r e s u l t   =   V I E W E R _ P R O F I L E _ U R L . m a t c h ( r e g e x ) ; 
 	 	             i f   ( r e s u l t . l e n g t h   = =   2 )   
 	 	             { 
 	 	                     V I E W E R _ U S E R _ I D   =   r e s u l t [ 1 ] ; 
 	 	                 / *   u i d   n o w   c o n t a i n s   t h e   v i e w e r & a m p ; a p o s ; s   o r k u t   U I D   * / 
 	 	             }   e l s e   
 	 	             { 
 	 	                     / *   t h e r e   w a s   a   p r o b l e m   g e t t i n g   t h e   U I D   * / 
 	 	                       V I E W E R _ U S E R _ I D = n u l l ; 
 	 	             } 
 	 	             / / s h o w I n f o ( " V I E W E R _ U S E R _ I D   :   " + V I E W E R _ U S E R _ I D ) ; 
 	 	             
 	 	             
             	 	 
             	 	 
             	 	 r e q u e s t V i e w e r V a l i d a t e ( ) ; 
             	 } 
             	 e l s e 
             	 { 
             	 	 V I E W E R _ I D E N T I T Y = " R E G I S T E R E D _ G U E S T " ; 
             	 	 v i e w e r I s O w n e r = f a l s e ; 
             	 	 s h o w W a r n i n g ( " Y o u   a r e   n o t   t h e   o w n e r   o f   t h e   a p p .   Y o u   w i l l   n o t   b e   a b l e   t o   u s e   m a n y   f e a t u r e s   o f   t h e   a p p l i c a t i o n . " ) ; 
             	 	 
             	 } 
             	 v a r   n a m e o b j = v i e w e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . N A M E ) ; 
             	 / / s h o w I n f o ( " V i e w e r   N a m e :   " + n a m e o b j ) ; 
             	 / / s h o w I n f o ( " O w n e r   I D :   " + o w n e r . g e t I d ( ) + " \ n V i e w e r   i d :   " + n a m e o b j . g e t F i e l d ( o p e n s o c i a l . N a m e . F i e l d . G I V E N _ N A M E ) ) ; / / + . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . G E N D E R ) ) ; 
             	 
             	 v i e w e r F r i e n d s   =   d a t a . g e t ( " v i e w e r F r i e n d s " ) . g e t D a t a ( ) . a s A r r a y ( )   | |   [ ] ; 
 	 	 f o r   ( v a r   i = 0 ;   i < v i e w e r F r i e n d s . l e n g t h ;   + + i )   { 
             	 	 v i e w e r F r i e n d s B y I d [ v i e w e r F r i e n d s [ i ] . g e t I d ( ) ]   =   v i e w e r F r i e n d s [ i ] ; 
           	 } 	 
             	 
             	 
 	 
             } 
     } 
 
 f u n c t i o n   r e q u e s t V i e w e r V a l i d a t e ( )   
 { 
 	 / / s h o w I n f o ( ' V i e w e r   I d   :   ' + v i e w e r . g e t I d ( ) ) ; 
 	 v a r   n a m e o b j = o w n e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . N A M E ) ; 
 	 v a r   f i r s t _ n a m e = n a m e o b j . g e t F i e l d ( o p e n s o c i a l . N a m e . F i e l d . G I V E N _ N A M E ) ; 
 	 v a r   l a s t _ n a m e = n a m e o b j . g e t F i e l d ( o p e n s o c i a l . N a m e . F i e l d . F A M I L Y _ N A M E ) ; 
 	 
 	 v a r   p a r a m s   =   { } ; 
 	 v a r   p o s t d a t a   =   { 
 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 d o m a i n _ u s e r _ i d   :   o w n e r . g e t I d ( ) , 
 	 	 	 f i r s t _ n a m e : f i r s t _ n a m e , 
 	 	 	 l a s t _ n a m e : l a s t _ n a m e , 
 	 	 	 V I E W E R _ D I S P L A Y _ N A M E : V I E W E R _ D I S P L A Y _ N A M E , 
 	 	 	 V I E W E R _ T H U M B N A I L _ U R L : V I E W E R _ T H U M B N A I L _ U R L , 
 	 	 	 V I E W E R _ P R O F I L E _ U R L : V I E W E R _ P R O F I L E _ U R L , 
 	 	 	 V I E W E R _ U S E R _ I D : V I E W E R _ U S E R _ I D 
 	 	 } ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / c h e c k _ v i e w e r . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e V i e w e r V a l i d a t e R e s p o n s e ,   p a r a m s ) ; 
 	 s h o w L o a d i n g ( ' t r T a b ' + T A B I N D E X _ H O M E ) ; 
 } 
 
 f u n c t i o n   h a n d l e V i e w e r V a l i d a t e R e s p o n s e ( d a t a )   
 { 
     	 h i d e L o a d i n g ( ) ; 
     	 / / s h o w I n f o ( d a t a . t e x t ) ; 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v i e w e r R e g S t a t u s = r e s p . V I E W E R _ S T A T U S ; 
     	 	 / / s h o w I n f o ( " V I E W E R   S T A T U S   : " + r e s p . V I E W E R _ S T A T U S ) ; 
     	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " c h a t _ a r e a " ) . i n n e r H T M L = r e s p . W E L C O M E ; 
     	 	 
     	 	 m a k e E n t e r C h a t R o o m M e s s a g e R e q u e s t ( ) ; 
     	 	 m a k e C h a t R o o m D e t a i l s R e q u e s t ( ) ; 
     	 } 
     	 e l s e   i f ( r e s p . R E Q _ S T A T U S = = ' E R R O R ' ) 
     	 { 
     	 	 s h o w E r r o r ( r e s p . E R R O R ) ; 
     	 } 
     	 e l s e   
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   c h e c k   V i e w e r   R e g i s t e r a t i o n   S t a t u s " ) ; 
     	 } 
 } 
             
 f u n c t i o n   s h o w L o a d i n g ( t r l o a d ) 
 { 
 	 t r L o a d i n g = t r l o a d ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( t r l o a d ) . s t y l e . d i s p l a y = ' n o n e ' ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t r T a b L o a d i n g " ) . s t y l e . d i s p l a y = ' ' ; 
 	 
 	 
         f o r ( v a r   i = 0 ; i < = 7 ; i + + ) 
         { 
         	 v a r   t a b n u m = " " + i ; 
         	 v a r   p r e f = " t r T a b " ; 
         	 v a r   t r i d = p r e f + t a b n u m ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( t r i d ) . s t y l e . d i s p l a y = ' n o n e ' ; 
         } 
 	 a d j u s t H e i g h t ( ) ; 
 }   
 
 f u n c t i o n   h i d e L o a d 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 ( t r L o a d i n g ) . s t y l e . d i s p l a y = ' ' ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " t r T a b L o a d i n g " ) . s t y l e . d i s p l a y = ' n o n e ' ; 
 	 a d j u s t H e i g h t ( ) ; 
 	 
 }             
 
 f u n c t i o n   m a k e A d d T o H i s t o r y P a g e R e q u e s t ( )   
 { 
 	 v a r   p a r a m s   =   { } ; 
 	 v a r   p o s t d a t a   =   { 
 	 	 V I E W _ N A M E : V I E W _ N A M E 
 	 } ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ t o _ h i s t o r y _ p a g e . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d T o H i s t o r y P a g e R e s p o n s e ,   p a r a m s ) ; 
 	 s h o w L o a d i n g ( ' t r T a b ' + T A B I N D E X _ A D D H I S T O R Y ) ; 
 } 
 
 f u n c t i o n   h a n d l e A d d T o H i s t o r y P a g e R e s p o n s e ( d a t a )   
 { 
     	 
     	 / / a l e r t ( d a t a . t e x t ) ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v T a b ' + T A B I N D E X _ A D D H I S T O R Y ) . i n n e r H T M L = d a t a . t e x t ; 
 	 a d j u s t H e i g h t ( ) ; 
 	 h i d e L o a d i n g ( ) ; 
 	 t a b s e l ( T A B I N D E X _ A D D H I S T O R Y ) ; 
 } 
 
 f u n c t i o n   m a k e M y H i s t o r y P a g e R e q u e s t ( p a g e )   
 { 
 
 	 v a r   p a r a m s   =   { } ; 
 	 v a r   p o s t d a t a   =   { 
 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 d o m a i n _ u s e r _ i d   :   o w n e r . g e t I d ( ) , 
 	 	 	 p a g e : p a g e 
 	 	 } ; 
 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / m y h i s t o r y . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e M y H i s t o r y P a g e R e s p o n s e ,   p a r a m s ) ; 
 	 s h o w L o a d i n g ( " t r T a b " + T A B I N D E X _ M Y H I S T O R Y ) ; 
 
 } 
 
 f u n c t i o n   h a n d l e M y H i s t o r y P a g e R e s p o n s e ( d a t a )   
 { 
     	 
     	 / / a l e r t ( d a t a . t e x t ) ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v T a b ' + T A B I N D E X _ M Y H I S T O R Y ) . i n n e r H T M L = d a t a . t e x t ; 
 	 a d j u s t H e i g h t ( ) ; 
 	 h i d e L o a d i n g ( ) ; 
 	 t a b s e l ( T A B I N D E X _ M Y H I S T O R Y ) ; 
 } 
 
 f u n c t i o n   m a k e R e m o v e F r o m M y H i s t o r y R e q u e s t ( h i s t o r y _ c o d e )   
 { 
 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   o w n e r . g e t I d ( ) , 
 	 	 	 	 h i s t o r y _ c o d e : h i s t o r y _ c o d e 
 	 	 	 } ; 
 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / m y h i s t o r y . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e M y H i s t o r y P a g e R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o a d i n g ( " t r T a b " + T A B I N D E X _ M Y H I S T O R Y ) ; 
 	 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " T o   p e r f o r m   t h i s   a c t i o n   y o u   s h o u l d   b e   o w n e r   o f   t h e   a p p . " ) ; 
 	 } 	 
 } 
 
 
 f u n c t i o n   m a k e S i n g l e F r i e n d s H i s t o r y P a g e R e q u e s t ( p r i m a r y I d ) 
 { 
 	 s i n g l e F r i e n d P r i m a r y I d = p r i m a r y I d ; 
 	 m a k e F r i e n d s H i s t o r y P a g e R e q u e s t ( 1 ) ; 
 } 
 
 f u n c t i o n   m a k e A l l F r i e n d s H i s t o r y P a g e R e q u e s t ( ) 
 { 
 	 s i n g l e F r i e n d P r i m a r y I d = ' ' ; 
 	 m a k e F r i e n d s H i s t o r y P a g e R e q u e s t ( 1 ) ; 
 } 
 
 f u n c t i o n   m a k e F r i e n d s H i s t o r y P a g e R e q u e s t ( p a g e )   
 { 
 	 	 i f ( s i n g l e F r i e n d P r i m a r y I d = = ' ' & & o w n e r F r i e n d s ! = n u l l & & o w n e r F r i e n d s ! = u n d e f i n e d   & &   o w n e r F r i e n d s . l e n g t h   >   0   ) 
 	 	 { 
 	 	 	 v a r   f r i e n d s _ i d _ s t r = ' o r k u t _ ' + o w n e r F r i e n d s [ 0 ] . g e t I d ( ) ; 
 	 	 	 / / a l e r t ( " f r i e n d s _ i d _ s t r : " + f r i e n d s _ i d _ s t r ) ; 
 	 	 	 i f ( o w n e r F r i e n d s . l e n g t h >   1 ) 
 	 	 	 { 
 	 	 	         f o r   ( v a r   i = 1 ;   i   <   o w n e r F r i e n d s . l e n g t h ;   + + i )   { 
 	 	 	         	 f r i e n d s _ i d _ s t r = f r i e n d s _ i d _ s t r + ' , o r k u t _ ' + o w n e r F r i e n d s [ i ] . g e t I d ( ) ; 
 	 	 	         } 
 	 	 	         
 	 	 	 } 
 	 
 	 	 	 v a r   p a r a m s   =   { } ; 
 	 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 	 f r i e n d s _ i d _ s t r : f r i e n d s _ i d _ s t r , 
 	 	 	 	 	 p a g e : p a g e 
 	 	 	 	 } ; 
 	 	 	 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / f r i e n d s _ s e a r c h . p h p " ; 
 	 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e F r i e n d s H i s t o r y P a g e R e s p o n s e ,   p a r a m s ) ; 
 	 	 	 s h o w L o a d i n g ( " t r T a b " + T A B I N D E X _ F R I E N D S H I S T O R Y ) ; 
 	 	 } 
 	 	 e l s e   
 	 	 { 
 	 	 	 v a r   f r i e n d s _ i d _ s t r = s i n g l e F r i e n d P r i m a r y I d ; 
 	 
 	 	 	 v a r   p a r a m s   =   { } ; 
 	 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 	 f r i e n d s _ i d _ s t r : f r i e n d s _ i d _ s t r , 
 	 	 	 	 	 p a g e : p a g e 
 	 	 	 	 } ; 
 	 	 	 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / f r i e n d s _ s e a r c h . p h p " ; 
 	 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e F r i e n d s H i s t o r y P a g e R e s p o n s e ,   p a r a m s ) ; 
 	 	 	 s h o w L o a d i n g ( " t r T a b " + T A B I N D E X _ F R I E N D S H I S T O R Y ) ; 
 	 	 } 
 
 
 } 
 
 f u n c t i o n   h a n d l e F r i e n d s H i s t o r y P a g e R e s p o n s e ( d a t a )   
 { 
     	 
     	 / / a l e r t ( d a t a . t e x t ) ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v T a b ' + T A B I N D E X _ F R I E N D S H I S T O R Y ) . i n n e r H T M L = d a t a . t e x t ; 
 	 a d j u s t H e i g h t ( ) ; 
 	 h i d e L o a d i n g ( ) ; 
 	 t a b s e l ( T A B I N D E X _ F R I E N D S H I S T O R Y ) ; 
 } 
 
 f u n c t i o n   h a n d l e O n H o m e P a g e M a t e S e a r c h B y N a m e ( ) 
 { 
 	 t a b s e l ( T A B I N D E X _ S E A R C H ) ; 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ p r i m a r y _ i d ' ) . v a l u e = " " ; 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f i r s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ l a s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ r o l e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c t r y _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c i t y _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ i n s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ b a t c h _ y e a r ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f r o m _ y e a r ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ t o _ y e a r ' ) . v a l u e = " " ; 
 
 	 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f i r s t _ n a m e ' ) . v a l u e = d o c u m e n t . g e t E l e m e n t B y I d ( ' h o m e _ s e a r c h _ m a t e _ n a m e ' ) . v a l u e ; 
 	 h a n d l e O n M e m b e r S e a r c h S u b m i t ( ) ; 
 } 
 
 f u n c t i o n   h a n d l e O n H o m e P a g e M a t e S e a r c h B y I n s t ( ) 
 { 
 	 t a b s e l ( T A B I N D E X _ S E A R C H ) ; 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ p r i m a r y _ i d ' ) . v a l u e = " " ; 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f i r s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ l a s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ r o l e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c t r y _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c i t y _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ i n s t _ n a m e ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ b a t c h _ y e a r ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f r o m _ y e a r ' ) . v a l u e = " " ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ t o _ y e a r ' ) . v a l u e = " " ; 
 
 	 
 	 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ i n s t _ n a m e ' ) . v a l u e = d o c u m e n t . g e t E l e m e n t B y I d ( ' h o m e _ s e a r c h _ i n s t _ n a m e ' ) . v a l u e ; 
 	 h a n d l e O n M e m b e r S e a r c h S u b m i t ( ) ; 
 } 
 
 f u n c t i o n   h a n d l e O n M e m b e r S e a r c h S u b m i t ( ) 
 { 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ p r i m a r y _ i d ' ) . v a l u e = ' ' ; 
 	 m a k e M e m b e r S e a r c h R e q u e s t ( 1 ) 
 	 
 } 
 
 f u n c t i o n   m a k e M e m b e r S e a r c h R e q u e s t ( p a g e )   
 { 
 
 	 v a r   s e a r c h _ p r i m a r y _ i d = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ p r i m a r y _ i d ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ f i r s t _ n a m e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f i r s t _ n a m e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ l a s t _ n a m e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ l a s t _ n a m e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ r o l e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ r o l e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ c t r y _ n a m e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c t r y _ n a m e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ c i t y _ n a m e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ c i t y _ n a m e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ i n s t _ n a m e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ i n s t _ n a m e ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ b a t c h _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ b a t c h _ y e a r ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ f r o m _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ f r o m _ y e a r ' ) . v a l u e ) ; 
 	 v a r   s e a r c h _ t o _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ t o _ y e a r ' ) . v a l u e ) ; 
 	 
 	 v a r   p o s t d a t a   =   { 
 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 p a g e : p a g e , 
 	 	 	 s e a r c h _ p r i m a r y _ i d : s e a r c h _ p r i m a r y _ i d , 
 	 	 	 s e a r c h _ f i r s t _ n a m e : s e a r c h _ f i r s t _ n a m e , 
 	 	 	 s e a r c h _ l a s t _ n a m e : s e a r c h _ l a s t _ n a m e , 
 	 	 	 s e a r c h _ r o l e : s e a r c h _ r o l e , 
 	 	 	 s e a r c h _ c t r y _ n a m e : s e a r c h _ c t r y _ n a m e , 
 	 	 	 s e a r c h _ c i t y _ n a m e : s e a r c h _ c i t y _ n a m e , 
 	 	 	 s e a r c h _ i n s t _ n a m e : s e a r c h _ i n s t _ n a m e , 
 	 	 	 s e a r c h _ b a t c h _ y e a r : s e a r c h _ b a t c h _ y e a r , 
 	 	 	 s e a r c h _ f r o m _ y e a r : s e a r c h _ f r o m _ y e a r , 
 	 	 	 s e a r c h _ t o _ y e a r : s e a r c h _ t o _ y e a r 
 	 	 	 
 	 	 } ; 
 
 
 
 	 v a r   p a r a m s   =   { } ; 
 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / m e m b e r _ s e a r c h . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e M e m b e r S e a r c h R e s p o n s e ,   p a r a m s ) ; 
 	 / / s h o w L o a d i n g ( " s e a r c h _ r e s u l t _ d i v " ) ; 
 	 s h o w L o a d i n g ( " t r T a b " + T A B I N D E X _ S E A R C H ) ; 
 } 
 
 f u n c t i o n   h a n d l e M e m b e r S e a r c h R e s p o n s e ( d a t a )   
 { 
     	 
     	 / / a l e r t ( d a t a . t e x t ) ; 
     	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ r e s u l t _ d i v ' ) . i n n e r H T M L = d a t a . t e x t ; 
 	 a d j u s t H e i g h t ( ) ; 
 	 h i d e L o a d i n g ( ) ; 
 	 t a b s e l ( T A B I N D E X _ S E A R C H ) ; 
 } 
 
 
 f u n c t i o n   m a k e H i s t o r y R e q u e s t ( p r i m a r y _ i d )   
 { 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' s e a r c h _ p r i m a r y _ i d ' ) . v a l u e = p r i m a r y _ i d ; 
 	 m a k e M e m b e r S e a r c h R e q u e s t ( 1 ) ; 
 	 
 } 
 
 
 
 f u n c t i o n   h a n d l e H i s t o r y T y p e C h a n g e ( ) 
 { 
 	 v a r   h i s t o r y T y p e V a l = d o c u m e n t . g e t E l e m e n t B y I d ( ' h i s t o r y _ t y p e ' ) . v a l u e ; 
 	 v a r   s p l i t s t r = h i s t o r y T y p e V a l . s p l i t ( " : " ) ; 
 	 v a r   r o l e s a r r = s p l i t s t r [ 1 ] . s p l i t ( " _ " ) ; 
 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' r o l e ' ) ; 
 	 e l S e l . o p t i o n s . l e n g t h = 0 ; 
 	 f o r ( v a r   i = 0 ; i < r o l e s a r r . l e n g t h ; i + + ) 
 	 { 
 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 e l O p t N e w . t e x t   =   r o l e s a r r [ i ] ; 
         	 e l O p t N e w . v a l u e   =     r o l e s a r r [ i ] ; 
         	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( r o l e s a r r [ i ] ,   r o l e s a r r [ i ] ) ; 
 	 } 
 } 
   
 f u n c t i o n   h a n d l e C o u n t r y C h a n g e ( ) 
 { 
 	 v a r   c o u n t r y C o d e V a l = d o c u m e n t . g e t E l e m e n t B y I d ( ' c o u n t r y ' ) . v a l u e ; 
 	 m a k e C o u n t r y C h a n g e R e q u e s t ( c o u n t r y C o d e V a l )   ; 
 } 
 
 f u n c t i o n   m a k e C o u n t r y C h a n g e R e q u e s t ( c o u n t r y C o d e V a l )   
 { 
 	 v a r   p a r a m s   =   { } ; 
 	 v a r   p o s t d a t a   =   { 
 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 c o u n t r y _ c o d e : c o u n t r y C o d e V a l 
 	 	 } ; 
 	 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / c i t y _ f o r _ c o u n t r y . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e C o u n t r y C h a n g e R e s p o n s e ,   p a r a m s ) ; 
 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c i t y ' ) ; 
 } 
 
 f u n c t i o n   h a n d l e C o u n t r y C h a n g e R e s p o n s e ( d a t a )   
 { 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v a r   c i t y s t r = r e s p . C I T I E S ; 
     	 	 v a r   c i t y a r r = c i t y s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < c i t y a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   c i t y = c i t y a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( c i t y [ 1 ] , c i t y [ 0 ] ) ; 
     	 	 } 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   l o a d   c i t y   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c i t y ' ) ; 
 } 
 
 f u n c t i o n   h a n d l e C i t y C h a n g e ( ) 
 { 
 	 v a r   c i t y C o d e V a l = d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) . v a l u e ; 
 
 	 v a r   i n s t _ t y p e _ s t r = d o c u m e n t . g e t E l e m e n t B y I d ( ' h i s t o r y _ t y p e ' ) . v a l u e ; 
 	 v a r   i n s t _ t y p e _ a r r = i n s t _ t y p e _ s t r . s p l i t ( " : " ) ; 
 	 v a r   i n s t _ t y p e = i n s t _ t y p e _ a r r [ 0 ] ; 
 	 v a r   i n s t T y p e = Y A H O O . l a n g . t r i m ( i n s t _ t y p e _ a r r [ 0 ] ) ; 
 	 
 	 m a k e C i t y C h a n g e R e q u e s t ( c i t y C o d e V a l , i n s t T y p e )   ; 
 } 
 
 f u n c t i o n   m a k e C i t y C h a n g e R e q u e s t ( c i t y C o d e V a l , i n s t T y p e )   
 { 
 	 v a r   p a r a m s   =   { } ; 
 	 v a r   p o s t d a t a   =   { 
 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 c i t y _ c o d e : c i t y C o d e V a l , 
 	 	 	 i n s t _ t y p e : i n s t T y p e 
 	 	 } ; 
 	 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / i n s t _ f o r _ c i t y . p h p " ; 
 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e C i t y C h a n g e R e s p o n s e ,   p a r a m s ) ; 
 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ i n s t ' ) ; 
 } 
 
 f u n c t i o n   h a n d l e C i t y C h a n g e R e s p o n s e ( d a t a )   
 { 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v a r   i n s t s t r = r e s p . I N S T I T U T E S ; 
     	 	 v a r   i n s t a r r = i n s t s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' i n s t ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < i n s t a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   i n s t = i n s t a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( i n s t [ 1 ] , i n s t [ 0 ] ) ; 
     	 	 } 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   l o a d   c i t y   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ i n s t ' ) ; 
 } 
 
     
 f u n c t i o n   s h o w L o c a l L o a d i n g ( l o a d i n g I m g I d ) 
 { 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l o a d i n g I m g I d ) . s t y l e . v i s i b i l i t y = ' ' ; 
 }   
 
 f u n c t i o n   h i d e L o c a l L o a d i n g ( l o a d i n g I m g I d ) 
 { 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( l o a d i n g I m g I d ) . s t y l e . v i s i b i l i t y = ' h i d d e n ' ; 
 }       
 
 
 f u n c t i o n   m a k e A d d C o u n t r y R e q u e s t ( )   
 { 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 	 	 v a r   n e w _ c o u n t r y _ n a m e = d o c u m e n t . g e t E l e m e n t B y I d ( ' n e w _ c o u n t r y _ n a m e ' ) . v a l u e ; 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 c o u n t r y _ n a m e : n e w _ c o u n t r y _ n a m e 
 	 	 	 } ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ c o u n t r y . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d C o u n t r y R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c o u n t r y ' ) ; 
 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " Y o u   s h o u l d   b e   t h e   o w n e r   o f   t h e   a p p l i c a t i o n   t o   p e r f o r m   t h i s   a c t i o n . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   h a n d l e A d d C o u n t r y R e s p o n s e ( d a t a )   
 { 
     	 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v a r   c t r y s t r = r e s p . C O U N T R I E S ; 
     	 	 v a r   c t r y a r r = c t r y s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' c o u n t r y ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < c t r y a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   c t r y = c t r y a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( c t r y [ 1 ] , c t r y [ 0 ] ) ; 
     	 	 } 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   a d d   c o u n t r y   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c o u n t r y ' ) ; 
 } 
 
 f u n c t i o n   m a k e A d d C i t y R e q u e s t ( )   
 { 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 
 	 	 v a r   n e w _ c i t y _ n a m e = d o c u m e n t . g e t E l e m e n t B y I d ( ' n e w _ c i t y _ n a m e ' ) . v a l u e ; 
 	 	 v a r   c t r y _ c o d 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 u n t r y ' ) . v a l u e ; 
 	 	 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 c i t y _ n a m e : n e w _ c i t y _ n a m e , 
 	 	 	 	 c o u n t r y _ c o d e : c t r y _ c o d e 
 	 	 	 } ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ c i t y . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d C i t y R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c i t y ' ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " Y o u   s h o u l d   b e   t h e   o w n e r   o f   t h e   a p p l i c a t i o n   t o   p e r f o r m   t h i s   a c t i o n . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   h a n d l e A d d C i t y R e s p o n s e ( d a t a )   
 { 
     	 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v a r   c i t y s t r = r e s p . C I T I E S ; 
     	 	 v a r   c i t y a r r = c i t y s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < c i t y a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   c i t y = c i t y a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( c i t y [ 1 ] , c i t y [ 0 ] ) ; 
     	 	 } 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   a d d   c i t y   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c i t y ' ) ; 
 } 
 
 f u n c t i o n   m a k e A d d I n s t R e q u e s t ( )   
 { 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 	 	 v a r   n e w _ i n s t _ n a m e = d o c u m e n t . g e t E l e m e n t B y I d ( ' n e w _ i n s t _ n a m e ' ) . v a l u e ; 
 	 	 v a r   c i t y _ c o d e = d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) . v a l u e ; 
 	 	 
 	 	 
 	 	 v a r   i n s t _ t y p e _ s t r = d o c u m e n t . g e t E l e m e n t B y I d ( ' h i s t o r y _ t y p e ' ) . v a l u e ; 
 	 	 v a r   i n s t _ t y p e _ a r r = i n s t _ t y p e _ s t r . s p l i t ( " : " ) ; 
 	 	 v a r   i n s t _ t y p e = i n s t _ t y p e _ a r r [ 0 ] ; 
 	 	 
 	 	 
 	 	 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 i n s t _ n a m e : n e w _ i n s t _ n a m e , 
 	 	 	 	 i n s t _ t y p e : i n s t _ t y p e , 
 	 	 	 	 c i t y _ c o d e : c i t y _ c o d e 
 	 	 	 } ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ i n s t i t u t e . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d I n s t R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ i n s t ' ) ; 
 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " Y o u   s h o u l d   b e   t h e   o w n e r   o f   t h e   a p p l i c a t i o n   t o   p e r f o r m   t h i s   a c t i o n . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   h a n d l e A d d I n s t R e s p o n s e ( d a t a )   
 { 
     	 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
     	 	 v a r   i n s t s t r = r e s p . I N S T I T U T E S ; 
     	 	 v a r   i n s t a r r = i n s t s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' i n s t ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < i n s t a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   i n s t = i n s t a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( i n s t [ 1 ] , i n s t [ 0 ] ) ; 
     	 	 } 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   a d d   i n s t i t u t e / o r g a n i z a t i o n   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ i n s t ' ) ; 
 } 
 
 f u n c t i o n   v a l i d a t e A d d H i s t o r y R e q u e s t ( ) 
 { 
 	 / / v a r   i n s t _ t y p e _ s t r = d o c u m e n t . g e t E l e m e n t B y I d ( ' h i s t o r y _ t y p e ' ) . v a l u e ; 
 	 / / v a r   i n s t _ t y p e _ a r r = i n s t _ t y p e _ s t r . s p l i t ( " : " ) ; 
 	 / / v a r   i n s t _ t y p e = i n s t _ t y p e _ a r r [ 0 ] ; 
 	 / / v a r   i n s t _ t y p e = Y A H O O . l a n g . t r i m ( i n s t _ t y p e _ a r r [ 0 ] ) ; 
 	 
 	 
 	 
 	 v a r   r o l e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' r o l e ' ) . v a l u e ) ; 
 	 / / v a r   c o u n t r y _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' c o u n t r y ' ) . v a l u e ) ; 
 	 / / v a r   c i t y _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) . v a l u e ) ; 
 	 v a r   i n s t _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' i n s t ' ) . v a l u e ) ; 
 	 v a r   f r o m _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' f r o m _ y e a r ' ) . v a l u e ) ; 
 	 v a r   t o _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t o _ y e a r ' ) . v a l u e ) ; 
 	 v a r   b a t c h _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' b a t c h _ y e a r ' ) . v a l u e ) ; 
 	 v a r   o t h e r _ d e t a i l s = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' o t h e r _ d e t a i l s ' ) . v a l u e ) ; 
 	 
 	 / / a l e r t ( " i n s t _ t y p e   : " + i n s t _ t y p e + " \ n r o l e : " + r o l e + " \ n c o u n t r y _ c o d e : " + c o u n t r y _ c o d e + " \ n c i t y _ c o d e : " + c i t y _ c o d e + " \ n i n s t _ c o d e : " + i n s t _ c o d e + " \ n f r o m _ y e a r : " + f r o m _ y e a r + " \ n t o _ y e a r : " + t o _ y e a r + " \ n b a t c h _ y e a r : " + b a t c h _ y e a r + " \ n o t h e r _ d e t a i l s : " + o t h e r _ d e t a i l s ) ; 
 	 
 	 v a r   m s g = " " ; 
 	 v a r   v a l i d = " t r u e " ; 
 	 / / i f ( i n s t _ t y p e = = u n d e f i n e d | | i n s t _ t y p e = = ' ' | | r o l e = = u n d e f i n e d | | r o l e = = ' ' | | c o u n t r y _ c o d e = = u n d e f i n e d | | c o u n t r y _ c o d e = = ' ' | | c i t y _ c o d e = = u n d e f i n e d | | c i t y _ c o d e = = ' ' | | i n s t _ c o d e = = u n d e f i n e d | | i n s t _ c o d e = = ' ' | | f r o m _ y e a r = = u n d e f i n e d | | f r o m _ y e a r = = ' ' | | t o _ y e a r = = u n d e f i n e d | | t o _ y e a r = = ' ' | | b a t c h _ y e a r = = u n d e f i n e d | | b a t c h _ y e a r = = ' ' ) 
 	 
 	 i f ( r o l e = = u n d e f i n e d | | r o l e = = ' ' | | i n s t _ c o d e = = u n d e f i n e d | | i n s t _ c o d e = = ' ' | | f r o m _ y e a r = = u n d e f i n e d | | f r o m _ y e a r = = ' ' | | t o _ y e a r = = u n d e f i n e d | | t o _ y e a r = = ' ' | | b a t c h _ y e a r = = u n d e f i n e d | | b a t c h _ y e a r = = ' ' ) 
 	 { 
 	 	 v a l i d = " f a l s e " ; 
 	 	 m s g = m s g + " P l e a s e   e n t e r   a l l   t h e   m a n d a t o r y   f i e l d s . " ; 
 	 } 
 	 
 	 i f ( t o _ y e a r < f r o m _ y e a r | | b a t c h _ y e a r < f r o m _ y e a r ) 
 	 { 
 	 	 v a l i d = " f a l s e " ; 
 	 	 m s g = m s g + " T o   Y e a r   a n d   B a t c h   Y e a r   s h o u l d   n o t   b e   l e s s   t h a n   F r o m   Y e a r . " ; 
 	 } 
 	 
 	 i f ( v i e w e r = = n u l l | | v i e w e r = = u n d e f i n e d ) 
 	 { 
 	 	 v a l i d = " f a l s e " ; 
 	 	 m s g = m s g + " G u e s t   u s e r   c a n n o t   p e r f o r m   t h i s   a c t i o n . " ; 
 	 	 
 	 } 
 	 	 
 	 i f ( v a l i d = = ' t r u e ' ) 
 	 { 
 	 	 r e t u r n   " t r u e " ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 r e t u r n   m s g ; 
 	 } 
 	 
 } 
 
 f u n c t i o n   m a k e A d d H i s t o r y R e q u e s t ( )   
 { 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 
 
 	 	 v a r   v a l i d = v a l i d a t e A d d H i s t o r y R e q u e s t ( ) ; 
 	 	 
 	 	 i f ( v a l i d ! = ' t r u e ' ) 
 	 	 { 
 	 	 
 	 	 	 s h o w E r r o r ( v a l i d ) ; 
 	 	 	 r e t u r n ; 
 	 	 } 
 	 	 
 	 	 
 	 	 / / v a r   i n s t _ t y p e _ s t r = d o c u m e n t . g e t E l e m e n t B y I d ( ' h i s t o r y _ t y p e ' ) . v a l u e ; 
 	 	 / / v a r   i n s t _ t y p e _ a r r = i n s t _ t y p e _ s t r . s p l i t ( " : " ) ; 
 	 	 / / v a r   i n s t _ t y p e = i n s t _ t y p e _ a r r [ 0 ] ; 
 	 	 / / v a r   i n s t _ t y p e = Y A H O O . l a n g . t r i m ( i n s t _ t y p e _ a r r [ 0 ] ) ; 
 	 
 	 	 v a r   r o l e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' r o l e ' ) . v a l u e ) ; 
 	 	 / / v a r   c o u n t r y _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' c o u n t r y ' ) . v a l u e ) ; 
 	 	 / / v a r   c i t y _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' c i t y ' ) . v a l u e ) ; 
 	 	 v a r   i n s t _ c o d e = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' i n s t ' ) . v a l u e ) ; 
 	 	 v a r   f r o m _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' f r o m _ y e a r ' ) . v a l u e ) ; 
 	 	 v a r   t o _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t o _ y e a r ' ) . v a l u e ) ; 
 	 	 v a r   b a t c h _ y e a r = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' b a t c h _ y e a r ' ) . v a l u e ) ; 
 	 	 v a r   o t h e r _ d e t a i l s = Y A H O O . l a n g . t r i m ( d o c u m e n t . g e t E l e m e n t B y I d ( ' o t h e r _ d e t a i l s ' ) . v a l u e ) ; 	 
 	 	 
 	 	 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 r o l e : r o l e , 
 	 	 	 	 i n s t _ c o d e : i n s t _ c o d e , 
 	 	 	 	 f r o m _ y e a r : f r o m _ y e a r , 
 	 	 	 	 t o _ y e a r : t o _ y e a r , 
 	 	 	 	 b a t c h _ y e a r : b a t c h _ y e a r , 
 	 	 	 	 o t h e r _ d e t a i l s : o t h e r _ d e t a i l s 
 	 	 	 } ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ h i s t o r y . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d H i s t o r y R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ a d d b t n ' ) ; 
 	 	 
 	 	 v a r   s e l = d o c u m e n t . g e t E l e m e n t B y I d ( " i n s t " ) ; 
 	 	 v a r   o p t t x t = s e l . o p t i o n s [ s e l . s e l e c t e d I n d e x ] . t e x t ; 
 	 	 v a r   i n s t _ n a m e = Y A H O O . l a n g . t r i m ( o p t t x t ) ; 
 	 	 p o s t A c t i v i t y ( "   h a s   j o i n e d   a   n e w   i n s t i t u t e / w o r k p l a c e   w i t h   n a m e   [ " + i n s t _ n a m e + " ] "   ) ; 
 	 	 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " Y o u   s h o u l d   b e   t h e   o w n e r   o f   t h e   a p p l i c a t i o n   t o   p e r f o r m   t h i s   a c t i o n . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   h a n d l e A d d H i s t o r y R e s p o n s e ( d a t a )   
 { 
     	 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
 	 	 s h o w I n f o ( " A d d e d   t o   H i s t o r y   S u c c e s s f u l l y . " ) ; 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   a d d   t o   h i s t o r y   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ a d d b t n ' ) ; 
 } 
 
 
 
         / /   I n i t i a l i z e   t a b s ,   d e s i g n a t e   t h e   t a b   n a m e d   " T w o "   a s 
         / /   t h e   t a b   s e l e c t e d   b y   d e f a u l t . 
         
 f u n c t i o n   h a n d l e S e n d C h a t M e s s a g e ( ) 
 { 
 	 v a r   s = d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L ; 
 	 v a r   m s g = d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ a r e a ' ) . v a l u e ; 
 
 
 	 
 	 
 	 s = s + 	 ' < s p a n   c l a s s = " s m a l l _ f o n t " > [ 1 8 : 3 9 : 4 9 ] < / s p a n >   < s p a n   c l a s s = " s m a l l _ f o n t " > < b > t t q q q q t t < / b > < / s p a n > :   ' + m s g + ' < b r > ' ; 
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L = s ; 
 	 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . s c r o l l T o p = d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . s c r o l l H e i g h t ; 
 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . s c r o d l l B o t o o m = 0 ; 
 	 m a k e A d d C h a t M e s s a g e R e q u e s t ( ) ; 
 	 / / m a k e C h a t R o o m D e t a i l s R e q u e s t ( ) ; 
 	 
 } 
 
 f u n c t i o n   m a k e E n t e r C h a t R o o m M e s s a g e R e q u e s t ( )   
 { 
 	 i f ( v i e w e r ! = n u l l | | v i e w e r ! = u n d e f i n e d ) 
 	 { 
 	 	 / / a l e r t ( 1 ) ; 
 	 	 v a r   m s g = " e n t e r e d   t h e   r o o m . " ; 
 	 	 v a r   r o o m _ c o d e = d o c u m e n t . g e t E l e m e n t B y I d ( ' r o o m s ' ) . v a l u e ; 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 c h a t _ m e s s a g e   :   m s g , 
 	 	 	 	 r o o m _ c o d e   :   r o o m _ c o d e 
 	 	 	 } ; 
 	 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ c h a t _ m e s s a g e . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d C h a t M e s s a g e R e s p o n s e ,   p a r a m s ) ; 
 	 	 / / s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c h a t _ m s g ' ) ; 
 	 	 
 	 	 i f ( r o o m _ c o d e ! = ' 0 ' ) 
 	 	 { 
 	 	 	 v a r   s e l = d o c u m e n t . g e t E l e m e n t B y I d ( " r o o m s " ) ; 
 	 	 	 v a r   o p t t x t = s e l . o p t i o n s [ s e l . s e l e c t e d I n d e x ] . t e x t ; 
 	 	 	 v a r   r o o m = Y A H O O . l a n g . t r i m ( o p t t x t ) ; 
 	 	 	 v a r   t x t = "   i s   n o w   c h a t t i n g   i n   r o o m   [ " + r o o m + " ]   a t   Y E A R M A T E S   i n   O r k u t " ; 
 	 	 	 p o s t A c t i v i t y ( t x t ) ; 
 	 	 } 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " T o   p e r f o r m   t h i s   a c t i o n   y o u   w i l l   h a v e   t o   a d d   t h e   a p p l i c a t i o n   t o   y o u r   p r o f i l e   b y   c l i c k i n g   o n   a d d   a p p l i c a t i o n   a t   t h e   b o t t o m . " ) ; 
 	 } 	 
 	 
 	 
 } 
 
 
 f u n c t i o n   m a k e A d d C h a t M e s s a g e R e q u e s t ( )   
 { 
 	 i f ( v i e w e r ! = n u l l | | v i e w e r ! = u n d e f i n e d ) 
 	 { 
 	 	 v a r   m s g = d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ a r e a ' ) . v a l u e ; 
 	 	 
 	 	 
 	 	 i f ( i s B o l d S e l e c t e d ) 
 	 	 { 
 	 	 	 m s g = " < b > " + m s g + " < / b > " ; 
 	 	 } 
 	 	 i f ( i s I t a l i c s S e l e c t e d ) 
 	 	 { 
 	 	 	 m s g = " < i > " + m s g + " < / i > " ; 
 	 	 } 
 	 	 i f ( i s U n d e r l i n e S e l e c t e d ) 
 	 	 { 
 	 	 	 m s g = " < u > " + m s g + " < / u > " ; 
 	 	 } 
 	 	 
 	 	 
 	 	 
 	 	 v a r   r o o m _ c o d e = d o c u m e n t . g e t E l e m e n t B y I d ( ' r o o m s ' ) . v a l u e 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 c h a t _ m e s s a g e   :   m s g , 
 	 	 	 	 r o o m _ c o d e   :   r o o m _ c o d e 
 	 	 	 } ; 
 	 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ c h a t _ m e s s a g e . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e A d d C h a t M e s s a g e R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c h a t _ m s g ' ) ; 
 	 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " T o   p e r f o r m   t h i s   a c t i o n   y o u   w i l l   h a v e   t o   a d d   t h e   a p p l i c a t i o n   t o   y o u r   p r o f i l e   b y   c l i c k i n g   o n   a d d   a p p l i c a t i o n   a t   t h e   b o t t o m . " ) ; 
 	 } 	 
 	 
 } 
 
 f u n c t i o n   h a n d l e A d d C h a t M e s s a g e R e s p o n s e ( d a t a )   
 { 
     	 / / s h o w W a r n i n g ( " h a n d l e A d d C h a t M e s s a g e R e s p o n s e   :   " + d a t a . t e x t ) ; 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
 	 	 
 	 	 v a r   m s g _ t i m e = r e s p . M S G _ T I M E ; 
 	 	 l a s t _ m s g _ t i m e = m s g _ t i m e ; 
 	 	 v a r   m s g = r e s p . M E S S A G E ; 
 	 	 
 	 	 m s g = m s g . r e p l a c e ( / : { / g , " < i m g   s r c = h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / " ) ; 
 	 	 m s g = m s g . r e p l a c e ( / } : / g , " . p n g   / > " ) ; 
 	 	 
 	 	 
 	 	 v a r   n a m e o b j = v i e w e r . g e t F i e l d ( o p e n s o c i a l . P e r s o n . F i e l d . N A M E ) ; 
             	 / / v a r   n a m e = n a m e o b j . g e t F i e l d ( o p e n s o c i a l . N a m e . F i e l d . G I V E N _ N A M E ) + "   " + n a m e o b j . g e t F i e l d ( o p e n s o c i a l . N a m e . F i e l d . F A M I L Y _ N A M E ) ; 
             	 
             	 v a r   n a m e = v i e w e r . g e t D i s p l a y N a m e ( ) ; 
 	 
 	 	 v a r   s = d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L ; 
 	 	 s = s + 	 ' < s p a n   c l a s s = " s m a l l _ f o n t " > [ ' + m s g _ t i m e + ' ] < / s p a n >   < s p a n   c l a s s = " s m a l l _ f o n t " > < b > ' + n a m e + ' < / b > < / s p a n >   :   ' + m s g + ' < b r > ' ; 	 	 
 	 	 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L = s ; 
 	 	 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ a r e a ' ) . v a l u e = ' ' ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . s c r o l l T o p = d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . s c r o l l H e i g h t ; 
 	 	 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " E r r o r   w h i l e   r e t r i e v i n g   c h a t   r o o m   d e t a i l s . . . . " + r e s p . E R R O R ) ; 
     	 	 s h o w E r r o r ( " R e t v a l   :   " + r e s p . r e t v a l ) ; 
     	 } 
     	 
     	 h i d e L o c a l L o a d i n g ( ' l o c a l _ l o a d i n g _ c h a t _ m s g ' ) ; 
 	 
 } 
 
 
 f u n c t i o n   m a k e C h a t R o o m D e t a i l s R e q u e s t ( )   
 { 
 	 i f ( v i e w e r ! = n u l l | | v i e w e r ! = u n d e f i n e d ) 
 	 { 
 	 	 v a r   r o o m _ c o d e = d o c u m e n t . g e t E l e m e n t B y I d ( ' r o o m s ' ) . v a l u e ; 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 i n s t _ c o d e : r o o m _ c o d e , 
 	 	 	 	 l a s t _ m s g _ t i m e : l a s t _ m s g _ t i m e 
 	 	 	 } ; 
 	 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / g e t _ c h a t _ r o o m _ d e t a i l s . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e C h a t R o o m D e t a i l s R e s p o n s e ,   p a r a m s ) ; 
 	 } 
 } 
 
 f u n c t i o n   h a n d l e C h a t R o o m D e t a i l s R e s p o n s e ( d a t a )   
 { 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
 	 	 / / s h o w I n f o ( " D e t a i l s   r e t r i e v e d   s u c c e s s f u l l y . " ) ; 
 	 	 
 	 	 / / a d d   o p t i o n   t o   t h e   d r o p   d o w n 
     	 	 v a r   i n s t s t r = r e s p . R O O M S ; 
     	 	 v a r   i n s t a r r = i n s t s t r . s p l i t ( " : " ) ; 
     	 	 
 	 	 v a r   e l S e l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' r o o m s ' ) ; 
 	 	 e l S e l . o p t i o n s . l e n g t h = 0 ;     	 	 
     	 	 
     	 	 f o r ( v a r   i = 0 ; i < i n s t a r r . l e n g t h ; i + + ) 
     	 	 { 
     	 	 	 v a r   i n s t = i n s t a r r [ i ] . s p l i t ( " _ " ) ; 
 	 	 	 v a r   e l O p t N e w   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 	 	 	 e l S e l . o p t i o n s [ i ] = n e w   O p t i o n ( i n s t [ 1 ] , i n s t [ 0 ] ) ; 
     	 	 } 
     	 	 
     	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' r o o m s ' ) . v a l u e = r e s p . i n s t _ c o d e ; 
 	 	 
 	 	 / / u p d a t e   r o o m   m e s s a g e 
 	 	 v a r   m e s s a g e s = r e s p . M E S S A G E S ; 
 	 	 
 	 	 v a r   s = d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L ; 
 	 	 f o r ( v a r   i = 0 ; i < r e s p . M E S S A G E _ C O U N T ; i + + ) 
 	 	 { 
 	 	 	 v a r   s e n d e r s _ i d = m e s s a g e s [ i ] . p r i m a r y _ i d ; 
 	 	 	 i f ( s e n d e r s _ i d ! = ' o r k u t _ ' + v i e w e r . g e t I d ( ) ) 
 	 	 	 { 
 	 	 	 	 / / s h o w I n f o ( " S e n d e r s   I D : " + s e n d e r s _ i d + " \ n P r i m a r y   I d : " + v i e w e r . g e t I d ( ) ) ; 
 	 	 	 	 v a r   m s g _ t i m e = m e s s a g e s [ i ] . m s g _ t i m e ; 
 	 	 	 	 l a s t _ m s g _ t i m e = m s g _ t i m e ; 
 	 	 	 	 / / v a r   n a m e = m e s s a g e s [ i ] . f i r s t _ n a m e + "   " + m e s s a g e s [ i ] . l a s t _ n a m e ; 
 	 	 	 	 v a r   n a m e = m e s s a g e s [ i ] . d i s p l a y _ n a m e ; 
 	 	 	 	 
 	 	 	 	 v a r   m s g = m e s s a g e s [ i ] . m e s s a g e ; 
 	 	 	 	 m s g = m s g . r e p l a c e ( / : { / g , " < i m g   s r c = h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / i m a g e s / s m i l i e s / " ) ; 
 	 	 	 	 m s g = m s g . r e p l a c e ( / } : / g , " . p n g   / > " ) ; 
 	 	 	 	 
 	 	 	 
 	 	 	 	 s = s + 	 ' < s p a n   c l a s s = " o t h e r s _ m e s s a g e " > [ ' + m s g _ t i m e + ' ]   ' + n a m e + '   :   ' + m s g + ' < b r > ' ; 
 	 	 	 } 	 	 
 	 	 	 
 	 	 	 
 	 	 } 
 	 	 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' c h a t _ a r e a ' ) . i n n e r H T M L = s ; 
 	 	 
 	 	 / / o n l i n e   m e m b e r s 
 	 	 v a r   o n l i n e _ m e m b e r s = r e s p . O N L I N E _ M E M B E R S ; 
 	 	 
 	 	 v a r   s = " " ; / / d o c u m e n t . g e t E l e m e n t B y I d ( ' o n l i n e _ a r e a ' ) . i n n e r H T M L ; 
 	 	 f o r ( v a r   i = 0 ; i < r e s p . O N L I N E _ M E M B E R S _ C O U N T ; i + + ) 
 	 	 { 
 	 	 	 	 / / s h o w I n f o ( " S e n d e r s   I D : " + s e n d e r s _ i d + " \ n P r i m a r y   I d : " + v i e w e r . g e t I d ( ) ) ; 
 	 	 	 	 / / v a r   n a m e = o n l i n e _ m e m b e r s [ i ] . f i r s t _ n a m e + "   " + o n l i n e _ m e m b e r s [ i ] . l a s t _ n a m e ; 
 	 	 	 	 / / s = s + 	 ' < b > ' + n a m e + ' < / b > < b r > ' ; 
 	 	 	 	 
 	 	 	 	 v a r   n a m e = o n l i n e _ m e m b e r s [ i ] . d i s p l a y _ n a m e ; 
 	 	 	 	 s = s + 	 ' < a   h r e f = " ' + o n l i n e _ m e m b e r s [ i ] . p r o f i l e _ u r l + ' "   > ' + n a m e + ' < / a > < b r > ' ; 
 	 	 	 	 
 	 	 } 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' o n l i n e _ a r e a ' ) . i n n e r H T M L = s ; 
 	 	 
 	 	 I n i t i a l i z e T i m e r ( ) ; 
 	 	 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " E r r o r   w h i l e   r e t r i e v i n g   c h a t   r o o m   d e t a i l s . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 
 } 
 
 f u n c t i o n   h a n d l e O n R o o m C h a n g e ( ) 
 { 
 	 / / c l e a r   t h e   c h a t   a r e a 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " c h a t _ a r e a " ) . i n n e r H T M L = " " ; 
 	 
 	 / / s e n d   a   e n t e r e d   r o o m   m e s s a g e 
 	 m a k e E n t e r C h a t R o o m M e s s a g e R e q u e s t ( ) ; 
 	 
 	 
 } 
 f u n c t i o n   h a n d l e C h a t M e s s a g e I n p u t K e y P r e s s ( e ) { 
         v a r   k e y = e . k e y C o d e   | |   e . w h i c h ; 
         i f   ( k e y = = 1 3 ) { 
             h a n d l e S e n d C h a t M e s s a g e ( ) ; 
         } 
 } 
 
 f u n c t i o n   s e n d M e s s a g e T o M a t e ( i d ) 
 { 
 	 / / v a r   m e s s a g e   =   " P l e a s e   E n t e r   y o u r   m e s s a g e   h e r e   : " ; 
 	 / / v a r   u s e r _ n a m e   =   " " ; 
 	 / / v a r   r e t u r n _ v a l u e   =   p r o m p t ( m e s s a g e , u s e r _ n a m e ) ; 
 	 / / i f   ( r e t u r n _ v a l u e   = =   n u l l )   { 
 	 	 / / r e t u r n ; 
 	 / / } 
 	 
 	 
 	 v a r   s u b   =   " M E S S A G E   S U B J E C T   : " ; 
 	 v a r   u s e r _ n a m e   =   " " ; 
 	 v a r   r e t u r n _ v a l u e   =   p r o m p t ( s u b , u s e r _ n a m e ) ; 
 	 i f   ( r e t u r n _ v a l u e   = =   n u l l )   { 
 	 	 r e t u r n ; 
 	 } 
 	 
 	 v a r   t i t l e = r e t u r n _ v a l u e ; 
 	 v a r   b o d y = " " ; 
 	 
 	 / / s e n d M e s s a g e ( i d , t i t l e , r e t u r n _ v a l u e ) ; 
 	 
 	 s e n d M e s s a g e ( i d , t i t l e , b o d y ) ; 
 } 
 
 f u n c t i o n   s e n d M e s s a g e ( i d , t i t l e , b o d y )   { 
     v a r   p a r a m s   =   [ ] ; 
     p a r a m s [ o p e n s o c i a l . M e s s a g e . F i e l d . T I T L E ] = t i t l e ; 
     v a r   m e s s a g e   =   o p e n s o c i a l . n e w M e s s a g e ( b o d y ,   p a r a m s ) ; 
     v a r   r e c i p i e n t   =   o p e n s o c i a l . D a t a R e q u e s t . P e r s o n I d . O W N E R ; 
     / / o p e n s o c i a l . r e q u e s t S e n d M e s s a g e ( r e c i p i e n t ,   m e s s a g e ,   c a l l b a c k ) ; 
     o p e n s o c i a l . r e q u e s t S e n d M e s s a g e ( i d ,   m e s s a g e ,   s e n d M e s s a g e C a l l b a c k ) ; 
 } 
 
 f u n c t i o n   s e n d M e s s a g e C a l l b a c k ( d a t a )   { 
     i f   ( d a t a . h a d E r r o r ( ) )   { 
         / / s h o w E r r o r ( " M e s s a g e   n o t   s e n t ,   e r r o r   =   " + d a t a . g e t E r r o r C o d e ( ) ) ; 
         s h o w E r r o r ( " M e s s a g e   n o t   s e n t   !   Y o u   c a n   s e n d   m e s s a g e   o n l y   t o   f r i e n d s .   F i r s t   a d d   t h e   m e m b e r   a s   f r i e n d   a n d   t h e n   s e n d   m e s s a g e . " ) ; 
     }   e l s e   { 
         s h o w I n f o ( " M e s s a g e   S e n t " ) ; 
     } 
 } 
 
 f u n c t i o n   w i n d o w _ o p e n ( l i n k ) 
 { 
 	 w i n d o w . o p e n ( l i n k ) ; 
 } 
 
 
 
 f u n c t i o n   m a k e J o i n B a t c h R e q u e s t ( r o l e , i n s t _ c o d e , i n s t _ n a m e , f r o m _ y e a r , t o _ y e a r , b a t c h _ y e a r , o t h e r _ d e t a i l s , t a b n a m e )   
 { 
 	 i f ( V I E W E R _ I D E N T I T Y = = ' O W N E R ' ) 
 	 { 
 	 
 	 	 v a r   p a r a m s   =   { } ; 
 	 	 v a r   p o s t d a t a   =   { 
 	 	 	 	 V I E W _ N A M E : V I E W _ N A M E , 
 	 	 	 	 d o m a i n _ u s e r _ i d   :   v i e w e r . g e t I d ( ) , 
 	 	 	 	 r o l e : r o l e , 
 	 	 	 	 i n s t _ c o d e : i n s t _ c o d e , 
 	 	 	 	 f r o m _ y e a r : f r o m _ y e a r , 
 	 	 	 	 t o _ y e a r : t o _ y e a r , 
 	 	 	 	 b a t c h _ y e a r : b a t c h _ y e a r , 
 	 	 	 	 o t h e r _ d e t a i l s : o t h e r _ d e t a i l s 
 	 	 	 } ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . A U T H O R I Z A T I O N ]   =   g a d g e t s . i o . A u t h o r i z a t i o n T y p e . S I G N E D ; 	 	 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . M E T H O D ]   =   g a d g e t s . i o . M e t h o d T y p e . P O S T ; 
 	 	 p a r a m s [ g a d g e t s . i o . R e q u e s t P a r a m e t e r s . P O S T _ D A T A ]   =   g a d g e t s . i o . e n c o d e V a l u e s ( p o s t d a t a ) ; 
 	 	 v a r   u r l   =   " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / p h p / a d d _ h i s t o r y . p h p " ; 
 	 	 g a d g e t s . i o . m a k e R e q u e s t ( u r l ,   h a n d l e J o i n B a t c h R e s p o n s e ,   p a r a m s ) ; 
 	 	 s h o w L o a d i n g ( t a b n a m e ) ; 
 	 	 p o s t A c t i v i t y ( "   h a s   j o i n e d   a   n e w   i n s t i t u t e / w o r k p l a c e   w i t h   n a m e   [ " + i n s t _ n a m e + " ] "   ) ; 
   	 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " T o   p e r f o r m   t h i s   a c t i o n   y o u   w i l l   h a v e   t o   a d d   t h e   a p p l i c a t i o n   t o   y o u r   p r o f i l e   b y   c l i c k i n g   o n   a d d   a p p l i c a t i o n   a t   t h e   b o t t o m . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   h a n d l e J o i n B a t c h R e s p o n s e ( d a t a )   
 { 
     	 
     	 v a r   r e s p = g a d g e t s . j s o n . p a r s e ( d a t a . t e x t ) ; 
     	 i f ( r e s p . R E Q _ S T A T U S = = ' O K ' ) 
     	 { 
 	 	 s h o w I n f o ( " B a t c h   j o i n e d   S u c c e s s f u l l y . " ) ; 
     	 } 
     	 e l s e 
     	 { 
     	 	 s h o w E r r o r ( " F a i l e d   t o   j o i n   b a t c h   w i t h   e r r o r . . . . " + r e s p . E R R O R ) ; 
     	 } 
 	 h i d e L o a d i n g ( ) ; 
 } 
 
 f u n c t i o n   h a n d l e I n v i t e P a g e R e q u e s t ( ) 
 { 
 	 i f ( v i e w e r ! = n u l l | | v i e w e r ! = u n d e f i n e d ) 
 	 { 
 	 	 v a r   s = " < t a b l e   c l a s s = ' f b 6 ' > " ; 
 	 	 f o r ( v a r   i = 0 ; i < v i e w e r F r i e n d s . l e n g t h ; i + + ) 
 	 	 { 
 	 	 	 s = s + " < t r > " ; 
 	 	 	 
 	 	 	 s = s + ' < t d > ' + v i e w e r F r i e n d s [ i ] . g e t D i s p l a y N a m e ( ) + ' < / t d > < t d >       < i n p u t   c l a s s = " b u t t o n "   t y p e = " b u t t o n "   v a l u e = "   i n v i t e   "   o n c l i c k = " i n v i t e ( \ ' ' + v i e w e r F r i e n d s [ i ] . g e t I d ( ) + ' \ ' ) " / > < / t d > ' ; 
 	 	 	 
 	 	 	 s = s + " < / t r > " ; 
 	 	 	 	 	 
 	 	 } 	 
 	 	 
 	 	 s + = " < / t a b l e > " ; 
 	 	 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' d i v T a b ' + T A B I N D E X _ I N V I T E ) . i n n e r H T M L = s ; 
 	 	 
 	 	 a d j u s t H e i g h t ( ) ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 s h o w E r r o r ( " T o   p e r f o r m   t h i s   a c t i o n   y o u   w i l l   h a v e   t o   a d d   t h e   a p p l i c a t i o n   t o   y o u r   p r o f i l e   b y   c l i c k i n g   o n   a d d   a p p l i c a t i o n   a t   t h e   b o t t o m . " ) ; 
 	 } 	 	 
 } 
 
 f u n c t i o n   i n v i t e ( f r i e n d I D ) 
 { 
 	 v a r   p a r a m s   =   [ ] ; 
 	 v a r   t i t l e   =   " J o i n   Y e a r m a t e s   t o   m e e t   c l a s s m a t e s   a n d   b a t c h m a t e s " ; 4 2 7 0 0 0 8 3 
 	 v a r   b o d y = " J o i n   < a   h r e f = ' h t t p : / / w w w . o r k u t . c o m / A p p I n f o . a s p x ? a p p I d = 4 2 7 0 0 0 8 3 ' > Y e a r m a t e s < / a >   o n   O r k u t   t o   m e e t   y o u r   b a t c h   m a t e s   a n d   f r i e n d s   f r o m   y o u r   s c h o o l ,   c o l l e g e   a n d   w o r k p l a c e s !   Y o u   c a n   a l s o   c h a t   w i t h   t h e m .   T o   j o i n   C l i c k   o n   t h i s   l i n k   o r   p a s t e   i t   i n   y o u r   b r o w s e r .   h t t p : / / w w w . o r k u t . c o m / A p p I n f o . a s p x ? a p p I d = 4 2 7 0 0 0 8 3 " ; 
 	 p a r a m s [ o p e n s o c i a l . M e s s a g e . F i e l d . T I T L E ] = t i t l e ; 
 	 v a r   m e s s a g e   =   o p e n s o c i a l . n e w M e s s a g e ( b o d y ,   p a r a m s ) ; 
 	 / / v a r   r e c i p i e n t   =   o p e n s o c i a l . D a t a R e q u e s t . G r o u p . V I E W E R _ F R I E N D S ; 
 	 v a r   i d = " " + f r i e n d I D ; 
 	 o p e n s o c i a l . r e q u e s t S e n d M e s s a g e ( i d   , m e s s a g e , s e n d I n v i t e C a l l b a c k ) ; 
 } 
 f u n c t i o n   s e n d I n v i t e C a l l b a c k ( d a t a )   { 
     i f   ( d a t a . h a d E r r o r ( ) )   { 
         s h o w E r r o r ( " M e s s a g e   n o t   s e n t ,   e r r o r   =   " + d a t a . g e t E r r o r C o d e ( ) ) ; 
     }   e l s e   { 
         s h o w I n f o ( " M e s s a g e   S e n t " ) ; 
     } 
 } 
 
 f u n c t i o n   h a n d l e A d d S m i l e y ( s m i l e y _ n a m e ) 
 { 
 	 v a r   m s g = d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ a r e a ' ) . v a l u e ; 
 	 m s g = m s g + s m i l e y _ n a m e ; 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ a r e a ' ) . v a l u e = m s g ; 
 } 
 
 f u n c t i o n   h a n d l e M e s s a g e B o l d C l i c k ( ) 
 { 
 	 i f ( i s B o l d S e l e c t e d ) 
 	 { 
 	 	 i s B o l d S e l e c t e d = f a l s e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ b o l d ' ) . c l a s s N a m e = " b u t t o n " ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 i s B o l d S e l e c t e d = t r u e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ b o l d ' ) . c l a s s N a m e = " b u t t o n _ s e l e c t e d " ; 
 	 	 
 	 } 
 } 
 
 f u n c t i o n   h a n d l e M e s s a g e I t a l i c s C l i c k ( ) 
 { 
 	 i f ( i s I t a l i c s S e l e c t e d ) 
 	 { 
 	 	 i s I t a l i c s S e l e c t e d = f a l s e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ i t a l i c s ' ) . c l a s s N a m e = " b u t t o n " ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 i s I t a l i c s S e l e c t e d = t r u e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ i t a l i c s ' ) . c l a s s N a m e = " b u t t o n _ s e l e c t e d " ; 
 	 } 
 } 
 
 f u n c t i o n   h a n d l e M e s s a g e U n d e r l i n e C l i c k ( ) 
 { 
 	 i f ( i s U n d e r l i n e S e l e c t e d ) 
 	 { 
 	 	 i s U n d e r l i n e S e l e c t e d = f a l s e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ u n d e r l i n e ' ) . c l a s s N a m e = " b u t t o n " ; 
 	 } 
 	 e l s e 
 	 { 
 	 	 i s U n d e r l i n e S e l e c t e d = t r u e ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' m s g _ u n d e r l i n e ' ) . c l a s s N a m e = " b u t t o n _ s e l e c t e d " ; 
 	 } 
 } 
 
 f u n c t i o n   H i d e C o n t e n t ( d )   
 { 
 	 i f ( d . l e n g t h   <   1 )   {   r e t u r n ;   } 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " n o n e " ; 
 } 
 f u n c t i o n   S h o w C o n t e n t ( c a l l e r ,   d )   
 { 
 	 
 	 i f ( d . l e n g t h   <   1 )   {   r e t u r n ;   } 
 	 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " b l o c k " ; 
 } 
 
 Y A H O O . u t i l . E v e n t . o n ( ' s m i l y I m g B u t t o n ' ,   ' c l i c k ' ,   R e v e r s e C o n t e n t D i s p l a y ) ; 
 
 f u n c t i o n   R e v e r s e C o n t e n t D i s p l a y ( )   
 { 
 	 v a r   d = ' s m i l i e s ' ; 
 	 / / s h o w E r r o r ( c a l l e r . o f f s e t T o p + " , " + c a l l e r . o f f s e t L e f t ) ; 
 	 i f ( d . l e n g t h   <   1 )   {   r e t u r n ;   } 
 	 i f ( d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   = =   " n o n e " )   
 	 {   
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . t o p   =   c a l l e r . o f f s e t T o p - 2 0 0 ; 
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . l e f t   =   c a l l e r . o f f s e t L e f t + 2 0 ; 
 	 	 
 	 	 
 	 	 v a r   x = Y A H O O . u t i l . D o m . g e t X ( ' s m i l y I m g B u t t o n ' ) ; 
 	 	 v a r   y = Y A H O O . u t i l . D o m . g e t Y ( ' s m i l y I m g B u t t o n ' ) ; 
 	 	 
 	 	 / / s h o w E r r o r ( x + " , " + y ) ; 
 	 	 / / Y A H O O . u t i l . D o m . s e t X ( d ,   x ) ; 
 	 	 / / Y A H O O . u t i l . D o m . s e t Y ( d ,   y ) ; 
 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . t o p   =   y - 1 0 0 ; 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . l e f t   =   x + 3 0 ; 
 
 
 	 	 
 	 	 / / v a r   x y   =   Y A H O O . u t i l . D o m . g e t X Y ( ' s m i l y I m g B u t t o n ' ) ; 
                 / / Y A H O O . u t i l . D o m . s e t X Y ( d ,   x y ) ; 
 	 	 
 	 	 
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . t o p   =   p o s y - 2 0 0 ; 
 	 	 / / d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . l e f t   =   p o s x + 2 0 ; 
 	 	 
 	 	 
 	 
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " b l o c k " ;   
 	 } 
 	 e l s e   
 	 {   
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( d ) . s t y l e . d i s p l a y   =   " n o n e " ;   
 	 } 
 } 
 
 f u n c t i o n   p o s t A c t i v i t y ( t e x t )   
 {     
         v a r   p a r a m s   =   { } ;     
         p a r a m s [ o p e n s o c i a l . A c t i v i t y . F i e l d . T I T L E ]   =   t e x t ; 
         v a r   a c t i v i t y   =   o p e n s o c i a l . n e w A c t i v i t y ( p a r a m s ) ;   
         o p e n s o c i a l . r e q u e s t C r e a t e A c t i v i t y ( a c t i v i t y ,   o p e n s o c i a l . C r e a t e A c t i v i t y P r i o r i t y . H I G H ,   h a n d l e A c t i v i t y C a l l b a c k ) ; 
         
 } 
 
 / /   T h e   p a r a m e t e r   p a s s e d   t o   t h e   c a l l b a c k   i s   a n   o p e n s o c i a l . R e s p o n s e I t e m   t h a t 
 / /   i n d i c a t e s   w h e t h e r   t h e   a c t i v i t y   c r e a t i o n   r e q u e s t   s u c c e e d e d . 
 f u n c t i o n   h a n d l e A c t i v i t y C a l l b a c k ( s t a t u s )   { 
   
 } 
 
 < / s c r i p t > 
 < s c r i p t   s r c = " h t t p : / / w w w . y e a r m a t e s . c o m / o r k u t / p r o d / j s / y a h o o . j s "   / > 
 < s c r i p t > _ I G _ A n a l y t i c s ( " U A - 6 1 1 2 4 6 4 - 1 " ,   " / y e a r m a t e s _ o r k u t _ p r o d " ) ; < / s c r i p t > 
     
     ] ] > 
     < / C o n t e n t >     
 < / M o d u l e >
