<!-- new EPA calculatorfunction round(number, decplaces){return (Math.round(number*Math.pow(10,decplaces)))/Math.pow(10,decplaces)}function calculateMpg(){var cityIntercept = 0.003259var citySlope = 1.1805var highwayIntercept = 0.001376var highwaySlope = 1.3466if (document.calculator.cityOld.value==""||document.calculator.cityOld.value==null){        window.alert("You must enter the city MPG.")}else if (document.calculator.highwayOld.value==""||document.calculator.highwayOld.value==null){		window.alert("You must enter the highway MPG.")}else if (isNaN(parseFloat(document.calculator.cityOld.value))||isNaN(parseFloat(document.calculator.highwayOld.value))){	window.alert("The MPG must be a number")	}else{	var oldCity = parseInt(document.calculator.cityOld.value)		var oldHighway =parseInt(document.calculator.highwayOld.value)var newCity = Math.round(1/(cityIntercept + (citySlope/round((oldCity/.9),1))));var newHighway = Math.round(1/(highwayIntercept + (highwaySlope/round((oldHighway/.78),1))));document.calculator.cityNew.value=newCity;document.calculator.highwayNew.value=newHighway;}}function clearMPG(){    document.calculator.cityNew.value=""    document.calculator.highwayNew.value=""    }// -->