// JavaScript Document

function searchMe() {
	
	if (document.getElementById('aggregates')){ document.getElementById('aggregates').innerHTML = '<a href="/aggregates" target="_parent">Aggregates</a>'; }
	
	if (document.getElementById('asphalt_com_res_mdot')){ document.getElementById('asphalt_com_res_mdot').innerHTML = '<a href="/commercial" target="_parent">Asphalt: Commercial, Residential, MDOT</a>'; }
	
	if (document.getElementById('auger_cast_piles')){ document.getElementById('auger_cast_piles').innerHTML = '<a href="/auger-cast-piles-1" target="_parent">Auger Cast Piles</a>'; }
	
	if (document.getElementById('bore_jack')){ document.getElementById('bore_jack').innerHTML = '<a href="/bore-and-jack" target="_parent">Bore &amp; Jack</a>'; }
	
	if (document.getElementById('concrete_construction_supp')){ document.getElementById('concrete_construction_supp').innerHTML = '<a href="/concrete" target="_parent">Concrete Construction Supplies - sealants, bagged goods-mortar, rebar, anchor bolts, wall ties</a>'; }
	
	if (document.getElementById('concrete_cutting')){ document.getElementById('concrete_cutting').innerHTML = '<a href="/concrete-cutting" target="_parent">Concrete Cutting</a>'; }
	
	if (document.getElementById('saw_diameters')){ document.getElementById('saw_diameters').innerHTML = '<a href="/concrete-cutting" target="_parent">Saw Diameters 14&quot; - 70&quot;</a>'; }
	
	if (document.getElementById('wire_saws')){ document.getElementById('wire_saws').innerHTML = '<a href="/wire-sawing" target="_parent">Wire Saws Available</a>'; }
	
	if (document.getElementById('wall_sawing')){ document.getElementById('wall_sawing').innerHTML = '<a href="/wall-sawing" target="_parent">Wall Sawing</a>'; }
	
	if (document.getElementById('core_drilling')){ document.getElementById('core_drilling').innerHTML = '<a href="/core-drilling" target="_parent">Core Drilling</a>'; }
	
	if (document.getElementById('floor_grinding')){ document.getElementById('floor_grinding').innerHTML = '<a href="/floor-grinding" target="_parent">Floor Grinding</a>'; }
	
	if (document.getElementById('slab_sawing')){ document.getElementById('slab_sawing').innerHTML = '<a href="/slab-sawing" target="_parent">Slab Sawing</a>'; }
	
	if (document.getElementById('masonry_blocks')){ document.getElementById('masonry_blocks').innerHTML = '<a href="/concrete" target="_parent">Concrete Masonry Blocks</a>'; }
	
	if (document.getElementById('pump_truck')){ document.getElementById('pump_truck').innerHTML = '<a href="/pump-truck" target="_parent">Concrete Pump Truck</a>'; }
	
	if (document.getElementById('ready_mix')){ document.getElementById('ready_mix').innerHTML = '<a href="/ready-mix" target="_parent">Concrete Ready Mix</a>'; }
	
	if (document.getElementById('concrete_removal')){ document.getElementById('concrete_removal').innerHTML = '<a href="/concrete-removal" target="_parent">Concrete Removal</a>'; }
	
	if (document.getElementById('crane')){ document.getElementById('crane').innerHTML = '<a href="/crane-services" target="_parent">Crane Service</a>'; }
	
	if (document.getElementById('custom_crushing')){ document.getElementById('custom_crushing').innerHTML = '<a href="/custom-crushing" target="_parent">Custom Crushing</a>'; }
	
	if (document.getElementById('custom_manhole')){ document.getElementById('custom_manhole').innerHTML = '<a href="/manhole-production" target="_parent">Custom Manhole Precast</a>'; }
	
	if (document.getElementById('demolition')){ document.getElementById('demolition').innerHTML = '<a href="/demolition" target="_parent">Demolition</a>'; }
	
	if (document.getElementById('dewatering')){ document.getElementById('dewatering').innerHTML = '<a href="/dewatering" target="_parent">Dewatering</a>'; }
	
	if (document.getElementById('directional_drilling')){ document.getElementById('directional_drilling').innerHTML = '<a href="/directional-drilling" target="_parent">Directional Drilling</a>'; }
	
	if (document.getElementById('earth_moving')){ document.getElementById('earth_moving').innerHTML = '<a href="/earth-moving" target="_parent">Earth Moving / Earth Work</a>'; }
	
	if (document.getElementById('field_load_testing')){ document.getElementById('field_load_testing').innerHTML = '<a href="/field-load-testing" target="_parent">Field Load Testing</a>'; }
	
	if (document.getElementById('foundation_repair')){ document.getElementById('foundation_repair').innerHTML = '<a href="/foundation-repair" target="_parent">Foundation Repair</a>'; }
	
	if (document.getElementById('foundations')){ document.getElementById('foundations').innerHTML = '<a href="/foundation-piers-and-piles" target="_parent">Foundations</a>'; }
	
	if (document.getElementById('geosynthetic')){ document.getElementById('geosynthetic').innerHTML = '<a href="/geosynthetics-installation" target="_parent">Geosynthetic Installation - woven monofilament</a>'; }
	
	if (document.getElementById('hsteel_piling')){ document.getElementById('hsteel_piling').innerHTML = '<a href="/h-steel-piles-1" target="_parent">H Steel Piling</a>'; }
	
	if (document.getElementById('heavy_haul')){ document.getElementById('heavy_haul').innerHTML = '<a href="/heavy-haul-and-freight-logistics" target="_parent">Heavy Haul</a>'; }
	
	if (document.getElementById('helical_piers')){ document.getElementById('helical_piers').innerHTML = '<a href="/helical-piers-2" target="_parent">Helical Piers</a>'; }
	
	if (document.getElementById('helical_tiebacks')){ document.getElementById('helical_tiebacks').innerHTML = '<a href="/helical-tiebacks-1" target="_parent">Helical Tiebacks</a>'; }
	
	if (document.getElementById('land_clearing')){ document.getElementById('land_clearing').innerHTML = '<a href="/land-clearing" target="_parent">Land Clearing</a>'; }
	
	if (document.getElementById('landfill_construction')){ document.getElementById('landfill_construction').innerHTML = '<a href="/landfill-construction" target="_parent">Landfill Construction</a>'; }
	
	if (document.getElementById('gas_collection')){ document.getElementById('gas_collection').innerHTML = '<a href="/landfill-gas-collection-system" target="_parent">Landfill Gas Collection System</a>'; }
	
	if (document.getElementById('large_retaining_walls')){ document.getElementById('large_retaining_walls').innerHTML = '<a href="/retaining-wall-installation" target="_parent">Large-Scale Retaining Walls</a>'; }
	
	if (document.getElementById('laser_screed')){ document.getElementById('laser_screed').innerHTML = '<a href="/laser-screed" target="_parent">Laser Screed</a>'; }
	
	if (document.getElementById('machinery_moving')){ document.getElementById('machinery_moving').innerHTML = '<a href="/machinery-moving" target="_parent">Machinery Moving</a>'; }
	
	if (document.getElementById('manhole_rehab')){ document.getElementById('manhole_rehab').innerHTML = '<a href="/manhole-rehabilitation-sprayroq" target="_parent">Manhole Rehabilitation / Sprayroq</a>'; }
	
	if (document.getElementById('milling')){ document.getElementById('milling').innerHTML = '<a href="/milling" target="_parent">Milling</a>'; }
	
	if (document.getElementById('pipe_fusing')){ document.getElementById('pipe_fusing').innerHTML = '<a href="/pipe-fusing" target="_parent">Pipe Fusing</a>'; }
	
	if (document.getElementById('precast_blocks')){ document.getElementById('precast_blocks').innerHTML = '<a href="/precast-concrete" target="_parent">Precast Blocks</a>'; }
	
	if (document.getElementById('pulverizing')){ document.getElementById('pulverizing').innerHTML = '<a href="/pulverizing" target="_parent">Pulverizing</a>'; }
	
	if (document.getElementById('push_piers')){ document.getElementById('push_piers').innerHTML = '<a href="/push-piers-1" target="_parent">Push Piers</a>'; }
	
	if (document.getElementById('railroad')){ document.getElementById('railroad').innerHTML = '<a href="/site-development" target="_parent">Railroad Side Car Loading Docks</a>'; }
	
	if (document.getElementById('recycled_concrete')){ document.getElementById('recycled_concrete').innerHTML = '<a href="/recycled-concrete" target="_parent">Recycled Concrete</a>'; }
	
	if (document.getElementById('recycling_asphalt')){ document.getElementById('recycling_asphalt').innerHTML = '<a href="/recycling-asphalt-concrete" target="_parent">Recycling of Asphalt</a>'; }
	
	if (document.getElementById('recycling_concrete')){ document.getElementById('recycling_concrete').innerHTML = '<a href="/recycling-asphalt-concrete" target="_parent">Recycling of Concrete</a>'; }
	
	if (document.getElementById('resto_service')){ document.getElementById('resto_service').innerHTML = '<a href="/restoration-service" target="_parent">Restoration Service</a>'; }
	
	if (document.getElementById('retaining_wall_blocks')){ document.getElementById('retaining_wall_blocks').innerHTML = '<a href="/retaining-wall-installation" target="_parent">Retaining Wall Blocks</a>'; }
	
	if (document.getElementById('retaining_wall_install')){ document.getElementById('retaining_wall_install').innerHTML = '<a href="/retaining-wall-installation" target="_parent">Retaining Wall Installation</a>'; }
	
	if (document.getElementById('rigging')){ document.getElementById('rigging').innerHTML = '<a href="/machinery-moving" target="_parent">Rigging</a>'; }
	
	if (document.getElementById('road_widening')){ document.getElementById('road_widening').innerHTML = '<a href="/road-widening" target="_parent">Road Widening</a>'; }
	
	if (document.getElementById('septic_tanks')){ document.getElementById('septic_tanks').innerHTML = '<a href="/septic-tanks" target="_parent">Septic Tanks</a>'; }
	
	if (document.getElementById('sheet_piling')){ document.getElementById('sheet_piling').innerHTML = '<a href="/sheet-piles-1" target="_parent">Sheet Piling</a>'; }
	
	if (document.getElementById('site_dev')){ document.getElementById('site_dev').innerHTML = '<a href="/site-development" target="_parent">Site Development</a>'; }
	
	if (document.getElementById('snowplowing')){ document.getElementById('snowplowing').innerHTML = '<a href="/snowplowing" target="_parent">Snowplowing</a>'; }
	
	if (document.getElementById('soil_retention')){ document.getElementById('soil_retention').innerHTML = '<a href="/earth-retention-tiebacks" target="_parent">Soil Retention</a>'; }
	
	if (document.getElementById('trucking')){ document.getElementById('trucking').innerHTML = '<a href="/trucking-for-hire" target="_parent">Trucking-for-Hire</a>'; }
	
	if (document.getElementById('gas_line_install')){ document.getElementById('gas_line_install').innerHTML = '<a href="/underground-sewer-water-installation" target="_parent">Underground Gas Pipe Line Installation</a>'; }
	
	if (document.getElementById('underground_utilities')){ document.getElementById('underground_utilities').innerHTML = '<a href="/underground-sewer-water-installation" target="_parent">Underground Utilities Installation</a>'; }
	
	if (document.getElementById('vacuum_truck')){ document.getElementById('vacuum_truck').innerHTML = '<a href="/vacuum-truck" target="_parent">Vacuum Truck</a>'; }
	
	if (document.getElementById('waste_water')){ document.getElementById('waste_water').innerHTML = '<a href="/waste-water-treatment-facility-construction" target="_parent">Waste Water Treatment Facility Construction</a>'; }
	
	if (document.getElementById('wood_piling')){ document.getElementById('wood_piling').innerHTML = '<a href="/wood-piles-1" target="_parent">Wood Piling</a>'; }
	
	
	
}

