//评论翻页
function CommentGoPage(page)
{
	if(page=='')
		page=1;
	$('#page').attr('value',page);
	Comment_Search_OnClick('page');
}

//评论查询
function Comment_Search_OnClick(PageSign)
{
	if(PageSign==undefined)
		$('#page').attr('value',1);
	APost('CommentSearchForm','/Compere/Comment.php?op=list');
}

//评论添加、修改
function CommentOnclick()
{
	if(document.CommentForm.CommentContent.value=='')
	{
		alert('请输入评论内容！');
		document.CommentForm.CommentContent.focus();
		return false;
	}
	if(document.CommentForm.CheckCode.value=='')
	{
		alert('请输入验证码！');
		document.CommentForm.CheckCode.focus();
		return false;
	}
	
	APost('CommentForm','/Compere/Comment.php?op=add');
}

//评论表情按钮
function CommentInputPic(Num)
{
	if(Num!=undefined)
	{
		document.CommentForm.CommentContent.value+='[f='+Num+']';
		document.CommentForm.CommentContent.focus();
	}
}

//评论支持按钮
function CommentSupport(ID,SearchKind)
{
	AGet('/Compere/Comment.php?op=commentsupport&CommentID='+ID+'&SearchKind='+SearchKind);
}

//评论反对按钮
function CommentOppose(ID,SearchKind)
{
	AGet('/Compere/Comment.php?op=commentoppose&CommentID='+ID+'&SearchKind='+SearchKind);
}

//全部评论翻页
function CommentAllGoPage(page)
{
	if(page=='')
		page=1;
	$('#page').attr('value',page);
	CommentAll_Search_OnClick('page');
}

//全部评论查询
function CommentAll_Search_OnClick(PageSign)
{
	if(PageSign==undefined)
		$('#page').attr('value',1);
	APost('CommentSearchForm','/Compere/Comment.php?op=listall');
}

//支持数查询
function Support_Search_OnClick(PageSign)
{
	if(PageSign==undefined)
		$('#page').attr('value',1);
	APost('CommentSearchForm','/Compere/Support.php?op=list');
}

//主持人支持按钮
function CompereSupport(ID)
{
	AGet('/Compere/Support.php?op=comperesupport&CompereID='+ID);
}




