function ChangeBorderColor(sel)
	{
	sel.style.backgroundColor = sel.options[sel.selectedIndex].style.backgroundColor;
	sel.style.color = sel.options[sel.selectedIndex].style.color;
	}

function init()
{
if((!document.all && document.getElementById) || (window.opera && document.addEventListener))
	{document.getElementById("idTableOfTables").style.display="none";}
	
	else if(document.all && document.getElementById)
		{
		document.getElementById("idLabelBackgroundColor").style.display="none";
		document.getElementById("idLabelForegroundColor").style.display="none";
		document.getElementById("idBR1").style.display="none";
		document.getElementById("idBR2").style.display="none";
		document.getElementById("idLabelMozBorderRadius").style.display="none";
		};
	
		/* Resetting displayed default selected values of form select controls on reloading */
		document.forms[0].BackgroundColor.selectedIndex = 6;
		document.forms[0].BackgroundColor.style.backgroundColor = document.forms[0].BackgroundColor.options[6].style.backgroundColor;
		document.forms[0].BackgroundColor.style.color = document.forms[0].BackgroundColor.options[6].style.color;
}