﻿StatisticHelper = new function() {
    var productType = '1';
    var orderNum = '0';

    function construct() {

        this.GetProductType = function() {
            return productType;
        }

        this.SetProductType = function(value) {
            productType = value;
        }


        this.GetOrderNum = function() {
            return orderNum;
        }

        this.SetOrderNum = function(value) {
            orderNum = value;
        }

        this.SentStat = function() {
            var req = '<img src="http://stat.contact-polis.ru/?r=' +
                escape(document.referrer) + '&u=' + escape(document.URL) + '&s[' + productType + ']=' + orderNum +
                '&t=' + document.title +
                '&q=' + Math.random() +
                '" alt="" title="" ' +
                ' width="1" height="1" style="float:right;">';
            document.write(req);
        }
    }

    return new construct();

}
