/*The following function will resize all columns to the same size as the longest column*/


function modcolumnresize()
{
	var restofleftcol = document.getElementById("restofleftcol");
	var rightcol = document.getElementById("rightcol");
	

	ltheight = restofleftcol.offsetHeight;
	rtheight = rightcol.offsetHeight;

	var diff = Math.abs(ltheight-rtheight);

	if(ltheight == rtheight)
	{
	
	}
	else if(ltheight > rtheight)
	{
                document.getElementById("rightcol").style.height = ltheight -20 + "px";
	}
	else if(ltheight<rtheight)
	{
		document.getElementById("restofleftcol").style.height = rtheight-50 + "px";
	}
        

}



function productmodcolumnresize()
{
	var restofleftcol = document.getElementById("restofleftcol");
	var rightcol = document.getElementById("rightcol");
	

	ltheight = restofleftcol.offsetHeight;
	rtheight = rightcol.offsetHeight;

	var diff = Math.abs(ltheight-rtheight);

	if(ltheight == rtheight)
	{
	
	}
	else if(ltheight > rtheight)
	{
        document.getElementById("rightcol").style.height = ltheight - 20 + "px";
    }
	else if(ltheight<rtheight)
	{
		document.getElementById("restofleftcol").style.height = rtheight-50 + "px";
	}
        

}









function vitatempcolumnresize()
{
	var restofleftcol = document.getElementById("restofleftcol");
	var rightcol = document.getElementById("rightcol");
	

	ltheight = restofleftcol.offsetHeight;
	rtheight = rightcol.offsetHeight;

	var diff = Math.abs(ltheight-rtheight);

	if(ltheight == rtheight)
	{
	
	}
	else if(ltheight > rtheight)
	{
                        //alert("The left column is longer than the right column.");
		        document.getElementById("rightcol").style.height = ltheight - 20 +"px";
        
	}
	else if(ltheight<rtheight)
	{
                        //alert("The right column is longer than the left column.");
        		document.getElementById("restofleftcol").style.height = ltheight + diff -50 + "px";
	}
        
//alert("The height of the right column is " + rightcol.offsetHeight);
//alert("The height of the left column is " + restofleftcol.offsetHeight);

}



