Ciao a tutti,

potreste aiutarmi a convertire questo codice da VBscript a Jscript?

<%
Dim commenti
Dim spam
spam = ""
commenti = Request("commenti")
Dim valida
valida = "/http/"
if instr(commenti,"http")<>0 then
spam = 1
else
valida = "/www/"
if instr(commenti,"www")<>0 then
spam = 1
else
response.write("No Spam")
end if
end if
%>
<% if spam = 1 then
response.redirect "/"
end if %>

Grazie in anticipo
AC