<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp"-->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (getconfig("SK_Office")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK100000000") AND JudgePopedomTF(Session("UserName"),"SK100000300")))) then Call ReturnError()%>
<%
if Not isnumeric(JCID(F("FID"))) then Call ReturnError10()
set rs=server.createobject("adodb.recordset")
sql="select * from SK_OfficeFiles where Filesid="&F("FID")&""
rs.open sql,conn,1,3
if rs.bof and rs.eof then Call ReturnError4()
conn.execute(sql)
rs("SK_Down")=rs("SK_Down") + 1
rs.Update
Response.Redirect ""&Rs("SK_Fname")
rs.close
set rs=Nothing
Call CloseDB()
%>

