function formatPrice(price) {
		if(isNaN(price)) {
				return price;
		}
		valueStr = price.toString();
		if(valueStr.substr(valueStr.length-2, 1) == '.' || valueStr.substr(valueStr.length-2, 1) == ',') {
				return valueStr.substr(0, valueStr.length-2)
								+ ','
								+ valueStr.substr(valueStr.length-1, 1)
								+ '0';
		} else if(valueStr.substr(valueStr.length-3, 1) == '.') {
				return valueStr.substr(0, valueStr.length-3)
								+ ','
								+ valueStr.substr(valueStr.length-2, 2);
		} else if(parseInt(price) == price) {
				return price + ',-';
		} else {
				return price;
		}
}
