<!--#include file="../../fy_inc/fy.User.asp"-->
<%
	Dim ModeID,ClassID,ID,rs,CommentStr
	ModeID=ChkNumeric(request("ModeID"))
	ClassID=Rsql(request("ClassID"))
	ID=ChkNumeric(request("ID"))

	If request("action")="CommentYes" Then 
     CommentStr=fycms.actexe("SELECT Count([ID]) from  Comment_fy  Where Locked=1 And ModeID=" & ModeID & " And ClassID=" & ClassID &" And acticleID=" &id)(0)
	Else 
     CommentStr=fycms.actexe("SELECT Count([ID]) from  Comment_fy  Where  ModeID=" & ModeID & " And ClassID=" & ClassID &" And acticleID=" &id)(0)

	End If 

  	echo  "document.write(""<a href='"&fycms.actsys&"plus/Comment/index.asp?ClassID="&ClassID&"&ID="&ID&"'>"&CommentStr&"</a>"");"
 %>