var ly=escape(document.referrer); var currweb=location.href; ly=ly.replace(/\&/g,"|"); currweb=currweb.replace(/\&/g,"|"); $.ajax({ type: "GET", url: "/statistics/WebCounter.ashx?webid=coddc&source="+ly+"&curpage="+encodeURIComponent(currweb)+"&Width="+escape(screen.width)+"&Height="+escape(screen.height)+"&Color="+escape(screen.colorDepth)+"" });