var myBrowserName = navigator.appName;
var ie4 = document.all
var nn4 = document.layers
// Only 4.0 or greater browsers support the screen property so check for version before getting
// screen resolution or colors with the "if" statement below.
if (ie4 || nn4)
{
	var screenHeight = screen.height;
	var screenWidth = screen.width;
	var availableHeight = screen.availHeight;
	var availableWidth = screen.availWidth;
	var scrColorsCount = screen.colorDepth;
	var colors = "0";
	
	if (myBrowserName == 'Microsoft Internet Explorer')
	{
		if (scrColorsCount <= 4)
		{
			colors = "16"
		}
		else
		{
			if (scrColorsCount <= 8)
			{
				colors = "256"
			}
			else
			{
				if (scrColorsCount <= 16)
				{
					colors = "64k"
				}
				else
				{
					if (scrColorsCount <= 24)
					{
						colors = "1.6 Million"
					}	
				}	
			}
		}
	}
	else
	{
		if (myBrowserName == 'Netscape')
		{
			if (scrColorsCount <= 4 )
			{
				colors = "16"
			}
			else
			{
				if (scrColorsCount == 18)
				{
					colors = "256"
				}
				else
				{
					if (scrColorsCount == 16)
					{
						colors = "64k"
					}
					else
					{
						if (scrColorsCount == 24)
						{
							colors = "1.6 Million"
						}	
					}	
				}
			}
		}
	}

		document.forms[0].hidScreenHeight.value = screenHeight
		document.forms[0].hidScreenWidth.value = screenWidth
		document.forms[0].hidAvailableHeight.value = availableHeight
		document.forms[0].hidAvailableWidth.value = availableWidth
		document.forms[0].hidColors.value = colors
		

}