	
	function OpenPopup(imgSource, imgWidth, imgHeight) 
	{
		var winl = (screen.width - imgWidth) / 2;
		var wint = (screen.height - imgHeight) / 2;
		if (winl < 0) winl = 0;
		if (wint < 0) wint = 0;

		windowprops = "height="+(imgHeight+18)+",width="+(imgWidth+18)+",top="+ wint +",left="+ winl +",location=no,"
		+ "scrollbars=no,menubars=no,toolbars=no,resizable=no,status=no";

		window.open(imgSource, "Popup", windowprops);
	}

	function ShowHide(elmId)
	{
		var element = document.getElementById(elmId);
		element.style.display = (element.style.display == 'none') ? 'block' : 'none';
	}

	function HideAll()
	{
		var element = '';
		for(var i = 0; i < arguments.length; i++)
		{
			element = document.getElementById(arguments[i]);
			element.style.display = 'none';
		}
	}

	function ShowAll()
	{
		var element;
		for(var i = 0; i < arguments.length; i++)
		{
			element = document.getElementById(arguments[i]);
			element.style.display = 'block';
		}
	}