function calcTotal()
{
  	num_attending = 0;
  
  	attend_1 = document.getElementById('fname1').value;
  	attend_2 = document.getElementById('fname2').value;
  	attend_3 = document.getElementById('fname3').value;
  	attend_4 = document.getElementById('fname4').value;
  	attend_5 = document.getElementById('fname5').value;
  	attend_6 = document.getElementById('fname6').value;

  	if (attend_1 !== '') 
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break1').disabled = false;
  	}
  	if (attend_2 !== '') 
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break2').disabled = false;
  	}
  	if (attend_3 !== '')
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break3').disabled = false;
  	}
  	if (attend_4 !== '') 
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break4').disabled = false;
  	}
  	if (attend_5 !== '') 
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break5').disabled = false;
  	}
  	if (attend_6 !== '') 
  	{
  		num_attending = num_attending + 1;
  		document.getElementById('break6').disabled = false;
	}
	
  	totalCost = 65 * num_attending;

  	document.getElementById('totalAtt').innerHTML = num_attending;
  	document.getElementById('quantity').value = num_attending;
  	document.getElementById('totalCharge').innerHTML = "$"+totalCost;
}
