

/*									*/
/* code beside for html web			*/
/* componenet 'return tables'		*/
/*									*/


function show_statistics_table(id)
{
	try
	{


			//	if (show)
			//	{
					var target = document.getElementById('Component.ReturnTables.Show.Table.Value')
					if (target)
					{
						target.value = id;
					}
			//	}



		var parent = document.getElementById('statistics_tables');
		if (parent)
		{
			for (var i=0; i<parent.childNodes.length; i++)
			{
				var table = parent.childNodes.item(i);

				var show = (table.id == id);

				table.style.display = (show) ? 'block' : 'none';

				var img = document.getElementById(table.id + '_button');
				if (img)
				{
					img.src = '../../Shared/Images/icon.folder.' + ((show) ? 'on' : 'off') + '.gif';
				}
			}
		}
	}
	catch (ex)
	{
		throw (ex);
	}
};


/*				*/
/* end of file	*/
/*				*/