function replaceText(text){ while(text.lastIndexOf("&") > 0){ text = text.replace('&', '@'); } return text; } var web_referrer = replaceText(document.referrer); istat = new Image(1,1); //istat.src = "http://club.yafoon.com/stats/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+web_referrer+"&page="+location.href; istat.src = "http://eryo.tw/crontab/counter.php?host=bra.plug&path="+location.href+"&sourc="+web_referrer;