Url = function (url)
{
    this.url = url;
};

Url.prototype.getUrl = function ()
{
    return this.url;
};

Url.prototype.getHashParam = function (prm)
{
    var Re = new RegExp("[#&]" + prm + "=([^&]*)", "g");
    var matches = Re.exec(this.url);
    if (matches && matches.length > 1) return matches[1];
};
