function comment_quote(postid)
{
	document.getElementById("replybody").focus();
	document.getElementById("replybody").value += "[quote]"+postid+"[/quote]\n";
	document.getElementById("replybody").focus();
}

function comment_submit_form()
{
	return true;
}

function comment_accuse(postid, userid)
{}

function comment_upvote(boardid, postid)
{
	document.location.href="http://comment.duowan.com/comment/upvote.jsp?postid="+postid+"&boardid="+boardid;
}

function getCookie(namex)
{
	var cookieHeader = namex + "=";
	var cookies = document.cookie;
	var beginPosition = cookies.indexOf(cookieHeader);
	if (beginPosition != -1) 
	{
		var acookie = cookies.substring(beginPosition + cookieHeader.length);
		if (acookie.indexOf(";")>-1)
		{
			acookie = acookie.substring(0, acookie.indexOf(";"));
		}
		return acookie;
	}
	return "";
}

comment_nickname	= getCookie("comment_nickname");
comment_postid	= getCookie("comment_postid");
comment_ip	= getCookie("comment_ip");
comment_body	= getCookie("comment_body");
comment_boardid	= getCookie("comment_boardid");
comment_ptime	= getCookie("comment_ptime");
comment_userid	= getCookie("comment_userid");
comment_threadid	= getCookie("comment_threadid");

try
{
document.getElementById("first_comment_count").innerHTML = document.getElementById("comment_count").innerHTML;
}
catch(e)
{}