function swapUP() {
		
	
		window.parent.document.getElementById('miMap').src = "/map/counties/upper_peninsula.gif";
		
		var t = document.getElementById("up_west").style.top;
		var l = document.getElementById("up_west").style.left;

		osTop = 594;
		osLeft = -453;
		
		
		window.parent.document.getElementById("highlight").style.position = "relative";
		window.parent.document.getElementById("highlight").style.top = t-osTop+"px";
		window.parent.document.getElementById("highlight").style.left = l-osLeft+"px";
		window.parent.document.getElementById("highlight").style.zIndex = 1;
		window.parent.document.getElementById("highlight").style.color = "#FFF";
		window.parent.document.getElementById("highlight").style.padding = "5px";
		window.parent.document.getElementById("displayText").innerHTML = "Upper Peninsula";
		
		window.parent.document.getElementById("highlight").style.display = "inline";
		window.parent.document.getElementById("highlight").style.visibility = "visible";
		
		
		
}


function spotLight(me) {
	theUP = "";
	myId = me.id;
	
	
	if (myId == "Upper Peninsula"){
		window.frames[0].document.getElementById('up_west').src = "/map/counties/upper_peninsula1.gif";
		theUP = "ya";
	}else{
		theUP = "nope";
		window.frames[0].document.getElementById('up_west').src = "/map/map01.gif";
	}
	  myIdLower = myId.toLowerCase();
	  myMap = myIdLower.replace(" ", "_");
	  myMapURL = "/map/counties/"+myMap+".gif";
	
		document.getElementById('miMap').src = myMapURL;
	
	
		var i, x = [], y = [];
		var c = $(me).attr('coords').split(',');
		for (i=0; i < c.length; i++){
 			x.push( c[i++] );
 			y.push( c[i] );
		}
		
		var t = y.sort(num)[0];
		var l = x.sort(num)[0];

		
		if (myId == "Upper Peninsula"){
			osTop = 665;
			osLeft = -450;
		}else{
			osTop = 698;
			osLeft = -508;
		}
		
		
		
		
		document.getElementById("highlight").style.position = "relative";
		document.getElementById("highlight").style.top = t-osTop+"px";
		document.getElementById("highlight").style.left = l-osLeft+"px";
		document.getElementById("highlight").style.zIndex = 1;
		document.getElementById("highlight").style.color = "#FFF";
		document.getElementById("highlight").style.padding = "5px";
		document.getElementById("displayText").innerHTML = me.id;
		
		document.getElementById("highlight").style.display = "inline";
		document.getElementById("highlight").style.visibility = "visible";
		
	
}


