


function HtmlComponentAssetAllocation()
{
	var element = document.getElementById('58387e3d-fced-406d-8e51-a7ba56fd63ba'); //slct4
	if (element)
	{
		element.onchange = function(e)
		{
			try
			{
				asset_allocation_setview(this.value);
			}
			catch (ex)
			{
				throw (ex);
			}
		};
	}
};



function asset_allocation_setview(id)
{
	try
	{
		//////////////////////////
		// validate argument	//
		//////////////////////////


		if (!id) { return; }


		//////////////////////////////
		// set image and reset rest	//
		//////////////////////////////


		var els = document.getElementById('productinfo_asset_allocation_images'); //IMG
		if (els)
		{
			for (var i=0; i<els.childNodes.length; i++)
			{
				var el = els.childNodes[i];
				if (el.tagName)
				{
					el.style.display = (el.id == 'image_asset_allocation_' + id) ? 'block' : 'none';
				}
			}
		}
	}
	catch (ex)
	{
		throw (ex);
	}
};