ÿþ/ /   J a v a S c r i p t   D o c u m e n t  
  
  
 f u n c t i o n   s w a p ( i ) {  
 d o c u m e n t [ i ] . s r c   =   " i m a g e s / "   +   i   +   " d o w n . j p g "  
 }  
  
 f u n c t i o n   s w a p B a c k ( i ) {  
 d o c u m e n t [ i ] . s r c   =   " i m a g e s / "   +   i   +   " u p . j p g "  
 }  
  
  
 f u n c t i o n   s h o w L i n k s ( ) {  
 / / C l u s t e r   I n i t i a t i v e s   l i n k s  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' i l o n e ' ) . i n n e r H T M L   =   " S G S Y   P r o j e c t   a t   B i r b h u m "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' i l t w o ' ) . i n n e r H T M L   =   " C r a f t s   o f   B i r b h u m "  
 	  
  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' i l o n e ' ) . h r e f   =   " c l u s t e r 1 . h t m l "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' i l t w o ' ) . h r e f   =   " c l u s t e r 2 . h t m l "  
 	  
  
 / / N e w s   &   e v e n t s   l i n k s  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n n e o n e ' ) . i n n e r H T M L   =   " S p e c t r u m   - 2 0 0 9 "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n n e t w o ' ) . i n n e r H T M L   =   " A c a d e m i c   C a l e n d a r   0 9 - 1 0 "  
  
  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n n e o n e ' ) . h r e f   =   " n e w s n e v e n t s 1 . h t m l "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' n n e t w o ' ) . h r e f   =   " n e w s n e v e n t s 2 . h t m l "  
 	  
  
 / / B u s i n e s s   &   o p p o r t u n i t i e s   l i n k s  
  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b o o n e ' ) . i n n e r H T M L   =   " T e n d e r   N o t i c e s "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b o t w o ' ) . i n n e r H T M L   =   " I n v i t i n g   Q u o t a t i o n s   &   R a t e   E n q u i r i e s "  
  
  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b o o n e ' ) . h r e f   =   " b u s i n e s s o p p 1 . h t m l "  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' b o t w o ' ) . h r e f   =   " b u s i n e s s o p p 2 . h t m l "  
  
  
 }  
  
  
 f u n c t i o n   v a l i d a t e ( ) {  
 / * v a l i d C h a r s   =   " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z @ . 0 1 2 3 4 5 6 7 8 9 _ "  
 i f ( d o c u m e n t . e z e m a i l . e m a i l . v a l u e . l e n g t h   = =   0 ) {  
 	 a l e r t ( " P l e a s e   e n t e r   y o u r   v a l i d   e m a i l   I D   t o   s u b s c r i b e   t o   e - z i n e " )  
 	 d o c u m e n t . e z e m a i l . e m a i l . f o c u s ( )  
 	 r e t u r n    
 }  
  
 i f ( d o c u m e n t . e z e m a i l . e m a i l . v a l u e . i n d e x O f ( " @ " )   = =   - 1   | |   d o c u m e n t . e z e m a i l . e m a i l . v a l u e . i n d e x O f ( " @ " )   ! =   d o c u m e n t . e z e m a i l . e m a i l . v a l u e . l a s t I n d e x O f ( " @ " ) )   {  
 	 a l e r t ( " I n v a l i d   e m a i l   I D .   p l e a s e   l o o k   a t   ' @ ' " )  
 	 d o c u m e n t . e z e m a i l . e m a i l . f o c u s ( )  
 	 r e t u r n    
 }  
 f o r ( i   =   0   ;   i   < d o c u m e n t . e z e m a i l . e m a i l . v a l u e . l e n g t h   ;   + + i ) {  
 	 i f ( v a l i d C h a r s . i n d e x O f ( d o c u m e n t . e z e m a i l . e m a i l . v a l u e . c h a r A t ( i ) )   = =   - 1 ) {  
 	 	 a l e r t ( " I n v a l i d   c h a r a c t e r   i n   e m a i l   I D .   p l e a s e   e n t e r   v a l i d   e m a i l   I D " )  
 	 	 d o c u m e n t . e z e m a i l . e m a i l . f o c u s ( )  
 	 	 r e t u r n    
 	 }  
 } 	  
 * /  
 l o c a t i o n . h r e f   =   " i n t r a n e t . h t m l "  
 / / 	 d o c u m e n t . e z e m a i l . s u b m i t ( )  
  
 }  
  
 f u n c t i o n   a l u m n i V a l i d a t e ( )  
 {  
 	 l o c a t i o n . h r e f   =   " A l u r e g . h t m l "  
 	 }  
  
 / / - - >  
 
