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,Zloty) {
var Sign='';
var CurBehind=DestCurrency;
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;   CurBehind='&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>';}
if (DestCurrency=='PLN') {Amount=Zloty;  CurBehind='z&#322;';}
var td=document.getElementById(whatID);
if (td!=null) td.innerHTML=Sign+Amount+' '+CurBehind;
}

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';
if (newCur=='PLN') Nom='Z&#322;oty';
td.innerHTML='<b>'+Nom+'</b>';
}
ShowAmount('td10000',1168,1498,998,4090);
ShowAmount('td5000',  878,1138,658,2890);
ShowAmount('td2500',  678, 878,578,2290);
ShowAmount('td1000',  478, 598,398,1690); // ab 2012
ShowAmount('td750',   438, 568,388,1690); // bis 2011
ShowAmount('td300',   288, 368,248,1090); // bis 2011
ShowAmount('td250',   288, 368,248,1090); // ab 2012
ShowAmount('td100',   138, 178,118, 530);
ShowAmount('td50',     69,  89, 62, 270);
ShowAmount('tdfree',   0,0,0,0);
ShowAmount('tdsupport',0,0,0,0);
ShowAmount('tdnet',    84, 109, 69, 330);
} }

