function checkBrowserWidth()
{
	var theWidth = getBrowserWidth();
	var theHeight = getBrowserHeight();

	//alert (theWidth+' '+theHeight);
	
	
	var theFrame = document.getElementById("panel");
	
	theFrame.style.width = (theWidth-110)+"px";
	theFrame.style.height = (theHeight-107)+"px";
	
	
	return true;
}




function getBrowserWidth()
{
	if (window.innerWidth)
	{
		return window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth != 0)
	{
		return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
	
	return 0;
}



function getBrowserHeight()
{
	if (window.innerHeight)
	{
		return window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight != 0)
	{
		return document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		return document.body.clientHeight;
	}
	
	return 0;
}



function setFrameSize(width)
{
if (1==2) {
	var theFeature2 = document.getElementById("feature2Inner");
	var theFeature3 = document.getElementById("feature3Inner");
	var theFeature4 = document.getElementById("feature4Inner");
	var theHeight = "auto";

	if (!auto)
	{
		theHeight = parseInt(theFeature2.scrollHeight);

		if (theFeature3 && theFeature3.scrollHeight > theHeight)
		{
			theHeight = parseInt(theFeature3.scrollHeight);
		}

		if (theFeature4 && theFeature4.scrollHeight > theHeight)
		{
			theHeight = parseInt(theFeature4.scrollHeight);
		}

		theHeight += "px";
	}

	theFeature2.style.height = theHeight;
	theFeature3.style.height = theHeight;
	theFeature4.style.height = theHeight;
	
}
alert (width);
	return true;
	
}




function setStylesheet(styleTitle)
{
	var currTag;

	if (document.getElementsByTagName)
	{
		for (var i = 0; (currTag = document.getElementsByTagName("link")[i]); i++)
		{
			if (currTag.getAttribute("rel").indexOf("style") != -1 && currTag.getAttribute("title"))
			{
				currTag.disabled = true;

				if(currTag.getAttribute("title") == styleTitle)
				{
					currTag.disabled = false;
				}
			}
		}
	}
	
	return true;
}
