	function PageContentHeight() {
		//Auth: Simon C, Kallide.com 
		//Date: Oct 2006
		//Summary:
		//this function gets the total height of all box elements in the left 
		//hand column (including black 7px high spacer divs) and deducts this
		//total from the total height of the right column.
		//this gives us the difference in heights and we resize the contact box 
		//with this difference.
		
		//IMPORTANT NOTE: at the moment, this caters for having:
			//1. a nav box (NOT optional)
			//2. a buy box (optional - buy pages don't have this)
			//3. a green box (NOT optional)
			//4. 2 pest control boxes (optional)
			//5. a contact us box (optional - contact page doesn't have one)
			//6. an image box (optional)
			//6. up to 5 spacers (Min of 2, others optional - number correctly, i.e. always 1, 2...)
		//if this changes, this code needs to be altered.
		
		//get the ID's of the various elements
		var PageContentID = document.getElementById('page-content');
		var LeftColumnID = document.getElementById('page-content-left-column');

		var boxlogonavID = document.getElementById('box-logo-nav');
		var boxbuyonlineID = document.getElementById('box-buyonline');
		var boxgreenID = document.getElementById('box-green');
		var pestctrl1ID = document.getElementById('pest-ctrl-1');
		var pestctrl2ID = document.getElementById('pest-ctrl-2');
		var spacer1ID = document.getElementById('spacer1');
		var spacer2ID = document.getElementById('spacer2');
		var spacer3ID = document.getElementById('spacer3');
		var spacer4ID = document.getElementById('spacer4');
		var spacer5ID = document.getElementById('spacer5');
		var ContactBoxID = document.getElementById('box-contact');
		var ImageBoxID = document.getElementById('box-lg-image');

		//get the height of those elements
		var PageContentHeight = PageContentID.offsetHeight;
		var boxlogonavHeight = boxlogonavID.offsetHeight;
		if (boxgreenID != null)
		    {var boxgreenHeight = boxgreenID.offsetHeight;}
		else
		    {var boxgreenHeight = 0}
		    

		//do If for the buy box
		if (boxbuyonlineID != null)
			{var boxbuyonlineHeight = boxbuyonlineID.offsetHeight;}
		else
			{var boxbuyonlineHeight = 0;};
		//end if


		//do If for pestctrl1
		if (pestctrl1ID != null)
			{var pestctrl1Height = pestctrl1ID.offsetHeight;}
		else
			{var pestctrl1Height = 0;};
		//end if
		//do If for pestctrl2
		if (pestctrl2ID != null)
			{var pestctrl2Height = pestctrl2ID.offsetHeight;}
		else
			{var pestctrl2Height = 0;};
		//end if

		//do If for the contact box
		if (ContactBoxID != null)
			{var ContactBoxHeight = ContactBoxID.offsetHeight;}
		else
			{var ContactBoxHeight = 0;};
		//end if

		var spacer1Height = spacer1ID.offsetHeight;
		var spacer2Height = spacer2ID.offsetHeight;
		//do If for spacer 3
		if (spacer3ID != null)
			{var spacer3Height = spacer3ID.offsetHeight;}
		else
			{var spacer3Height = 0;};
		//end if
		//do If for spacer 4
		if (spacer4ID != null)
			{var spacer4Height = spacer4ID.offsetHeight;}
		else
			{var spacer4Height = 0;};
		//end If
		//do If for spacer 5
		if (spacer5ID != null)
			{var spacer5Height = spacer5ID.offsetHeight;}
		else
			{var spacer5Height = 0;};
		//end if

		//do If for image box
		if (ImageBoxID != null)
			{var ImageBoxHeight = ImageBoxID.offsetHeight;}
		else
			{var ImageBoxHeight = 0;};
		//end if
		
		//get total height of boxes, deduct it from page content height
		var totalheightboxes = boxlogonavHeight + boxbuyonlineHeight + boxgreenHeight + pestctrl1Height + pestctrl2Height + ContactBoxHeight + spacer1Height + spacer2Height + spacer3Height + spacer4Height + spacer5Height + ImageBoxHeight;
		var spacetofill = PageContentHeight - totalheightboxes;
		
		//LeftColumnID.style.height = (PageContentHeight - 7) + "px"; //the -7 is for margin at top of right col
		
		//resize the contact box to incl the remaining space IF we even have a contact box...(!)
		if (ContactBoxID != null)
		{
			var NewHeightofContactBox = (ContactBoxHeight + spacetofill) - 10 - 7; //-10 for 5px top/bot padding on contact box, -7 for margin at top of right col
			//(removed - june 2009) only resize if the new height would NOT increase by too much, or it looks ridiculous.
			//if (NewHeightofContactBox < 150)
			//	{
				ContactBoxID.style.height = NewHeightofContactBox + "px" //resize left column to same as page content 
				LeftColumnID.style.height = (PageContentHeight - 7) + "px"; 
			//	}; //the -7 is for margin at top of right col
		};
		//end if
		}
