<!-- #include file="include/config.asp" -->
<%
dim back_url,old_url
back_url=request.servervariables("http_referer")
old_url=trim(request.querystring("old_url"))
if back_url="" then back_url="./"
if old_url<>"" then back_url=old_url

select case action
case "cookies_clear"
  call cookies_clear()
case else
  call skin_type()
end select

call earse_sdim()
call web_clear(0)
response.redirect back_url

sub cookies_clear()
  dim cookies_name
  for each cookies_name in request.cookies(joekoe_cms.web_cookies)
    response.cookies(joekoe_cms.web_cookies)(cookies_name)=empty
  next
end sub

sub skin_type()
  dim j
  j=ubound(skin_dim,1)
  for i=0 to j
    if action=skin_dim(i,0) then
      response.cookies(joekoe_cms.web_cookies)("skin_var")=action
      response.cookies(joekoe_cms.web_cookies)("skin_wid")=skin_dim(i,2)
      exit for
    end if
  next
end sub
%>