public static function makeAnchorLink(ObjectId $oid, ObjectId $anchorOID, $anchorName=null) {
    $str = self::makeLink($oid)."/".$anchorOID->__toString();
    if ($anchorName != null) {
      $str .= "#".$anchorName;
    }
    return $str;
  }