/*blog*/
var bid=-1;
function LoadComment(l,id) {
	if (FindID('comment'+id).style.display=='none') {
		bid=id;
		AJAXRequest(l+makeForUrl('act','blog',true),"ShowComment","POST","bid="+id);
		FindID('comment'+id).innerHTML=msg_load;
		FindID('comment'+id).style.display='';
	} else {
		FindID('comment'+id).style.display='none';
		bid=-1;
	}
}
function ShowComment(r) {
	if (bid!=-1)
		FindID('comment'+bid).innerHTML=r;
	bid=-1;
}
function postComment(l,id) {
	if (validateForm('fc'+id)) {
		bid=id;
		AJAXRequest(l+makeForUrl('act','blog',true),"ShowComment","POST","bid="+id+"&nick="+escape(FindID('nickarea'+id).value)+"&com="+escape(FindID('commentarea'+id).value));
	} else
		bid=-1;
	return false;
}
function BlogArchive(l) {
	document.location.href=l+makeForUrl('act','blog',true)+makeForUrl('dat',document.getElementById('blog_archive').value,true);
}
