public static String writeKarnaughMap(KarnaughTable kmap, int nbrVars) {
		int width = nbrVars * 50;
		String s = "";

		s += "<div id=\"cent\" align=\"center\">";

		s += "<h3 class =\"subsubTitle2\">"
				+ Tools.getLocalizedString("KARNAUGH_MAP.Name") + ":" + "</h3>";

		s += "<table width=\"" + width + "\"><tr>";
		s += "<th></th>";

		String[] colomNames = getColonneName(nbrVars);
		String[] linesNames = getLigneName(nbrVars);
		for (int i = 0; i < colomNames.length; i++) {
			s += "<th>" + colomNames[i] + "</th>";
		}
		s += "</tr><tr>";
		for (int i = 0; i < kmap.getRow(); i++) {
			for (int j = 0; j < kmap.getColumn() + 1; j++) {
				if (j == 0)
					s += "<th>" + linesNames[i] + "</th>";
				else {
					if (kmap.getCellValue(i, j - 1))
						s += "<td class=\"ones\">1</td>";
					else
						s += "<td>0</td>";
				}
			}
			s += "</tr><tr>";
		}
		s = s.substring(0, s.length() - 4);
		s += "</table>";
		s += "</div>";
		return s;

	}