function runCSS(FORM)
{
	var cssWin=window.open("","cssWin","height=575,width=775,left=0,top=0,scrollbars=yes,resizable=yes");
	cssWin.document.clear();
	cssWin.document.write(FORM.htmlcode.value);
	cssWin.document.close();
	cssWin.focus();
}

var tables=new Array("tblFonts","tblText","tblBgAndColor","tblBordersAndMargins","tblLists","tblPosAndVis","tblMouse");
function show(TABLE)
{
	for (i=0; i < tables.length; i++)
	{
		document.getElementById(tables[i]).style.display="none";
	}
	document.getElementById(TABLE).style.display="block";
}
function showAll()
{
	for (i=0; i < tables.length; i++)
	{
		document.getElementById(tables[i]).style.display="block";
	}
}

function init()
{
	if (location.hash.length > 0)
	{
		for (i=0; i < tables.length; i++)
		{
			if (tables[i]=="tbl"+location.hash.substr(1,location.hash.length-1))
			{
				show(tables[i]);
				break;
			}
		}
	}
}

window.onload=init;