--- ../includes/common.inc.cvs	2005-06-21 16:04:11.707424000 -0700
+++ ../includes/common.inc	2005-06-21 16:03:09.157481600 -0700
@@ -1050,11 +1082,13 @@
  *   The form items within the group, as an HTML string.
  * @param $description
  *   Explanatory text to display after the form item group.
+ * @param $anchor_name
+ *   The unique anchor name for use when linking to a particular place in a page.
  * @return
  *   A themed HTML string representing the form item group.
  */
-function form_group($legend, $group, $description = NULL) {
-  return '<fieldset>' . ($legend ? '<legend>'. $legend .'</legend>' : '') . $group . ($description ? '<div class="description">'. $description .'</div>' : '') . "</fieldset>\n";
+function form_group($legend, $group, $description = NULL, $anchor_name = NULL) {
+  return ($anchor_name ? '<a name="'. $anchor_name .'"></a>' : '') . '<fieldset>' . ($legend ? '<legend>'. $legend .'</legend>' : '') . $group . ($description ? '<div class="description">'. $description .'</div>' : '') . "</fieldset>\n";
 }
