﻿// JScript File
function obj(id)
{
    return document.getElementById(id);
}
function NewWindow(HtmlName,WinName,ToolOptions)
{
    window.open(HtmlName,WinName,ToolOptions);
}
function loadBigGoldChart()
{
    if (bigGoldChart!="")
    {
	    clearTimeout(bigGoldChart);
	    bigGoldChart = "";
    }

    var str = "<a href='http://www.kitco.com/images/live/gold.gif' target='_blank'>"
	    str = str + "<img src='http://www.kitco.com/images/live/gold.gif?nocache=" + new Date().getTime() + "' width='560' height='400' border='0' alt='Live 24 hour Gold Chart' />"
	    str = str + "</a><br />"
    obj('Big_Gold_Chart_1').innerHTML = str;
    bigGoldChart = setTimeout("loadBigGoldChart()",60000);
}
function loadSmallGoldChart()
{
    if (smallGoldChart!="")
    {
	    clearTimeout(smallGoldChart);
	    smallGoldChart = "";
    }
	var str = "<iframe  src='http://www.eximbank.com.vn/WebsiteExRate1/gold_2009.aspx' width='310' height='100' frameborder='0' scrolling='No'></iframe>"
    obj('Small_Gold_Chart').innerHTML = str;
    smallGoldChart = setTimeout("loadSmallGoldChart()",300000);
}
function loadGold_EUR()
{
    if (Gold_EUR!="")
    {
	    clearTimeout(Gold_EUR);
	    Gold_EUR = "";
    }
    var str = ""
    str += "<img alt='' src='http://goldprice.org/NewCharts/gold/images/gold_1d_o_EUR.png?nocache=" + new Date().getTime() +  "' width='180' height='130' border='0' />"
    obj('GoldPic24h_EUR').innerHTML = str;
    Gold_EUR = setTimeout("loadGold_EUR()",60000);
}
function load24hGoldPic()
{
    if (goldPic24h!="")
    {
	    clearTimeout(goldPic24h);
	    goldPic24h = "";
    }
    var str = ""
    str = str + "<img alt='' src='http://www.kitconet.com/charts/metals/gold/t24_au_en_usoz_2.gif?nocache=" + new Date().getTime() +  "' width='180' height='130' border='0' />"
    obj('GoldPic24h').innerHTML = str;
    goldPic24h = setTimeout("load24hGoldPic()",60000);
}
      
var bigGoldChart = "";		  
var smallGoldChart = "";
var Gold_EUR = "";
var goldPic24h = "";

bigGoldChart = setTimeout("loadBigGoldChart()",40000);
smallGoldChart = setTimeout("loadSmallGoldChart()",60000);
Gold_EUR = setTimeout("loadGold_EUR()",60000);
goldPic24h = setTimeout("load24hGoldPic()",50000);
