Ciao ragazzi non riesco a capire perchè non mi funziona sapete aiutarmi??

codice:
<% 
function provenienza()
dim strLastpage
strlastpage = request.serverVariables("HTTP_REFERER")
provenienza= strLastpage 
'RICHIEDE LA LINGUA DALLA QUERYSTRING
lingua = Request.QueryString("id") 
'SE LINGUA UGUALE IT, LA SESSION LINGUA SARA’ UGUALE A ITALIANO ALTRIMENTI
'LA SESSION LINGUA SARA’ UGUALE A INGLESE 
If lingua = "ita" then 

session("lingua")="italiano" 
Response.Redirect "strLastpage.asp" 
else 

session("lingua")="inglese" 
'TI PORTA NELLA PAGINA HOMEPAGE.ASP
Response.Redirect "strLastpage.asp" 
End IF 
end function
response.write provenienza()
%>
Grazie