// JavaScript Document

 function formatCurrency(num) {
	num = isNaN(num) || num === '' ? 0.00 : num;
	return parseFloat(num).toFixed(2);
}