// JavaScript Document

function updateForm() {
	total = 0;
	product1 = (document.orderform.elements['product1'].value - 0)*32;
	product2 = (document.orderform.elements['product2'].value - 0)*44;
	product3 = (document.orderform.elements['product3'].value - 0)*46.50;
	product4 = (document.orderform.elements['product4'].value - 0)*46.50;
	product5 = (document.orderform.elements['product5'].value - 0)*18.6;
	product6 = (document.orderform.elements['product6'].value - 0)*18.6;
	document.orderform.elements['product1_t'].value = product1.toFixed(2);
	document.orderform.elements['product2_t'].value = product2.toFixed(2);
	document.orderform.elements['product3_t'].value = product3.toFixed(2);
	document.orderform.elements['product4_t'].value = product4.toFixed(2);
	document.orderform.elements['product5_t'].value = product5.toFixed(2);
	document.orderform.elements['product6_t'].value = product6.toFixed(2);
	total = product1 + product2 + product3 + product4 + product5 + product6;
	
	document.orderform.elements['total'].value = total.toFixed(2);
}

function submitAlert() {
	alert("Thank You for your request!  A MicroSoy representative will be in contact with you soon.");
}

function submitAlert2() {
	alert("Thank You for your order request!  A confirmation email has been sent to the provided email address.  A MicroSoy representative will be in contact with you soon.");
}
