/************************************************************************
*this script is provided by http://www.CoolandOfficial.com
*
*This script is released under the DuU-NO... License
*It is Cool and Official... You can reuse getHeight .js
*as long as this header stays in place 
*©2007, Samuel Hilson, All Rights Reserved   
*If you have any questions about this script just remember
* my time is more valuable than yours.
*************************************************************************/
function getHeight(){
	if (document.styleSheets){//checks that stylesheet dom is supported.
		main=document.getElementById("contentOnePixel");//id of div you want to compare goes here
		left=document.getElementById("leftOnePixel");
		colmain = main.offsetHeight;
		colleft = left.offsetHeight;
		if (colmain >= colleft) { // chooses between two longer col
			/* If you need to adjust the height by a few pixels you can change the 
			zero to a number and either add or substract*/
			colheight = (colmain - 0); 
			document.getElementById("leftOnePixel").style.height = colheight + "px"; 
		}else{
			  colheight = (colleft -0);
			  document.getElementById("contentOnePixel").style.height = colheight + "px";
		}
	}
}

