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) {
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;
var td=document.getElementById(whatID);
if (td!=null) td.innerHTML=Amount+' '+DestCurrency;
}

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