﻿
function setHeight(firstele, secondele)
{
	var first = document.getElementById(firstele);
	var second = document.getElementById(secondele);

	first.style.height = '500px';
	second.style.height = 'auto';
	
	var x = first.offsetHeight;
	var y = second.offsetHeight;
	if(y < x)
	{
		second.style.height = x + 70 +  "px";
		first.style.height  = x + "px";
	}
	else
	{
		first.style.height = y + -70 + "px";
		//second.style.height = y + "px";
	}
}

function validate()
{

	mNv=FinancialTestForm.full_name.value;
	if (mNv=='')
		{
		alert('Your name is a required field. Please enter your full name and try again.');
		event.returnValue=false;
		}
}

function setHeight3(firstele, secondele,thirdele)
{
	var first = document.getElementById(firstele);
	var second = document.getElementById(secondele);
	var third = document.getElementById(thirdele);
	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";
		//first.style.height  = x + "px";
	/*	alert("left height used ");
		alert("left height "+ x);
		alert("right height " + second.style.height);
		alert("third height " + third.style.height);*/
		
	}
	else if((x < z) && (y < z))
	{
		first.style.height = z + "px";
		second.style.height = z + "px";
		third.style.height = z + "px";
/*		alert("main height used ");
		alert("main height "+ z);
		alert("left height " + first.style.height);
		alert("right height " + second.style.height);*/
		
		
	}
	
	else if(( x < y) && (z < y))
	{
		
		first.style.height = y + "px";
		second.style.height = y + "px";
		third.style.height = y +  "px";
		//second.style.height = y  + "px";
		//second.style.height = y + "px";
/*
		alert("right height used ");
		alert("right height "+ y);
		alert("left height " + first.style.height);
		alert("main height " + third.style.height);*/
				
	}
	
}
