Polka.Page = function()
    {
    }

Polka.Page.views = new Array();   
 
Polka.Page.registerView = function(view)
    {
    Polka.Page.views.push(view);
    }

Polka.Page.getView = function(id)
    {
    for(var i = 0; i < Polka.Page.views.length; ++i)
        {
        if(Polka.Page.views[i].getId() == id)
            {
            // We got a match! Return this view:
            return Polka.Page.views[i];
            }
        }
    
    return null;
    }