﻿function ImgChange(imgName,imgSrc) 
{
	document.images[imgName].src = imgSrc;
}

function divHeight()
{	
	heightA = document.getElementById("leftBlock").offsetHeight;
	heightB = document.getElementById("rightBlock").offsetHeight;

	if(heightA < heightB)
	{
		document.getElementById("leftBlock").style.height = heightB + "px";
	}else{
		document.getElementById("rightBlock").style.height = heightA + "px";
	} 
	
}


function totopButton()
{	
	heightA = document.getElementById("leftBlock").offsetHeight;

	document.getElementById("totopButton").style.top = (heightA +154) + "px";
	
}