	//----------------------------------------------------------------------
	// FUNCTION:    moneyformat
	// PARAMETERS:  Zahl welche Formatiert werden soll
	// RETURNS:     Formatierte Nummer
	// PURPOSE:     Formatiert eine Komma- oder Ganzzahl in eine Währungsangabe
	//----------------------------------------------------------------------
	function moneyformat(value) {

		var amount = parseFloat(value);
		if (isNaN(amount)) { return moneyformat(0); }
		
	  var amount  = ""+Math.round(amount * 100);
    cents = amount.substring(amount.length-2, amount.length).padright(2,'0');
    euro = amount.substring(0,amount.length-2).padright(1,'0');

	   return(euro + "," + cents+" €");
	}
