function formatPrice (flPrice,iPlaces){
	iPlaces = (!iPlaces ? 2 : iPlaces);
	flPrice = Math.round(flPrice*Math.pow(10,iPlaces))/Math.pow(10,iPlaces);
	var szPrice = "" + flPrice;
	if (szPrice.indexOf(".", 0) != -1){
		iNumberAfterThePoint = szPrice.length - szPrice.indexOf(".", 0);
		if  (iNumberAfterThePoint < 3){
			szPrice = szPrice + "0";
		}
		if (szPrice.substring (0,1) == '0'){
			szPrice = szPrice.substring (1,szPrice.length);
		}
	}
	else{
		szPrice = szPrice + ".00";
	}
	// Adds a zero to the front if < £1
	if(szPrice.indexOf(".") == 0){
		szPrice = "0" + szPrice;
	}
	return (szPrice);
}