Wouldn't some DOM methods be better? Sure, it's more code, but you probably won't have lockups on NS6 anymore, and it just might work with IE5 Mac
Or something like that, I didn't debug...
var t = document.getElementById('cTable')
var h = document.createElement("h1")
h.text = tableType;
var clickStr = "if (changeType > 2) changeType=10; makeChange(\"" + incolor + "\");";
var styleStr = "background-color:" + incolor + ";";
var i = document.createElement("button");
i.type = "button"
i.onClick = clickStr;
i.style = styleStr;