function hideMe(){
	document.getElementById("highlight").style.visibility = "hidden";
	//document.getElementById("highlight").style.display = "none";
}

function cursor(){
	document.body.style.cursor = 'default';
}


function num(a, b){ return (a-b); }




<!-- Rollovers
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function turnDivOn() {
	myURL = document.location.href;
	
	if (myURL == "http://www.teamelmers.com/"){
  		document.getElementById("signfloater").style.display = "inline";
	}
}
//-->

<!-- Email thing
function testEmail(prt1,prt2,id){
//redirect to mailto
window.location = 'mailto:'+prt1+'@'+prt2;
return false;
}//-->


// CALCULATORS 
// 1- RECTANGULAR CONCRETE CALCULATOR
function rectCalc(type) {
	
	if (document.getElementById("rccInchL").checked == true) {
		l = Number(document.getElementById("rccLength").value)/12;
	}else{
		l = Number(document.getElementById("rccLength").value);
	}
	
	if (document.getElementById("rccInchW").checked == true) {
		w = Number(document.getElementById("rccWidth").value)/12;
	}else{
		w = Number(document.getElementById("rccWidth").value);
	}
	
	if (document.getElementById("rccInchD").checked == true) {
		d = Number(document.getElementById("rccDepth").value)/12;
	}else{
		d = Number(document.getElementById("rccDepth").value);
	}

	
	//if (document.getElementById("rccInch").checked == true){
		//l = Number(document.getElementById("rccLength").value)/12;
		//w = Number(document.getElementById("rccWidth").value)/12;
		//d = Number(document.getElementById("rccDepth").value)/12;
	//}else{
		//l = Number(document.getElementById("rccLength").value);
		//w = Number(document.getElementById("rccWidth").value);
		//d = Number(document.getElementById("rccDepth").value);
	//}
		
		a = Math.round(l*w*d/27*100)/100;
		document.getElementById("rccResults").value = a;
}

