var siteUrl,cHeight, cWidth, cBitDepth, cResolution, cReferrer;
siteUrl="http://localhost/totstat/stat.asp";
cHeight = screen.height;
cWidth = screen.width;
cBitDepth = screen.colorDepth;
if (cBitDepth == null)
{
cBitDepth = screen.pixelDepth;
}
cResolution = cWidth + "x" + cHeight;

cReferrer = escape(document.referrer)+"";
//cPage = document.location.href.replace(/^([^\:]+):\/\/([^\/]+)(.*)$/ig, "$3");
cPage = document.location.href+"";
document.write ("<iframe src='"+siteUrl+"?page=" + cPage + "&res=" + cResolution + "&col=" + cBitDepth + "&ref=" + cReferrer + "' border='0' height='0' width='0'>");