function setBg(theRow,theColor) {
if (document.getElementsByTagName) var theCells=theRow.getElementsByTagName('td');
else if (theRow.cells) var theCells=theRow.cells;
     else return false;
var rowCellsCnt=theCells.length;
if (theRow.style) for (var c=0; c<rowCellsCnt; c++) theCells[c].style.backgroundColor=theColor;
return true;
}

function ShowAmount(whatID,Euro,Dollar,Pound) {
var Sign='';
var Amount=Math.floor((Dollar/GetExchangeRate('USD'))*DestRate*1.06); // erst in Euro, dann in Zielwaehrung
if(Amount>0) Amount++;
if(DestCurrency=='EUR') Amount=Euro;
if(DestCurrency=='USD') {Amount=Dollar; Sign='<span style="padding-right:2px">$</span>';}
if(DestCurrency=='GBP') {Amount=Pound; Sign='<span style="padding-right:2px">&pound;</span>';}
var td=document.getElementById(whatID);
if (td!=null) td.innerHTML=Sign+Amount+' '+DestCurrency;
}

function ShowAmounts(newCur) {
if (newCur!=DestCurrency) {
SetDestCurrency(newCur);
var td=document.getElementById('td0');
if(td!=null){
var Nom=DestCurrency;
if(newCur=='EUR') Nom='Euro';
if(newCur=='USD') Nom='US-Dollar';
if(newCur=='GBP') Nom='Pound';
td.innerHTML='<b>'+Nom+'</b>';
}
ShowAmount('td10000',1038,1358,938);
ShowAmount('td5000',738,958,658);
ShowAmount('td2500',588,758,528);
ShowAmount('td750',438,568,388);
ShowAmount('td300',288,368,248);
ShowAmount('td100',138,178,119);
ShowAmount('td50',69,89,62);
ShowAmount('tdfree',0,0,0);
ShowAmount('tdsupport',0,0,0);
ShowAmount('tdnet',84,109,79);
} }
