function reply_submitlog1()
{
	document.logfrm1.url.value = document.location.href;
	//document.logfrm1.submit();
}
function reply_quote1(id)
{
	reply_clearfield1();
	document.formpost1.body.focus();
	document.formpost1.body.value+="[quote]"+id+"[/quote]\n";
	document.formpost1.body.focus();
}
function reply_setDialog1(URLStr) 
{
	window.showModelessDialog(URLStr,window,'dialogWidth:500px;dialogHeight:400px;status:no;scroll:no;help:no;');
}
function reply_report1(userid, postid, board)
{
	/*
	 * $a.get("userid")
	 * $a.get("postid")
	 * $board
	 */
	reply_setDialog1("http://comment.sports.163.com/reply/report.jsp?appellee="+userid+"&postid="+postid+"&board="+board);
}
var cookies = new String(document.cookie);
function reply_getCookie1(namex)
{
	var cookieHeader = namex + "=";
	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 unescape(acookie);
	}
	return "";
}
function reply_checksubmit1()
{
	if(document.formpost1.body.value==tip || document.formpost1.body.value.length==0)
	{
		alert('请填写内容');
		return false;
	}
	document.formpost1.url.value = window.location.href;
	return true;
}
function reply_clearfield1()
{
	if (document.formpost1.body.value == tip)
	{
		document.formpost1.body.value = "";
	}
}
function reply_setHidden1(board, postid, count)
{
	document.formpost1.board.value = board;
	document.formpost1.threadid.value = postid;
	try {document.getElementById("replycount0011").innerHTML = count;}catch(e){}
	try {document.getElementById("replycount0012").innerHTML = count;}catch(e){}
	try {document.getElementById("replycount0013").innerHTML = count;}catch(e){}
	try {document.getElementById("replycount1").innerHTML = count;}catch(e){}
	try {document.getElementById("replycounttop1").innerHTML = count;}catch(e){}
	try {document.getElementById("replycountbottom1").innerHTML = count;}catch(e){}
}
function reply_allReply1()
{
	window.open("http://comment.sports.163.com/"+theboard1+"/"+thepostid1+".html");
}
function reply_newReply1()
{
	window.open("http://comment.sports.163.com/"+theboard1+"/"+thepostid1+".html");
}
var tip = "您尚未登陆系统，只能以游客身份发表评论，如果想以实名发表，请先登录系统。";
var commentnum = reply_getCookie1("NTES_SESS");
if(commentnum!="")
{
	document.getElementById("loginbox1").style.display='none';
}
else
{
	document.formpost1.body.value=tip;
}
out_nickname1		= reply_getCookie1("nickname");
out_ip1				= reply_getCookie1("ip");
out_board1			= reply_getCookie1("board");
out_postid1			= reply_getCookie1("postid");
out_ptime1			= reply_getCookie1("ptime");
out_body1			= reply_getCookie1("body");
out_userid1			= reply_getCookie1("NETEASE_SSN");