function ShowForexRate()
{
	function AddCurrencyRate(Currency, Rate)
	{
		document.writeln('<tr><td class="Tygia_BoxItem">&nbsp;', Currency, '</td><td class="Tygia_BoxItem" align=right><p align="right">', Rate, '</p></td></tr>');
	}
	if (!AddForexHeader('Forex', txt_tygia, 3)) return;
	if(typeof(vForexs) != 'undefined'){
		for(var i=0;i<vForexs.length;i++){
			if (typeof(vForexs[i]) !='undefined' && typeof(vCosts[i]) !=''){
				AddCurrencyRate(vForexs[i], vCosts[i]);
			}
		}
	}
	AddForexFooter();
}

ShowForexRate();

function AddForexHeader(Name, Header, Buttons, Symbol, AddChildTable)
{
	document.writeln('<table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td>');

	if (Header!='')
	{
		document.writeln('<table width="100%" border=0 cellspacing=0 cellpadding=0 >');
		document.writeln('<tr>');

		if (typeof(Symbol)!='undefined')
		{
			document.writeln('<td height=16 class=subject><img src="', Symbol, '" border=0></td>');
		}

		document.writeln('<td height=16 width="100%" "align=left" class="Tygia_HeaderBox">&nbsp;', Header, '</td>');

		if ((Buttons & 1) && fDSp)
		{
			document.write('<td width=15 align="right" class="Tygia_HeaderBox">');
			document.write('<a href="JavaScript:ItemMinimize(\x27', Name, '\x27)">');
			document.write('<img src="./images/min.gif" name="IDI_', Name, '" border=0>');
			document.write('</a></td>');
		}

		document.writeln('</tr></table>');
	}

	//document.writeln('<table width="100%" border=0 cellspacing=0 cellpadding=0 id="tIDM_', Name, '"><tr><td><div class=BreakLine id="IDM_', Name, '">');
	document.writeln('<table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td id="IDM_', Name, '">');
	document.writeln('<table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td>');
	if (typeof(AddChildTable)=='undefined')
	{
		document.writeln('<div style="position:related; overflow-y: scroll; overflow-x:hidden; height:100px;width:100%;">');
		document.writeln('<table align=center width="100%" cellspacing=0 cellpadding=0 border=0>');
		LastChild = 1;
	}
	else
	{
		LastChild = 0;
	}
	return true;
}

function AddForexFooter()
{
	document.writeln('</table>');
	document.writeln('</div>');
	document.writeln('</td></tr>');
	//document.writeln('<tr><td colspan=1 class=Tygia_BoxItem><p align="center"><i>Ngu&#7891;n: NH Ngo&#7841;i th&#432;&#417;ng VN</p></td></tr>');
	document.writeln('</table>');
	document.writeln('</td></tr></table>');
	document.writeln('</td></tr></table>');
}
