                                                                     
                                                                     
                                                                     
                                             
$(document).ready(function(){
	$(":text").change(function() {
		//alert(             (   (           ($("#houseLength").val()*1) + ($("#houseWidth").val()*1)        )*2          ) * ($("#wallHeight").val()*1)                     );
		//alert((($("#houseLength").val()*1) + ($("#houseWidth").val()*1))*2) * ($("#wallHeight").val()*1);
		// SET DISPLAY
		//$("#totalArea").html((($("#houseLength").val()*1) + ($("#houseWidth").val()*1))*2) * ($("#wallHeight").val()*1);
		$("#totalArea").html(((($("#houseLength").val()*1) + ($("#houseWidth").val()*1))*2) * ($("#wallHeight").val()*1));
		

                $("#insulBlocks").html(Math.ceil(parseInt($("#totalArea").html()) / .889 * 2));
                $("#8Blocks").html(Math.ceil(parseInt($("#insulBlocks").html()) * .25 * 100) / 100);
                $("#10Blocks").html(Math.ceil(parseInt($("#insulBlocks").html()) * .35 * 100) / 100);
                $("#12Blocks").html(Math.ceil(parseInt($("#insulBlocks").html()) * .55 * 100) /100); 

		
	});
	
	$("#clear").click(function() {
	  $(":text").val("");
	  $(".result").html("");
	  $("#houseLength").focus();
	  return false;
	});
	
	$("#quoteit").click(function() {
		$("#carton").submit();
	});
	
});	