/**
 * Fixes illegal duplicate html id's. id's of "edit-sumit" found in:
 * theme_comment_controls(), theme_search_theme_form(), and
 * theme_search_block_form(). To-do: remove when fixed in core.
 */
function phptemplate_submit($element) {
  static $dupe_ids = array();
  // Prevent duplicate id's.
  if (isset($dupe_ids[$element['#id']])) {
    $dupe_ids[$element['#id']] = $dupe_ids[$element['#id']] + 1;
    $element['#id'] = $element['#id'] .'-'. $dupe_ids[$element['#id']];
  }
  else {
    $dupe_ids[$element['#id']] = 0;
  }
  return theme('button', $element); 
}