<!--#include file="conn.asp"-->
<%

if session("m_user")<>"" and session("m_gold")="8" then

	for i=1 to 40
		id=request.form("box"&i)
		if id<>"" then
			sql="delete * from message where id="& id &" or  parentid="&id
			conn.execute(sql)
		end if
	next
	'response.Write"<br><br><br><div align=center><font color=ff0000>成功删除所选留言！</font>       <a href=message.asp><font color=ff0000>返回留言主页</font></a></div>"
	response.write "<script language=JavaScript>" & "alert('成功删除所选留言！');" & "window.location.href='message2.asp';" & "</script>"
	
end if

conn.close
set conn=nothing

%>
