取某一网页中的超链接href部分(已知该网页的url)   
    
由于该href为相对路径,请问如何将其转换为绝对路径?   
    
如   
该网页url为:http://www.xxx.com/news/sports/default.html   
    
  该网页的href(相对路径)            要得到的(绝对路径)                         
  href='./pagename.html'              ->http://www.xxx.com/news/sports/pagename.html   
  href='/Expert/pagename.html'        ->http://www.xxx.com/Expert/pagename.html   
  href='../../pagename.html'          ->http://www.xxx.com/pagename.html