﻿Ext.ns('App');

App.Utility = new (function() {
    this.querySt = function(ji) {
        hu = window.location.search.substring(1);
        gy = hu.split("&");
        for (i = 0; i < gy.length; i++) {
            ft = gy[i].split("=");
            if (ft[0] == ji) {
                return ft[1];
            }
        }
    };

    this.navigateWithReferrer = function(url) {
        var fakeLink = document.createElement("a");
        if (typeof (fakeLink.click) == 'undefined')
            location.href = url;  // sends referrer in FF, not in IE
        else {
            fakeLink.href = url;
            document.body.appendChild(fakeLink);
            fakeLink.click();   // click() method defined in IE only
        }
    };

})();
 