/*

Function name: getHeight
Parameters: fromID, toID
Action: Aliniaza doua div-uri la aceasi inaltime
Author: Serge

*/


function getHeight( fromID, toID ) {
		
	var thisdiv = document.getElementById(toID);
	var thatdiv = document.getElementById(fromID);
		
	thisdiv_height = thisdiv.offsetHeight;
	thatdiv_height = thatdiv.offsetHeight;
		
	if(thisdiv_height > thatdiv_height){
		height_to = thisdiv_height;
		if( navigator.appName == "Microsoft Internet Explorer" ){
			thatdiv.style.height = height_to;
		} else {
			thatdiv.style.height = height_to+"px";
		}
	} else {
		if(thatdiv_height > thisdiv_height){
			height_to = thatdiv_height;
			if( navigator.appName == "Microsoft Internet Explorer" ){
				thisdiv.style.height = height_to;
			} else {
				thisdiv.style.height = height_to+"px";
			}
		}
	}
		
}