<!--#include virtual="_asp/conn.asp"-->
<%
myurl="http://"&Request.ServerVariables("SERVER_NAME")
counter=Request.Cookies("counter")
IF counter="" THEN
sql="SELECT * FROM counter"
rs.Open sql, conn, 1, 3
On Error Resume Next
counter=rs("counter")+1
rs.UPDATE
rs("counter")=counter
rs.UPDATE
rs.Close
Response.Cookies("counter")=counter
END IF
Conn.Close
counter=CStr(counter)
CLen=Len(counter)
Cx=5
IF CLen<Cx THEN
FOR i=1 TO (Cx-CLen)
counter="0"&counter
NEXT
END IF
FOR i=1 TO Cx
%><img src="<%myurl%>/images/number/<%=Mid(counter,i,1)%>.gif"/><%
NEXT
%>