function calc()
{
	var current 	= document.getElementById('current').value;
	var phones	= document.getElementById('phones').value;
	var trunks	= document.getElementById('trunks').value;
	var locations 	= document.getElementById('locations').value;
	
	var trunk 	= 19.50;
	var location 	= 4.95;
	var seat 	= 2.50;
	var ivr	 	= 45.00;
	
	var cost 	= (    (phones*seat) + (trunks*trunk) + (locations*location) + (ivr)    ).toFixed(2);
	var savings 	= (Math.abs(Math.round((current - cost) * 100) / 100)).toFixed(2);
	var percent	= Math.abs(Math.round((cost / current * 100) - 100));
	var annual	= ((current * 12) - (cost * 12)).toFixed(2);
	
	if(parseFloat(current) < parseFloat(cost)) { savings = (0).toFixed(2); percent = (0).toFixed(2); annual = (0).toFixed(2); }
	
	document.getElementById('cost').innerHTML 		= cost;
	document.getElementById('savings').innerHTML	= savings;
	document.getElementById('percent').innerHTML 	= percent;
	document.getElementById('annual').innerHTML 	= annual;
}

