%
'response.write inStr(request.servervariables("HTTP_REFERER"),"http://202.181.167.115/cgi-bin/osdlangconverter.cgi?url=www.grandtag.com")
';response.end
if request.servervariables("HTTP_REFERER") = "http://www.grandtag.com/" then
tourl = "http://www.grandtag.com/index.htm"
else
tourl = request.servervariables("HTTP_REFERER")
end if
If (inStr(request.servervariables("HTTP_REFERER"),"http://202.181.167.115/cgi-bin/osdlangconverter.cgi?url=www.grandtag.com") > 0) Then
response.redirect request.servervariables("HTTP_REFERER")
End if
if (instr(request.servervariables("HTTP_REFERER"),"chinese") >= 1) Then
response.redirect "http://202.181.167.115/cgi-bin/osdlangconverter.cgi?url="&Replace(tourl,"http://","")&"?id=&conversion=b52gb&texttype=html"
Else
response.redirect "http://202.181.167.115/cgi-bin/osdlangconverter.cgi?url="&Replace(Replace(tourl,"http://",""),".htm","_chinese.htm")&"?id=&conversion=b52gb&texttype=html"
End If
%>