function debug ()
{
	var button = document.createElement("button");
	button.style.display = "block !important";
	button.style.width = "100px";
	button.style.height = "20px";
	button.style.position = "fixed";
	button.style.top = "10px";
	button.style.left = "10px";
	button.style.backgroundImage = "none";
	button.style.zIndex = "9";
	button.id = "buttonBoxes";
	button.appendChild(document.createTextNode("Boxes"));
	document.body.appendChild(button);
	button.onclick = function ()
	{
		var string = "";
		for (var y = gridHeight; y > 0; y--)
		{
			for (var x = 1; x <= gridWidth; x++)
			{
				string += (boxes[x][y].hasAddon ? "a" : "–");
				string += (boxes[x][y].hasAddonBox ? "b" : "–");
				string += (boxes[x][y].hasAddonCdKreuz ? "c" : "–");
				string += (boxes[x][y].hasAddonRueckwand ? "r" : "–");
				string += (boxes[x][y].hasAddonGlastuer ? "g" : "–");
				string += " ";
			}
			string += "\n";
		}
		alert(string);
	};

	var button = document.createElement("button");
	button.style.display = "block !important";
	button.style.width = "100px";
	button.style.height = "20px";
	button.style.position = "fixed";
	button.style.top = "10px";
	button.style.left = "120px";
	button.style.backgroundImage = "none";
	button.style.zIndex = "9";
	button.id = "buttonAddons";
	button.appendChild(document.createTextNode("Addons"));
	document.body.appendChild(button);
	button.onclick = function ()
	{
		var string = "";
		for (var i = 0; i < addons.length; i++)
		{
			string += (addons[i].index) + " ";
			string += (addons[i].addonType) + " ";
			string += (addons[i].ausfuehrung) + " @ ";
			string += (addons[i].col) + ":";
			string += (addons[i].row);
			string += "\n";
		}
		alert(string);
	};
}
