
// When the DOM is ready...
$(function(){
	

	
			
	
	//Individual Building Calc
			$("#icalcbutton").click(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "ibformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		

$("#icalcform select").change(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "ibformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		
$("#icalcform input[type=text]").blur(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "ibformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});


//Enviro Calc
			$("#ecalcbutton").click(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "eiformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		

$("#ecalcform select").change(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "eiformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		
$("#ecalcform input[type=text]").blur(function(){
			var restrooms = $("#restrooms").val();
			var fixtures = $("#fixtures").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		var chempercent = $("#chempercent").val();
		var kaivaccost = $("#kaivaccost").val();
		var numkaivac = $("#numkaivac").val();
		var equip1 = $("#equip1").val();
		var equip1qty = $("#equip1qty").val();
		var equip2 = $("#equip2").val();
		var equip2qty = $("#equip2qty").val();
		var equip3 = $("#equip3").val();
		var equip3qty = $("#equip3qty").val();
		var equip4 = $("#equip4").val();
		var equip4qty = $("#equip4qty").val();
		var equip5 = $("#equip5").val();
		var equip5qty = $("#equip5qty").val();
		var equip6 = $("#equip6").val();
		var equip6qty = $("#equip6qty").val();
		var equip7 = $("#equip7").val();
		var equip7qty = $("#equip7qty").val();
		var equip8 = $("#equip8").val();
		var equip8qty = $("#equip8qty").val();
		$.ajax({
   type: "POST",
   url: "eiformprocess2.php",
   data: "restrooms=" + restrooms + "&fixtures=" + fixtures + "&timescleaned=" + timescleaned + "&pay=" + pay + "&chempercent=" + chempercent + "&kaivaccost=" + kaivaccost + "&numkaivac=" +numkaivac + "&equip1=" + equip1 + "&equip1qty=" + equip1qty + "&equip2=" + equip2 + "&equip2qty=" + equip2qty + "&equip3=" + equip3 + "&equip3qty=" + equip3qty + "&equip4=" + equip4 + "&equip4qty=" + equip4qty + "&equip5=" + equip5 + "&equip5qty=" + equip5qty + "&equip6=" + equip6 + "&equip6qty=" + equip6qty + "&equip7=" + equip7 + "&equip7qty=" + equip7qty + "&equip8=" + equip8 + "&equip8qty=" + equip8qty,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});


	
/*
	//School District Calc
		$("#scalcbutton").click(function(){
			var students = $("#students").val();
			var machines = $("#machines").val();
			var schools = $("#schools").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		$.ajax({
   type: "POST",
   url: "sdformprocess.php",
   data: "students=" + students + "&schools=" + schools + "&machines=" + machines + "&timescleaned=" + timescleaned + "&pay=" + pay,
   success: function(html){
     $("#calcresults").html(html);
        }
 });	
	//return false;		
		});
*/


//KaiMotion Calc

  

	

			$("#kmcalcbutton").click(function(){
			var sqfoot = $("#sqfoot").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		
		$.ajax({
   type: "POST",
   url: "kmformprocess2.php",
    data: "sqfoot=" + sqfoot + "&timescleaned=" + timescleaned + "&pay=" + pay,
       success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		

$("#kmcalcform select").change(function(){
			var sqfoot = $("#sqfoot").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		
		$.ajax({
   type: "POST",
   url: "kmformprocess2.php",
   data: "sqfoot=" + sqfoot + "&timescleaned=" + timescleaned + "&pay=" + pay,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});
		
$("#kmcalcform input[type=text]").blur(function(){
			var sqfoot = $("#sqfoot").val();
		var timescleaned = $("#timescleaned").val();
		var pay = $("#pay").val();
		$.ajax({
   type: "POST",
   url: "kmformprocess2.php",
  data: "sqfoot=" + sqfoot + "&timescleaned=" + timescleaned + "&pay=" + pay,
   success: function(html){
     $("#calcresults").html(html);
     Cufon.replace('h2');
     
        }
 });	
	//return false;		
		});

	
	
	
	
});
