ÿþf u n c t i o n   R e l a t i v e P a t h ( F i l e N a m e , p r o t o c o l )  
 {  
 / /   p r o t o c o l   =   1   i s e   h t t p s    
 / /   p r o t o c o l   =   0   i s e   h t t p  
 / /   f u l l   u r l   v e r i l m e d e n   ( s a d e c e   d o s y a   a d 1  k u l l a n 1l a r a k  
 / /   S S L   p r o t o k o l ü   i l e   n o r m a l   p r o t o k o l   a r a s 1n d a   g e ç i _ 
 / /   y a p m a y 1  k o l a y l a _t 1r 1r .  
 v a r   m y s = n e w   S t r i n g ( d o c u m e n t . l o c a t i o n . h o s t   +   d o c u m e n t . l o c a t i o n . p a t h n a m e )  
 f = m y s . l e n g t h ;  
 d o  
 {  
 	 m y c h a r   =   m y s . c h a r A t ( f ) ;  
 	 f = f - 1 ;  
 }  
 w h i l e   ( m y c h a r ! = ' / ' )    
 P a t h N   =   m y s . s u b s t r i n g ( 0 , f + 1 ) ;  
 i f   ( p r o t o c o l = = 1 )   p r t s t r = ' h t t p s : / / ' ;  
 i f   ( p r o t o c o l = = 0 )   p r t s t r = ' h t t p : / / ' ;  
 d o c u m e n t . l o c a t i o n     =   p r t s t r   +   P a t h N   +   ' / '   +   F i l e N a m e ;  
 }  
 