function convert(val,myId) {
	
	//Rectangular Concrete Calculator Convert
	
	if (val == "feet"){
		l = Number(document.getElementById("rccLength").value)/12;
		w = Number(document.getElementById("rccWidth").value)/12;
		d = Number(document.getElementById("rccDepth").value)/12;
		
	}

	if (val == "inch"){
		l = Number(document.getElementById("rccLength").value)*12;
		w = Number(document.getElementById("rccWidth").value)*12;
		d = Number(document.getElementById("rccDepth").value)*12;
		
		
	}
	
	/*
		
	if (myId == "rccL"){
		document.getElementById("rccLength").value = l;
	}
	
	if (myId == "rccW"){
		document.getElementById("rccWidth").value = w;
	}
	
	if (myId == "rccD"){
		document.getElementById("rccDepth").value =  d;
	}
	*/
}


// 2 - ROUND CONCRETE CALCULATOR
	
function roundCalc() {	

	
	if (document.getElementById("rdcInchD").checked == true){
		dia = Number(document.getElementById("rdcDiameter").value)/12;
	}else{
		dia = Number(document.getElementById("rdcDiameter").value);
	}
		
	if (document.getElementById("rdcInchH").checked == true){
		dp = Number(document.getElementById("rdcDepth").value)/12;
	}else{
		dp = Number(document.getElementById("rdcDepth").value);
	}	
		
		
		rad	= dia/2;
		radSq = rad * rad;
		pie = 3.14159;
		
		a = Math.round(pie*radSq*dp/27*1000)/1000;
		document.getElementById("rdcResults").value = a;
}

