sql="select top "&indexsoft&" soft_date,soft_title,soft_id,soft_dcount,soft_good,istop,user_view from Ft_soft order by istop=1,soft_dcount desc,soft_id desc"
else
sql="select top "&indexsoft&" soft_date,soft_title,soft_id,soft_dcount,soft_good,istop,user_view from Ft_soft where cat_id="&x(i)&" order by istop=1,soft_id desc"
end if
set rs = server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
do while not rs.eof
'replaceText(str)╙├╙┌ALTú¼╚Ñ╡⌠HTML┤·┬δ
'soft_title╙├╙┌╧╘╩╛▒Ω╠Γú¼soft_alt╙├╙┌╧╘╩╛ALT
softtitle=rs(1)
istop=rs(5)
softgood=rs(4)
softid=rs(2)
softcount=rs(3)
softdate=rs(0)
userview=rs(6)
if instr(softtitle,"<font color")<>0 then
Arr_title=split(softtitle,">")
soft_alt=replaceText(softtitle)
if len(soft_alt)>cint(titlelen) then '╙├╙┌╧╘╩╛╚φ╝■▒Ω╠Γ
document.write('<table class="right_table" cellspacing="0" cellpadding="1" align="center" <%if i mod 2<>0 then %>style="width:100%;" <%else%>style="width:100%;border-left:1px solid #ffffff;"<%end if%>>');