   return "ansi-" + name
        }
      } else {
        return ""
      }
    }

    function displayName(name) {
      if (name) {
        return name
      } else {
        return "regular"
      }
    }

    for (k in colors) {
      w('<p>On ' + displayName(colors[k]) + '</p>');
      w('<table border="1">');
      for (i in weights) {
        w('<tr>');
        for (j in colors) {
          w('<td class="' + className(colors[k], true) +
                      ' ' + className(weights[i]) + 
           