function preisausgeben(Preis,Satz)
{ 
  var preisstring="";
  var newpreis = Preis;
  var testserver = true;
  
  if (top.KART==undefined) testserver=false; else

  if ((top.KART=="server") || (top.KART=="CD")) testserver=true; else testserver=false;

if (testserver)
return top.preisausgeben(Preis,Satz); else

{var str = String(Math.round(newpreis)/100)
var index = str.indexOf(".");
if (index < 0) str = str + ".00";
else {
str = str.substring(0, index + 3);
if (str.length < (index + 3)) str += "0";
}
index = str.indexOf("."); newstr = str.substring(0,index)+","+str.substring(index+1,str.length)
var newstr = newstr + " €";
return newstr
}
}


function preisausgebenAnzahl(Preis,Satz,Anzahl)
{ 
  var preisstring="";
  var newpreis = Preis;
  if ((top.KART=="server") || (top.KART=="CD")) return top.preisausgebenAnzahl(Preis,Satz,Anzahl); else

{var str = String(Math.round(newpreis)/100*Anzahl)
index = str.indexOf(".");
if (index < 0) str = str + ".00";
else {
str = str.substring(0, index + 3);
if (str.length < (index + 3)) str += "0";
}
index = str.indexOf("."); newstr = str.substring(0,index)+","+str.substring(index+1,str.length)
newstr = newstr + " €";
return newstr
}
}

function preisausgeben3(Preis,Satz)
{ 
  var preisstring="";
  var newpreis = Preis;
  var testserver = true;
  
  if (top.KART==undefined) testserver=false; else

  if ((top.KART=="server") || (top.KART=="CD")) testserver=true; else testserver=false;

if (testserver)
return top.preisausgeben3(Preis,Satz); else

{var str = String(Math.round(newpreis)/100)
var index = str.indexOf(".");
if (index < 0) str = str + ".00";
else {
str = str.substring(0, index + 3);
if (str.length < (index + 3)) str += "0";
}
index = str.indexOf("."); newstr = str.substring(0,index)+","+str.substring(index+1,str.length)
var newstr = newstr + " €";
return newstr
}
}

