
function commentCtrl() {
	var jmeno = document.getElementById('author');
	var email = document.getElementById('email');
	var url = document.getElementById('url');
	//var comment = document.getElementById('comment');
	
	var jmenoVal = document.getElementById('authorVal');
	var emailVal = document.getElementById('emailVal');
	var urlVal = document.getElementById('urlVal');
	var commentVal = document.getElementById('commentVal');
	
	var ok = true;
	
	if (jmeno.value == "") {
		jmenoVal.style.display = "block";
		ok = false;
	}
	
	if (email.value == "") {
		emailVal.style.display = "block";
		ok = false;
	}
	
	/*if (url.value == "") {
		urlVal.style.display = "block";
		ok = false;
	}
	
	
	if (comment.innerHTML == "") {
		commentVal.style.display = "block";
		ok = false;
	}*/
	
	return ok;
}

function fbs_click() {
	var u=location.href;
	var t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