function convertRound(val,myId) {
	
	//Round Concrete Calculator Convert
	
	
	if (val == "feet"){
		
		w = Number(document.getElementById("rdcDiameter").value)/12;
		d = Number(document.getElementById("rdcDepth").value)/12;
		
	}

	if (val == "inch"){
		
		w = Number(document.getElementById("rdcDiameter").value)*12;
		d = Number(document.getElementById("rdcDepth").value)*12;
		
	}
	/*	
		
	if (myId == "rdcD"){
		document.getElementById("rdcDiameter").value = w;
	}
	
	if (myId == "rdcH"){
		document.getElementById("rdcDepth").value = d;
	}
	*/
	
	
}

// 3 - BLOCK COURSE CALCULATOR


function convertBlock(val) {
	
	//Round Concrete Calculator Convert
	
	if (val == "feet"){
		h = Number(document.getElementById("blcCrsHeight").value)/12;
	}

	if (val == "inch"){
		h = Number(document.getElementById("blcCrsHeight").value)*12;
	}
		
	
		// document.getElementById("blcCrsHeight").value = h;
}


function convertBlockPerCours(val) {
	
	//Round Concrete Calculator Convert
	
	if (val == "feet"){
		l = Number(document.getElementById("linealFt").value)/12;
	}

	if (val == "inch"){
		l = Number(document.getElementById("linealFt").value)*12;
	}
		
	
		// document.getElementById("linealFt").value = l;
}


function convertTotal(val,myId) {
	
	//Round Concrete Calculator Convert
	
	
	if (val == "feet"){
		
		h = Number(document.getElementById("ttlBlckHeight").value)/12;
		l = Number(document.getElementById("ttlLinealFt").value)/12;
		
	}

	if (val == "inch"){
		
		h = Number(document.getElementById("ttlBlckHeight").value)*12;
		l = Number(document.getElementById("ttlLinealFt").value)*12;
		
	}
		
	
	/*
		
	if (myId == "ttlH"){
		document.getElementById("ttlBlckHeight").value = h;
	}
	
	if (myId == "ttlF"){
		document.getElementById("ttlLinealFt").value = l;
	}
	*/
	
}

function blockCalc(val) {
	
	//COURSE
	if (val == "course"){
	
			if (document.getElementById("blcCrsInch").checked == true){
			h = Number(document.getElementById("blcCrsHeight").value)/12;
			
		}else{
			h = Number(document.getElementById("blcCrsHeight").value);
	
		}
		
		crs = Math.round(h/2*3*100)/100;
		document.getElementById("blcCrsResluts").value = crs;
		document.getElementById("ttlBlckHeight").value = crs;
	}
	
	//BLOCK PER COURSE
	if (val == "bpCourse"){
	
		if (document.getElementById("perCrsInch").checked == true){
			l = Number(document.getElementById("linealFt").value)/12;
			
		}else{
			l = Number(document.getElementById("linealFt").value);
	
		}
		
		perCrs = Math.round(l/4*3*100)/100;
		document.getElementById("blcPerCrsResluts").value = perCrs;
		document.getElementById("ttlLinealFt").value = perCrs;
	}
	
	//TOTAL
	if (val == "total"){
	
		//if (document.getElementById("ttlInch").checked == true){
			//h = Number(document.getElementById("ttlBlckHeight").value)/12;
			//l = Number(document.getElementById("ttlLinealFt").value)/12;
			
	//	}else{
		//	h = Number(document.getElementById("ttlBlckHeight").value);
			//l = Number(document.getElementById("ttlLinealFt").value);
	
	//	}
		
		totalBlocks = Math.round(crs*perCrs*100)/100;
		
		document.getElementById("totalBlock").value = totalBlocks;
	}
}

