
	function SylvLayer(strId) // Constructor
	{
		this.strId = strId;
		this.Table = document.getElementById(strId);
	}

	SylvLayer.prototype.Show = function()
	{
		if (this.Table)
		{
			this.Table.style.display = "block";
			if (navigator.userAgent.indexOf("MSIE") == -1)
			{
				var intX = (window.innerWidth / 2) - (this.Table.offsetWidth / 2);
				var intY = (window.innerHeight / 2) - (this.Table.offsetHeight / 2);
				if (intX < 0) intX = 0;
				if (intY < 0) intY = 0;
				this.Table.style.left = intX + "px";
				this.Table.style.top = intY + "px";
			}
			this.Table.style.visibility = "visible";
			if (Doc) Doc.hideAllFormElms(this.strId + "_form", false);
		}
	}

	SylvLayer.prototype.Hide = function()
	{
		if (this.Table)
		{
			this.Table.style.visibility = "hidden";
			if (Doc) Doc.hideAllFormElms(this.strId + "_form", true);
		}
	}