function replaceText(text)
{
	while(text.lastIndexOf("&") > 0)
	{
		text = text.replace('&', '[i-Stats]');
	}
	return text;
}

      var web_referrer = replaceText(document.referrer);
      istat = new Image(1,1);
      istat.src = "stats/counter.php?sw="+screen.width+"&sh="+screen.height+"&sc="+screen.colorDepth+"&referer="+web_referrer+"&is_page="+location.href;
