window.onload = f_init;

function f_init() {
	var oColL = document.getElementById("colL");
	var oColC = document.getElementById("colC");
	var oColR = document.getElementById("colR");
	var nColL = oColL.offsetHeight;
	var nColC = oColC.offsetHeight;
	var nColR = oColR.offsetHeight;
	var nMax  = Math.max(Math.max(nColL, nColR), nColC);
	oColL.style.height = nMax+"px";
	oColC.style.height = nMax+"px";
	oColR.style.height = nMax+"px";
}

function f_comment() {
	var oForm = document.forms["cmnt"];
	var oName = oForm.elements["name"];
	var oText = oForm.elements["text"];
	var sName = oName.value;
	var sText = oText.value;
	if(sName=="") { oName.focus(); alert("Por favor, introduce un nombre o pseudónimo"); return false; }
	if(sText=="") { oText.focus(); alert("Por favor, introduce un comentario");          return false; }
	oForm.submit();
	return false;
}