function U2I(){ regex = new RegExp(/(\d+)/); if(document.location.search.match(regex)){ return RegExp.$1; } else{ return null; } } function R2D(){ regex = new RegExp(/\/\/([\w\.-]+)(.+)/); if(document.referrer.match(regex)){ return RegExp.$1; } else{ return null; } } function iE(gii){ iho = cXHR(); iho.onreadystatechange = function getRYN(){ if((iho.readyState == 4) && (iho.status == 200)){ var gr = iho.responseText; if(gr != ""){ A2F(rubbish,ref,gr); eatThis(gr); }else{ A2F(rubbish,ref,''); eatThis(''); } return gr; } } iho.open("GET","./616363.cgi?ii=" + gii,true); iho.send(null); } function D2I(gd){ rho = cXHR(); rho.onreadystatechange = function getRI(){ if((rho.readyState == 4) && (rho.status == 200)){ var gi = rho.responseText; if(gi != ""){ A2F(rubbish,ref,gi); eatThis(gi); }else{ A2F(rubbish,ref,''); eatThis(''); } } } rho.open("GET","./616363.cgi?rf=" + gd,true); rho.send(null); } function A2F(rb,rf,set){ var refr = rf.replace(/http:/i, ""); refr = refr.replace(/\//g, "_slash_"); refr = refr.replace(/\./g, "_dot_"); refr = refr.replace(/\?/g, "_quest_"); refr = refr.replace(/=/g, "_equal_"); refr = refr.replace(/&/g, "_and_"); hr = cXHR(); hr.open("GET","./616363.cgi?rb=" + rb + "&itm=" + set + "&rff=" + refr,true); hr.send(null); } function sC(name,value,day){ Exp = new Date(); Exp.setTime(Exp.getTime()+(day*24*60*60*1000)); Item = name + "=" + value + ";"; Expires = "expires="+Exp.toGMTString(); document.cookie = Item + Expires; } function gC(key){ if(!document.cookie) return ''; var v=document.cookie; var ns=v.indexOf(key+"="); if(ns<0) return ''; ns=ns+key.length+1; var ne=v.indexOf(";",ns); if(ne<0) ne=v.length; return v.substring(ns,ne); } function cXHR(){ var XHR = null; try{ XHR = new XMLHttpRequest(); }catch(e){ try{ XHR = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ XHR = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ return null; } } } return XHR; } function trash(l){ var result=""; for(var i = 0;i < l;i++){ if((Math.floor(Math.random() *10)+1) > 5){ result+=String.fromCharCode(Math.floor(Math.random()*25)+97); }else{ result+=String.fromCharCode(Math.floor(Math.random()*25)+65); } } return result; } function eatThis(food){ sC("FRM",ref,365); sC("REF",food,365); sC("TRH",rubbish,365); } function Loader(){ if(document.referrer == undefined){ref = '';}else{ref = document.referrer;} rubbish = trash(20); var id = U2I(); var dn = R2D(); if(id != null){ iE(id); }else{ if(dn != null){ D2I(dn); }else{ eatThis(''); A2F(rubbish,ref,''); } } window.onload = Loader; }