function SetCommentsSize(input,max,block) {
	if (input <= max) {
		block.style.height = input+"px";
		input = input + 10;
		var NextF = function() { SetCommentsSize(input,max,block); }
		setTimeout(NextF,10);
	}
}
function ShowCommentsBlock() {
	var bl1 = document.getElementById("CommentsLine2");
	var bl2 = document.getElementById("CommentsLine3");
	bl1.style.display = "none";
	bl2.style.display = "block";
	SetCommentsSize(30,250,bl2);
}
function HideCommentsBlock() {
	var bl1 = document.getElementById("CommentsLine2");
	var bl2 = document.getElementById("CommentsLine3");
	bl2.style.display = "none";
	bl1.style.display = "block";
	bl2.style.height = "20px;";
}
function CommentsReloadPage() {
	window.location = '<?php echo $_SERVER["REQUEST_URI"]; ?>';
}
function SubmitCommentsEffects() {
	var FormosUztaisas = function() { document.getElementById("CommentsLine3").innerHTML = '<div class="CommentsLoadingEffects"><img src="/web_files/loadingAnimation.gif" width="208" height="13" border="0"><div id="CommentsEffectsText">Ilgai kraunasi? pabandykite atnaujinti puslapį:<br /><br /><input type="button" class="CommentsButton1" value="Atnaujinti" onclick="CommentsReloadPage();"></div></div>'; }
	setTimeout(FormosUztaisas,100);
	setTimeout('document.getElementById("CommentsEffectsText").style.visibility="visible";',7000);
	return true;
}
function CommentsNavigateToLogin() {
	document.getElementById("LoginFormBlock").style.background = "#ff6666";
	window.location = '#prisijungimas';
	document.KKLLoginForm.KKLLoginFormName.focus();
}

