<!-- #include file="include/skin.asp" -->
<%

dim id,url
id=trim(request.querystring("id"))
if not int_true(id) then
  call format_redirect("website.asp")
end if
sql="select top 1 url from website where hidden=1 and id="&id
set rs=joekoe_cms.exec(sql,1)
if rs.eof then
  rs.close
  call format_redirect("website.asp")
end if
url=rs(0)
rs.close
call joekoe_cms.exec("update website set counter=counter+1 where id="&id,0)

call format_redirect(url)

%>