function GetCurrencyQuotes(ID){
 euroinvestorint.GlobalAjaxFunctions.GetCurrencyQuotes(ID, callback_GetCurrencyQuotes);
}

function callback_GetCurrencyQuotes(res) {
	if(res != null && res.value != null && res.value.Tables != 0 && res.value.Tables.length == 1)
	{
		var html = [];
		
		html[html.length] = '<table width="100%" cellspacing="0" cellpadding="0">';
		for(var i=0; i<res.value.Tables[0].Rows.length; i++)
		 {
		 if (res.value.Tables[0].Rows[i].CurPrice != '0'){
 		 if ((i%2)==0){
		   html[html.length] = ' <tr class="whiterowalt"><td>&nbsp;<img src="/images/' + res.value.Tables[0].Rows[i].CurSymbol + '_lille.gif" width="18" height="10" border="0" alt="' + res.value.Tables[0].Rows[i].CurName + '">&nbsp;' + res.value.Tables[0].Rows[i].CurName + ' </td><td>&nbsp;<img src="/images/val_graf.gif" border="0" alt="' + res.value.Tables[0].Rows[i].CurSymbol + '" width="13" height="10"></td><td align="right">' + res.value.Tables[0].Rows[i].CurSymbol + '&nbsp;</td><td align="right">' + res.value.Tables[0].Rows[i].CurPrice + '&nbsp;</td></tr> ';
 		  }
		  else{
		   html[html.length] = ' <tr class="whiterow"><td>&nbsp;<img src="/images/' + res.value.Tables[0].Rows[i].CurSymbol + '_lille.gif" width="18" height="10" border="0" alt="' + res.value.Tables[0].Rows[i].CurName + '">&nbsp;' + res.value.Tables[0].Rows[i].CurName + ' </td><td>&nbsp;<img src="/images/val_graf.gif" border="0" alt="' + res.value.Tables[0].Rows[i].CurSymbol + '" width="13" height="10"></td><td align="right">' + res.value.Tables[0].Rows[i].CurSymbol + '&nbsp;</td><td align="right">' + res.value.Tables[0].Rows[i].CurPrice + '&nbsp;</td></tr> ';
		   }
		  }
		 }
		html[html.length] = '</table>';
		 
	 window.document.getElementById("WorldCurrencyQuotes").innerHTML = html.join("");
	}
}

function GetTimeNow(i) {
 euroinvestorint.GlobalAjaxFunctions.GetCachedServerTime(i, callback_GetTimeNow);
}

function callback_GetTimeNow(res){
 window.document.getElementById("TimeRightNow").innerHTML = res.value;
}