Event.observe(window, 'load', init);
function init() {
	observe_lock_comments();
	observe_post_comment();
	update_comments();
}
function Validate() {
	var Check = 0;
	if (document.forms["postform"].title.value == '') {
		Check = 1;
	}
	if (document.forms["postform"].updated.value == '') {
		Check = 1;
	}
	if (document.forms["postform"].article.value == '') {
		Check = 1;
	}
	if (Check == 1) {
		alert('я погледни пак май си забравил да напишеш нещо');
		return false;
	} else {
		document.forms["postform"].submit.disabled = true;
		return true;
	}
}

function add_smilie(code) {
	document.forms["postform"].replymessage.value += ' ' + code + ' ';
}
