function calc() 
{
var con_of_box1 =(document.form1.box1.value);
var con_of_box2 =(document.form1.box2.value);
var con_of_box3 =(document.form1.box3.value);

var subtotal = con_of_box1 / con_of_box2 / con_of_box3;


var con_of_box4 =(document.form1.box4.value);
var con_of_box5 =(document.form1.box5.value);
var con_of_box6 =(document.form1.box6.value);
var con_of_box7 =(document.form1.box7.value);

var total = subtotal * con_of_box4 * con_of_box5 * con_of_box6 * con_of_box7 * 3

var monthly = total / 12 / 3

total = total.toFixed(2);
monthly = monthly.toFixed(2);

document.form1.total.value =total; 
document.form1.monthly.value = monthly;

		var dycemcost =(document.form1.dycem_total.value);
		dycemcost = parseFloat(dycemcost);
		
		if(dycemcost >= total){
			var summary = "Alert! The low cost is alarming – your peel off mats may not be ganged together and/ or not peeled regularly. This means that they do not provide effective contamination control. Independent studies have shown use of a single tacky mat removes at most 27% of contamination. Ganging 8 mats together will remove a maximum of 80%. Dycem removes 99.9% of contamination. If you would like a free 30 day trial of a Dycem ProtectaMat please contact us today."
  } else {
	  		var summary = "We have calculated that you could gain significant cost savings by switching to Dycem. With Dycem you get a long term, cost effective and proven method of contamination control."
  }

document.form1.summary.value =summary;
	
}
