%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)
else
cutstr=tempstr
end if
end function%>
<%
id=cint(request.querystring("id"))
if ID="" then
response.Redirect("Product.asp")
end if
sql="select * from Product where ID=" & ID & ""
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,3
if rs.bof and rs.eof then
response.write""
else
rs("Hits")=rs("Hits")+1
rs.update
%>