ÿþ/ *   !>740=85  H01;>=0  * /  
 f u n c t i o n   c o d e O p t i o n s ( o p t i o n s ) {  
         v a r   t = ' ' ;  
 	 f o r ( v a r   i = 0 ; i < o p t i o n s . l e n g t h ; i + = 2 ) {  
                 t + = ' < o p t i o n   v a l u e = " ' + o p t i o n s [ i + 1 ] + ' " > ' + o p t i o n s [ i ] + ' < / o p t i o n > ' ;  
         }  
 	 r e t u r n   t ;  
 }  
 f u n c t i o n   c o d e S e l e c t T e x t ( i d , o p t i o n s ) {  
 	 o p t i o n s . p u s h ( ' [ !2>9  20@80=B] ' , ' E m p t y ' ) ;  
         r e t u r n   ' < d i v   i d = " ' + i d + ' " > < s e l e c t   o n c h a n g e = " c m b C l i c k ( t h i s ) ; " > ' + c o d e O p t i o n s ( o p t i o n s ) + ' < / s e l e c t > < b r   s t y l e = " d i s p l a y : n o n e " > < i n p u t   t y p e = " t e x t "   s t y l e = " d i s p l a y : n o n e "   o n c h a n g e = " t h i s . p a r e n t N o d e . v a l u e = t h i s . v a l u e " > < / d i v > ' ;  
 }  
 f u n c t i o n   c o d e S e l e c t ( i d , o p t i o n s ) {  
         r e t u r n   ' < s e l e c t   i d = " ' + i d + ' " > ' + c o d e O p t i o n s ( o p t i o n s ) + ' < / s e l e c t > ' ;  
 }  
 f u n c t i o n   c o d e R o w ( p r o m t , c o n t r o l , d e s c r i p t i o n ) {  
         r e t u r n   ' < t r > < t d > ' + p r o m t + ' < / t d > < t d > ' + c o n t r o l + ' < / t d > < t d > ' + d e s c r i p t i o n + ' < / t d > < / t r > ' ;  
 }  
  
 f u n c t i o n   R o l e s A d d S h a b l o n ( ) {  
         f u n c t i o n   s a v e V a l u e ( ) {  
                 v a r   t = ' ' ;  
                 i f ( L o g o . v a l u e )   t + = ' [ i m g ] ' + L o g o . v a l u e + ' [ / i m g ] \ n ' ;  
                 i f ( A d d r e s s . v a l u e )   t + = ' [ b ] 4@5A  D>@C<0: [ / b ]   ' + A d d r e s s . v a l u e + ' \ n ' ;  
                 e l s e { a l e r t ( ' 5>1E>48<>  70?>;=8BL  ?>;5  4@5A  D>@C<0  ' ) ; r e t u r n ; }  
                 i f ( N a m e . v a l u e )   t + = ' [ b ] D8F80;L=>5  =0720=85: [ / b ]   ' + N a m e . v a l u e + ' \ n ' ;  
                 i f ( A d m i n . v a l u e )   t + = ' [ b ] 4<8=8AB@0F8O: [ / b ]   ' + A d m i n . v a l u e + ' \ n ' ;  
                 i f ( G a n r . v a l u e )   t + = ' [ b ] 0=@  ( @0745;  :0B0;>30) : [ / b ]   ' + G a n r . v a l u e + ' \ n ' ;  
                 e l s e { a l e r t ( ' 5>1E>48<>  70?>;=8BL  ?>;5  0=@  ( @0745;  :0B0;>30)   ' ) ; r e t u r n ; }  
                 i f ( S u b G a n r . v a l u e )   t + = ' [ b ] >460=@K: [ / b ]   ' + S u b G a n r . v a l u e + ' \ n ' ;  
                 i f ( D a t e . v a l u e )   t + = ' [ b ] 0B0  >B:@KB8O: [ / b ]   ' + D a t e . v a l u e + ' \ n ' ;  
                 i f ( G a m e T y p e . v a l u e )   t + = ' [ b ] @30=870F8O  83@>2>9: [ / b ]   ' + G a m e T y p e . v a l u e + ' \ n ' ;  
                 i f ( M a s t e r T y p e . v a l u e )   t + = ' [ b ] "8?  <0AB5@8=30: [ / b ]   ' + M a s t e r T y p e . v a l u e + ' \ n ' ;  
                 i f ( G a m e S y s t e m . v a l u e )   t + = ' [ b ] 0B5<0B8G5A:0O  83@>20O  A8AB5<0: [ / b ]   ' + ' \ n ' + G a m e S y s t e m . v a l u e + ' \ n ' ;  
                 i f ( D e s c r i p t i o n . v a l u e )   t + = ' [ b ] @0B:>5  >?8A0=85: [ / b ]   ' + ' \ n ' + D e s c r i p t i o n . v a l u e + ' \ n ' ;  
                 i f ( S t a t u s . v a l u e )   t + = ' [ b ] !B0BCA  B5<K: [ / b ]   ' + S t a t u s . v a l u e + ' \ n ' ;  
                 e l s e { a l e r t ( ' 5>1E>48<>  70?>;=8BL  ?>;5  !B0BCA  B5<K  ' ) ; r e t u r n ; }  
                 w i n d o w . m e s s a g e . v a l u e = t ;  
                 w i n d o w . c l o s e ( ) ;  
         }  
 	 v a r   w = w i n d o w . o p e n ( ) ;  
 	 w . d o c u m e n t . w r i t e ( ' < h t m l > < h e a d > < s t y l e   t y p e = " t e x t / c s s " > \ n i n p u t ,   t e x t a r e a ,   s e l e c t   { w i d t h : 4 5 0 p x ; } \ n t e x t a r e a { h e i g h t : 1 0 0 p x ; } \ n . b u t t o n   { w i d t h : 1 0 0 p x ; } \ n < / s t y l e > < 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 a v e V a l u e + ' \ n ' + c m b C l i c k + ' < / s ' + ' c r i p t > < / h e a d > < b o d y > < t a b l e   c e l l s p a c i n g = " 0 "   c e l l p a d d i n g = " 0 "   b o r d e r = " 0 " > ' ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' >3>B8?  ( 04@5A  :0@B8=:8) : ' , ' < i n p u t   t y p e = " t e x t "   i d = " L o g o " > ' , ' :0@B8=:0  =5  1>;55  2 5 0 E2 5 0   ?8:A5;' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' < b > 4@5A  D>@C<0: < / b > ' , ' < i n p u t   t y p e = " t e x t "   i d = " A d d r e s s " > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' D8F80;L=>5  =0720=85: ' , ' < i n p u t   t y p e = " t e x t "   i d = " N a m e " > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' 4<8=8AB@0F8O: ' , ' < i n p u t   t y p e = " t e x t "   i d = " A d m i n " > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' < b > 0=@  ( @0745;  :0B0;>30) : < / b > ' , c o d e S e l e c t ( ' G a n r ' , [ ' $M=B578  ( DM=B578,   <038O  A53>4=O,   ?@8:;NG5=8O  0;O  ) ' , ' $M=B578' , ' $0=B0AB8:0  ( :>A<>D0=B0AB8:0,   B5E=>35=,   ?>AB0?>:0;8?A8A,   AC?5@35@>8) ' , ' $0=B0AB8:0' , ' H o r r o r   ( E>@@>@,   C60AB8:8,   20<?8@K  8  ?@>G55) ' , ' H o r r o r ' , ' (:>;K  <0388  ( %>320@4A,   "8184>EA  8  ?>4>1=K5  8<  <8@K) ' , ' (:>;K  <0388' , ' >2A54=52=>ABL  ( A5@80;K,   @50;8B8- H>C,   CG51=K5  8  <548F8=A:85  CG@5645=8O) ' , ' >2A54=52=>ABL' , ' @C385  ( 83@0  =5  ?>4E>48B  =8  ?>4  >4=C  87  :0B53>@89) ' , ' @C385' ] ) , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' >460=@K: ' , ' < i n p u t   t y p e = " t e x t "   i d = " S u b G a n r " > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' 0B0  >B:@KB8O: ' , ' < i n p u t   t y p e = " t e x t "   i d = " D a t e " > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' @30=870F8O  83@>2>9: ' , c o d e S e l e c t T e x t ( ' G a m e T y p e ' , [ ' [ 5  2K1@0=>] ' , ' ' , ' >:0F8>==0O' , ' >:0F8>==0O' , ' %@>=>;>38G5A:0O' , ' %@>=>;>38G5A:0O' , ' >  M?87>40<' , ' >  M?87>40<' ] ) , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' "8?  <0AB5@8=30: ' , c o d e S e l e c t ( ' M a s t e r T y p e ' , [ ' [ 5  2K1@0=>] ' , ' ' , ' :B82=K9' , ' :B82=K9' , ' 0AA82=K9' , ' 0AA82=K9' , ' !<5H0==K9' , ' !<5H0==K9' ] ) , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' 0B5<0B8G5A:0O  83@>20O  A8AB5<0: ' , ' < t e x t a r e a   i d = " G a m e S y s t e m " > < / t e x t a r e a > ' , ' ?@825BAB2C5BAO  AAK;:0  =0  >?8A0=85, < b r > 5A;8  A8AB5<0  =5  8A?>;L7C5BAO  -   =5  70?>;=O9B5  ?>;5' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' @0B:>5  >?8A0=85: ' , ' < t e x t a r e a   i d = " D e s c r i p t i o n " > < / t e x t a r e a > ' , ' ' ) ) ;  
                 w . d o c u m e n t . w r i t e ( c o d e R o w ( ' < b > !B0BCA  B5<K: < / b > ' , c o d e S e l e c t ( ' S t a t u s ' , [ ' ">;L:>  =>2>AB8' , ' [ f o n t   c o l o r = b l u e ] [ i ] [ b ] ">;L:>  =>2>AB8[ / b ] [ / i ] [ / f o n t ] ' , ' !2>1>4=>5  >1AC645=85' , ' [ f o n t   c o l o r = g r e e n ] [ i ] [ b ] !2>1>4=>5  >1AC645=85[ / b ] [ / i ] [ / f o n t ] ' , ' 0:@KB>  >B  :><<5=B0@852' , ' [ f o n t   c o l o r = r e d ] [ i ] [ b ] 0:@KB>  >B  :><<5=B0@852[ / b ] [ / i ] [ / f o n t ] ' ] ) , ' ' ) ) ;  
         w . d o c u m e n t . w r i t e ( ' < / t a b l e > < i n p u t   c l a s s = " b u t t o n "   t y p e = " s u b m i t "   o n c l i c k = " j a v a s c r i p t : s a v e V a l u e ( ) ; "   v a l u e = " 0?8A0BL" > < i n p u t   c l a s s = " b u t t o n "   t y p e = " r e s e t "   o n c l i c k = " j a v a s c r i p t : w i n d o w . c l o s e ( ) ; "   v a l u e = " B<5=0" > ' ) ;  
         w . m e s s a g e = d o c u m e n t . g e t E l e m e n t s B y N a m e ( ' m e s s a g e ' ) [ 0 ] ;  
 }  
  
 / *   >102;5=85  83@K  2  :0B0;>3  * /  
 f u n c t i o n   A d d G a m e ( ) {  
 	 v a r   u r l = d o c u m e n t . U R L . m a t c h ( / h t t p : \ / \ / [ ^ . ] + . ( ? : b o r d a | f o r u m 2 4 ) . r u \ / / i ) ;  
 	 f u n c t i o n   o p e n F o r u m ( ) {  
 	 	 w i n d o w . f o r u m = w i n d o w . o p e n ( r a z d e l . v a l u e ) ;  
 	 	 w i n d o w . t i c k e r = s e t I n t e r v a l ( w r i t e P o s t , 1 0 0 ) ;  
 	 }  
 	 f u n c t i o n   w r i t e P o s t ( ) {  
 	 	 i f ( ! w i n d o w . f o r u m ) r e t u r n ;  
 	 	 i f ( ! w i n d o w . f o r u m . d o c u m e n t . t h e F o r m ) r e t u r n ;  
 	 	 i f ( ! w i n d o w . f o r u m . d o c u m e n t . t h e F o r m . m e s s a g e ) r e t u r n ;  
 	 	 w i n d o w . f o r u m . d o c u m e n t . t h e F o r m . t i t l e . v a l u e = w i n d o w . f t i t l e ;  
 	 	 w i n d o w . f o r u m . d o c u m e n t . t h e F o r m . m e s s a g e . v a l u e = w i n d o w . f m e s s a g e ;  
 	 	 c l e a r I n t e r v a l ( w i n d o w . t i c k e r ) ;  
 	 }  
 	 v a r   w = w i n d o w . o p e n ( ) ;  
 	 v a r   d = w . d o c u m e n t ;  
 	 d . w r i t e ( ' < h t m l > < h e a d > ' ) ;  
 	 d . w r i t e ( ' < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > \ n ' ) ;  
 	 d . w r i t e ( o p e n F o r u m ) ;  
 	 d . w r i t e ( w r i t e P o s t ) ;  
 	 d . w r i t e ( ' \ n < / s ' + ' c r i p t > ' ) ;  
 	 d . w r i t e ( ' < / h e a d > < b o d y > ' ) ;  
 	 d . w r i t e ( ' < u l > ' ) ;  
 	 d . w r i t e ( ' < l i > K15@8B5  @0745;  8  =06<8B5  " B?@028BL" < / l i > ' ) ;  
 	 d . w r i t e ( ' < / u l > ' ) ;  
 	 d . w r i t e ( ' < s e l e c t   i d = " r a z d e l " > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 4 " > $M=B578< / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 5 " > $0=B0AB8:0< / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 6 " > H o r r o r < / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 7 " > (:>;K  <0388< / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 1 5 " > >2A54=52=>ABL< / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < o p t i o n   v a l u e = " ' + u r l + ' ? 2 - 1 8 " > @C385< / o p t i o n > ' ) ;  
 	 d . w r i t e ( ' < / s e l e c t > ' ) ;  
 	 d . w r i t e ( ' < i n p u t   i d = " c m d O p e n "   t y p e = " b u t t o n "   v a l u e = " B?@028BL"   o n c l i c k = " j a v a s c r i p t : o p e n F o r u m ( ) ; " > ' ) ;  
 	 d . w r i t e ( ' < / b o d y > < / h t m l > ' ) ;  
 	 w . f m e s s a g e = d o c u m e n t . t h e F o r m . m e s s a g e . v a l u e ;  
 	  
 	 v a r   n o w = n e w   D a t e ( ) ;  
 	 w . f t i t l e = p a r s S h a b l o n ( w . f m e s s a g e ) . g e t T i t l e ( ) + '   ( ' + n o w . g e t D a t e ( ) + ' . ' + ( n o w . g e t M o n t h ( ) + 1 ) + ' ) ' ;  
 }  
  
 f u n c t i o n   p a r s S h a b l o n ( t e x t ) {  
 	 v a r   q = 0 , m = ' ' , a ;  
 	 v a r 	 s = {  
 	 	 b b t a g : f u n c t i o n ( t e x t ) {  
 	 	 	 t e x t = t e x t . r e p l a c e ( / \ s + $ / i , ' ' ) ;  
 	 	 	 t e x t = t e x t . r e p l a c e ( / ^ \ s + / i , ' ' ) ;  
 	 	 	 s w i t c h ( t e x t ) {  
 	 	 	 	 c a s e   ' i m g ' :  
 	 	 	 	 	 t h i s . c u r k e y = ' l o g o ' ;  
 	 	 	 }  
 	 	 } ,  
 	 	 k e y : f u n c t i o n ( t e x t ) {  
 	 	 	 t e x t = t e x t . r e p l a c e ( / \ s + $ / i , ' ' ) ;  
 	 	 	 t e x t = t e x t . r e p l a c e ( / ^ \ s + / i , ' ' ) ;  
 	 	 	 t h i s . c u r k e y = t e x t ;  
 	 	 } ,  
 	 	 v a l u e : f u n c t i o n ( t e x t ) {  
 	 	 	 t e x t = t e x t . r e p l a c e ( / \ s + $ / i , ' ' ) ;  
 	 	 	 t e x t = t e x t . r e p l a c e ( / ^ \ s + / i , ' ' ) ;  
 	 	 	 i f ( t h i s . c u r k e y ) i f ( ! t h i s . v [ t h i s . c u r k e y ] ) {  
 	 	 	 	 t h i s . v [ t h i s . c u r k e y ] = t e x t ;  
 	 	 	 }  
 	 	 } ,  
 	 	 v : {  
 	 	 	 g e t T i t l e : f u n c t i o n ( ) {  
 	 	 	 	 v a r   a = t h i s [ " 4@5A  D>@C<0" ] ;  
 	 	 	 	 a = a . r e p l a c e ( / [ \ / ] $ / i , ' ' ) ;  
 	 	 	 	 r e t u r n   a + '   /   ' + t h i s [ " D8F80;L=>5  =0720=85" ] ;  
 	 	 	 }  
 	 	 }  
 	 } ;  
 	 f o r ( v a r   i = 0 ; i < t e x t . l e n g t h ; i + + ) {  
 	 	 a = t e x t . c h a r A t ( i )  
 	 	 s w i t c h ( q ) {  
 	 	 	 c a s e   0 :  
 	 	 	 s w i t c h ( a ) {  
 	 	 	 	 c a s e   " [ " :   s . v a l u e ( m ) ; m = ' ' ; q = 1 ; b r e a k ;  
 	 	 	 	 c a s e   " : " :   i f ( m ! = " h t t p " ) { s . k e y ( m ) ; m = ' ' ; q = 2 ; } b r e a k ;  
 	 	 	 	 d e f a u l t :   m + = a ;  
 	 	 	 }  
 	 	 	 b r e a k ;  
 	 	 	 c a s e   1 :  
 	 	 	 s w i t c h ( a ) {  
 	 	 	 	 c a s e   " ] " : s . b b t a g ( m ) ; m = ' ' ; q = 0 ; b r e a k ;  
 	 	 	 	 d e f a u l t :   m + = a ;  
 	 	 	 }  
 	 	 	 b r e a k ;  
 	 	 	 c a s e   2 :  
 	 	 	 s w i t c h ( a ) {  
 	 	 	 	 c a s e   " \ n " :   i f ( m ) { s . v a l u e ( m ) ; m = ' ' ; q = 0 ; } b r e a k ;  
 	 	 	 	 c a s e   " [ " : q = 3 ; b r e a k ;  
 	 	 	 	 d e f a u l t :   m + = a ;  
 	 	 	 }  
 	 	 	 c a s e   3 :  
 	 	 	 s w i t c h ( a ) {  
 	 	 	 	 c a s e   " ] " :   q = 2 ;  
 	 	 	 }  
 	 	 }  
 	 }  
 	 r e t u r n   s . v ;  
 }  
  
 f u n c t i o n   c m b C l i c k ( o b j ) {  
         v a r   p a r = o b j . p a r e n t N o d e ;  
         i f ( o b j . v a l u e = = ' E m p t y ' ) {  
                 i f ( p a r . c h i l d N o d e s [ 2 ] . s t y l e . d i s p l a y = = ' n o n e ' ) {  
                         p a r . c h i l d N o d e s [ 1 ] . s t y l e . d i s p l a y = ' ' ;  
                         p a r . c h i l d N o d e s [ 2 ] . s t y l e . d i s p l a y = ' ' ;  
                 }  
         } e l s e {  
                 i f ( p a r . c h i l d N o d e s [ 2 ] . s t y l e . d i s p l a y = = ' ' ) {  
                         p a r . c h i l d N o d e s [ 1 ] . s t y l e . d i s p l a y = ' n o n e ' ;  
                         p a r . c h i l d N o d e s [ 2 ] . s t y l e . d i s p l a y = ' n o n e ' ;  
                 }  
                 p a r . v a l u e = o b j . v a l u e ;  
         }  
 }  
 
