// JavaScript Document


		
    function calc_square (height, width, depth) {
			var h = parseFloat (height);
			var w = parseFloat (width);
			var de = parseFloat (depth);
			var df = de / 12;
			//return Math.ceil (h * w * df);
			return Math.round ((h * w) * 100)/100;
		}
		function calc_circle (diam, cdepth) {
			var d = parseFloat (diam);
			var cd = parseFloat (cdepth);
			var cdf = cd / 12;
			var r = d * 0.5;
			return Math.round (((r * r) * 3.1452) * 100)/100;
		}
		
		function do_square () {
			var h = document.aspnetForm.height.value;
			var w = document.aspnetForm.width.value;
			var de = document.aspnetForm.depth.value;
			document.aspnetForm.area.value = calc_square (h, w);
			document.aspnetForm.cubic.value = Math.round (((document.aspnetForm.area.value * (de / 12 ) )/ 27) * 100)/100;
			document.aspnetForm.tons.value = Math.round ((document.aspnetForm.cubic.value * 1.4) * 100)/100;
			return false;
		}
		function do_circle () {
			var d = document.aspnetForm.diam.value;
			var cd = document.aspnetForm.cdepth.value;
			document.aspnetForm.area.value = calc_circle (d);
			document.aspnetForm.cubic.value = Math.round (((document.aspnetForm.area.value * (cd / 12))  / 27) * 100)/100;
			document.aspnetForm.tons.value = Math.round ((document.aspnetForm.cubic.value * 1.4) * 100)/100;
			return false;
		}