function stoneCalc() {
	
	if (document.getElementById("stnInchL").checked == true) {
		l = Number(document.getElementById("stnLength").value)/12;
	}else{
		l = Number(document.getElementById("stnLength").value);
	}
	
	if (document.getElementById("stnInchW").checked == true) {
		w = Number(document.getElementById("stnWidth").value)/12;
	}else{
		w = Number(document.getElementById("stnWidth").value);
	}
	
	if (document.getElementById("stnInchD").checked == true) {
		d = Number(document.getElementById("stnDepth").value)/12;
	}else{
		d = Number(document.getElementById("stnDepth").value);
	}

	
	//if (document.getElementById("rccInch").checked == true){
		//l = Number(document.getElementById("rccLength").value)/12;
		//w = Number(document.getElementById("rccWidth").value)/12;
		//d = Number(document.getElementById("rccDepth").value)/12;
	//}else{
		//l = Number(document.getElementById("rccLength").value);
		//w = Number(document.getElementById("rccWidth").value);
		//d = Number(document.getElementById("rccDepth").value);
	//}
		
		a = l*w*d/27;
		b = a * 1.15;
		c = Math.round(b*100)/100;
		
 		document.getElementById("stnResults").value = c;
}


function aggCalc() {
	
	
	if (document.getElementById("aggInchL").checked == true) {
		l = Number(document.getElementById("aggLength").value)/12;
	}else{
		l = Number(document.getElementById("aggLength").value);
	}
	
	if (document.getElementById("aggInchW").checked == true) {
		w = Number(document.getElementById("aggWidth").value)/12;
	}else{
		w = Number(document.getElementById("aggWidth").value);
	}
	
	if (document.getElementById("aggInchD").checked == true) {
		d = Number(document.getElementById("aggDepth").value)/12;
	}else{
		d = Number(document.getElementById("aggDepth").value);
	}

	
	//if (document.getElementById("rccInch").checked == true){
		//l = Number(document.getElementById("rccLength").value)/12;
		//w = Number(document.getElementById("rccWidth").value)/12;
		//d = Number(document.getElementById("rccDepth").value)/12;
	//}else{
		//l = Number(document.getElementById("rccLength").value);
		//w = Number(document.getElementById("rccWidth").value);
		//d = Number(document.getElementById("rccDepth").value);
	//}
	
	myType = document.getElementById("aggType").value;
	
	
	
	if (myType == "stone"){
		
		a = l*w*d/27;
		b = a * 1.15;
		c = Math.round(b*100)/100;
	
	}
	
	if (myType == "sand"){
		
		a = l*w*d/27;
		b = a * 1.25;
		c = Math.round(b*100)/100;
	
	}
	
	if (myType == "gravel"){
		
		a = l*w*d/27;
		b = a * 1.30;
		c = Math.round(b*100)/100;
	
	}
				
 		document.getElementById("aggResults").value = c;
}

function grvCalc() {
	
	
	if (document.getElementById("grvInchL").checked == true) {
		l = Number(document.getElementById("grvLength").value)/12;
	}else{
		l = Number(document.getElementById("grvLength").value);
	}
	
	if (document.getElementById("grvInchW").checked == true) {
		w = Number(document.getElementById("grvWidth").value)/12;
	}else{
		w = Number(document.getElementById("grvWidth").value);
	}
	
	if (document.getElementById("grvInchD").checked == true) {
		d = Number(document.getElementById("grvDepth").value)/12;
	}else{
		d = Number(document.getElementById("grvDepth").value);
	}

	
	//if (document.getElementById("rccInch").checked == true){
		//l = Number(document.getElementById("rccLength").value)/12;
		//w = Number(document.getElementById("rccWidth").value)/12;
		//d = Number(document.getElementById("rccDepth").value)/12;
	//}else{
		//l = Number(document.getElementById("rccLength").value);
		//w = Number(document.getElementById("rccWidth").value);
		//d = Number(document.getElementById("rccDepth").value);
	//}
		
		a = l*w*d/27;
		b = a * 1.30;
		c = Math.round(b*100)/100;
		
 		document.getElementById("grvResults").value = c;
}







