﻿function ExchangeRate()
{
	var strHTML='';
	for(var i=0;i<=12;i++)
	{
		if (vForexs[i]!='' && vCosts[i]!='' && vCosts[i]!='-')
		{
			strHTML+="<table border='1' cellpadding='4' cellspacing='0' style='border-collapse: collapse'>";
			strHTML+="<tr>";
			strHTML+="<td width='65' align='center' nowrap>";
			strHTML+=vForexs[i];
			strHTML+="</td>";
			strHTML+="<td width='65' align='center' nowrap>";
			strHTML+=vCosts[i]+" VND";
			strHTML+="</td>";
			strHTML+="</tr>";
			strHTML+="</table>";
			document.getElementById('ExchangeRate1_divEchangeRate').innerHTML=strHTML;
		}
	}
}

function GoldPrice()
{
	var strHTML='';
	strHTML+="<table border='1' cellpadding='0' cellspacing='0' style='border-collapse: collapse' align='center'>";
	strHTML+="<tr>";
    strHTML+="<td width='75' align='center'>"
    strHTML+="Vàng";
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+="Mua";
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+="Bán";
    strHTML+="</td>";
    strHTML+="</tr>";
    strHTML+="<tr>";
    strHTML+="<td width='75' align='center'>";
    strHTML+="SBJ";
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+=vGoldSbjBuy;
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+=vGoldSbjSell;
    strHTML+="</td>";
    strHTML+="</tr>";
    strHTML+="<tr>";
    strHTML+="<td width='75' align='center'>";
    strHTML+="SJC";
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+=vGoldSjcBuy;
    strHTML+="</td>";
    strHTML+="<td width='75' align='center'>";
    strHTML+=vGoldSjcSell;
    strHTML+="</td>";
    strHTML+="</tr>";
	strHTML+="</table>";
	document.getElementById('GoldPrice1_divGoldPrice').innerHTML=strHTML;
}


function showWeather_Lucnv(value)
{
	if (value==1)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblSonLa").value;
	}
	if (value==2)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblHaiPhong").value;
	}
	if (value==3)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblHaNoi").value;
	}
	if (value==4)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblVinh").value;
	}
	if (value==5)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblDaNang").value;
	}
	if (value==6)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblNhaTrang").value;
	}
	if (value==7)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblPleiku").value;
	}
	if (value==8)
	{
		document.getElementById("VnWeather1_lblInfo").innerHTML=document.getElementById("VnWeather1_lblTPHCM").value;
	}
}

