+// ###################################################################
+/**
+* Generates an absolute-pathed link if you just pass it the four
+* paramaters
+*
+* @param string Action/script
+* @param string Repository name
+* @param string Subpath in repository
+* @param integer Revision
+*
+* @return string Link (not wrapped in <a>)
+*/
+function ConstructLink($action, $repos, $path, $rev)
+{
+ return BSRegister::Get('webpath') . '/' . $action . '/' . $repos . ':' . $path . ($rev > 0 ? '@' . $rev : '');
+}
+