﻿
var r;
var c;
var s;
var pg;
var w;
var h;

//CustomerID = Request("c")
//SiteID = Request("s")

//alert(c);
//alert(s);

function makeframe() {
    //document.write('<iframe id=stats2020elements src=http://localhost:56603/statscommit.aspx?sid=1&h=' + h + '&w=' + w + '&r=' + r + '&pg=' + pg + '&c=' + c + '&s=' + s + ' height=0 width=0 scrolling=no></iframe>');    
    document.write('<iframe id=stats2020elements src=http://stats.ministryapps.com/statscommit.aspx?sid=1&h=' + h + '&w=' + w + '&r=' + r + '&pg=' + pg + '&c=' + c + '&s=' + s + ' height=0 width=0 scrolling=no></iframe>');
}

function URLencode(sStr) {
    return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g, '%22').replace(/\'/g, '%27').replace(/\//g, '%2F');
}

function setval(c, s) {
    c = c;
    s = s;
    h = screen.height;
    w = screen.height;

    //alert('height=' + h + ' width=' + w);

    r = document.referrer;
    r = URLencode(r);
    //document.write('<font color=white size=1>' + r);
    pg = location.pathname;

    if (pg == "/") {
	pg = document.domain;
    }
    //alert(c);
    //alert(s);
    makeframe();
}

 

