﻿// JScript File

function setHeight(firstele, secondele,thirdele)
{
	var first = document.getElementById(firstele);
	var second = document.getElementById(secondele);
	var third = document.getElementById(thirdele);
	var fourth = document.getElementById("mycontainer");
	first.style.height = 'auto';
	second.style.height = 'auto';
	third.style.height = 'auto';
	var x = first.offsetHeight;
	var y = second.offsetHeight;
	var z = third.offsetHeight;
	
	
	if((y < x) &&( z < x))
	{
		first.style.height = x + "px";
		second.style.height = x + "px";
		third.style.height = x + "px";		
		fourth.style.height = x + 10 + "px";		
	}
	else if((x < z) && (y < z))
	{
		first.style.height = z + "px";
		second.style.height = z + "px";
		fourth.style.height = z + 10 + "px";		
		third.style.height = z + "px";
		
	}
	
	else if(( x < y) && (z < y))
	{		
		first.style.height = y + "px";
		second.style.height = y + "px";
		fourth.style.height = y + 10 + "px";		
		third.style.height = y +  "px";					
	}
	
}
