<!--

	function isIE()
	{
		return (document.all != null && document.opera == null)
	}

	function isGecko()
	{
		return navigator.userAgent.toLowerCase().indexOf("gecko") > -1;
	}
	
	function isOpera()
	{
		return document.opera != null
	}


	function getWindowWidth() 
	{
		var windowWidth = 0;
		var nav = navigator.userAgent.toLowerCase();
		if (typeof(window.innerWidth) == 'number') 
		{
			windowWidth = window.innerWidth;
		}
		else 
		{
			if (document.documentElement && document.documentElement.clientWidth) 
			{
				windowWidth = document.documentElement.clientWidth;
			}
			else 
			{
				if (document.body && document.body.clientWidth) 
				{
					windowWidth = document.body.clientWidth;
				}
			}
		}
		if (nav.indexOf("opera") > -1)
		{
			return windowWidth - 4;
		}
		else
		{
			return windowWidth;
		}
	}

	function getWindowHeight() 
	{
		var windowHeight = 0;
		var nav = navigator.userAgent.toLowerCase();
		if (typeof(window.innerHeight) == 'number') 
		{
			windowHeight = window.innerHeight;
		}
		else 
		{
			if (document.documentElement && document.documentElement.clientHeight) 
			{
				windowHeight = document.documentElement.clientHeight;
			}
			else 
			{
				if (document.body && document.body.clientHeight) 
				{
					windowHeight = document.body.clientHeight;
				}
			}
		}
		if (nav.indexOf("opera") > -1)
		{
			return windowHeight - 4;
		}
		else
		{
			return windowHeight;
		}
	}
	
	function getSecureValue(editName)
	{
		var edit = document.getElementById(editName);
		if (edit == null)
		{
			return '';
		}
		
		return edit.value;
	}
	
	function showErrorAndSendFocus(errorMessage, controlToSendFocus)
	{
		alert(errorMessage);
		if (controlToSendFocus != null)
		{
			controlToSendFocus.focus();
		}
	}
	
	function setSecureFocus(controlName)
	{
		try
		{
			var c = document.getElementById(controlName);
			if (c)
			{
				c.focus();
			}
		}
		catch(e) {}
	}
	
	function getById(objId)
	{
		if (objId == null)
		{
			return null;
		}
		
		return document.getElementById(objId);
	}

	function newGuid(stepCount)
	{
		var g = "";

		if (stepCount == null || stepCount < 0)
		{
			stepCount = 32;
		}
		
		for(var i = 0; i < stepCount; i++)
		{
			g += Math.floor(Math.random() * 0xF).toString(0xF);
		}

		return g.toUpperCase();
	}
	
	function hideAllSelects()
	{
		changeSelectsVisibility('hidden');
	}
	
	function showAllSelects()
	{
		changeSelectsVisibility('visible');
	}
	
	function changeSelectsVisibility(visibility)
	{
		var _arrS = document.getElementsByTagName('select');
		for (var i = 0; i < _arrS.length; i++)
		{
			_arrS[i].style.visibility = visibility;
		}
	}
	
//-->