%
function imgname(str)
dim ar,ar1,str1
dim i,s
i=instr(1,str,"new/Upfiles/",1)
s=mid(str,i,30)
ar=split(str,chr(34),-1,1)
imgname=ar(1)
end function
%>
<%
set rs=server.CreateObject("ADODB.Recordset")
sql="select top 8 * from article where classid=2 order by dateandtime desc"
rs.open sql,conn,1,3
if rs.bof and rs.eof then
%>
<%
set rs=server.CreateObject("ADODB.Recordset")
sql="select top 8 * from article where classid=3 order by articleid asc"
rs.open sql,conn,1,3
if rs.bof and rs.eof then
%>