def generate_tabs(tab_name="watering"):
  """Take a parameter for a selected tab and generate a tab list."""
  tabs = []
  for (name, url) in (
    ("Irrigate", "/"),
    ("Log", "/log"),
    ("Reports", "/reports"),
    ("About", "/about")
  ):
    """
    ,("LawnVille", "javascript:window.open('/lawnville', 'lawnville', 'width=800, height=600, status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no')")
    """
    selected = ""
    if tab_name.lower() == name.lower():
      selected = " class=selected"
    tabs.append('<li%s><a href="%s">%s</a></li>' % (selected, url, name))

  return "".join(tabs)