/*--------------Holdlink()---------------*/
function holdlink(id, sub_id){
	if(id=='services'){
		document.getElementById(id).className='current';
		document.getElementById(sub_id).className='currentsub';
	}else
		document.getElementById(id).className='current';
}

/*--------------Holdlink()---------------*/

/*--------------------------popup() ----------------------------*/
/*function requestQuote()
{

	var NewWin3;
	NewWin3=window.open("requestQuote.htm",'NewWin1','height=435,width=600,top=10,left=150,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin3.focus();
}*/
/*--------------------------popup() ----------------------------*/

/*-----------------------calculator function---------------------*/
var prvlink='linkGravel';

function changeCalc(id)
	{
		document.getElementById(prvlink).className='';
	 	document.getElementById(id).className='current';
		prvlink=id;
		if(id=='linkGravel')
		document.getElementById('calcHeader').innerHTML='Gravel & Sand';
	 	else if(id=='linkMulch')
		document.getElementById('calcHeader').innerHTML='Mulch';
		else
		document.getElementById('calcHeader').innerHTML='Planting Soil';
	}
/*-----------------------calculator function---------------------*/

/*------------include function---------------------*/
function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}
/*------------include function---------------------*/
