+ return result.second;
+}
+
+
+string const browseRelFile(string const & filename,
+ string const & refpath,
+ string const & title,
+ string const & pattern,
+ bool save,
+ pair<string,string> const & dir1,
+ pair<string,string> const & dir2)
+{
+ string const fname = MakeAbsPath(filename, refpath);
+
+ string const outname = browseFile(fname, title, pattern, save,
+ dir1, dir2);
+ string const reloutname = MakeRelPath(outname, refpath);
+ if (prefixIs(reloutname, "../"))
+ return outname;
+ else
+ return reloutname;