var prevval;
function showme(box) {
  name = box.name;
	cssname = box.value;
	str = document.forms.fm.code.value;
	col = document.forms.fm.col.value;
	re = new RegExp(cssname + '.*\n');
	document.forms.fm.code.value = str.replace(re,'');
  if(box.checked != true) {
  	window.status="Resetting '"+name+"' style to '"+box.prevval+"'";
    document.getElementById('exid').style[name]=box.prevval;
  } else {
	  box.prevval = document.getElementById('exid').style[name];
	  window.status="'"+name+"' style had '"+box.prevval+"', setting to '" + col + "'";
    document.getElementById('exid').style[name] = col;
		document.forms.fm.code.value += cssname +": " + col + ";\n";
  }
}
