function ContentPanel(contentPanelID, floatPanelID)
{
    this.contentPanelID = contentPanelID;
    this.contentPanel = document.getElementById(contentPanelID);
    this.floatPanelID = floatPanelID;
    this.floatPanel = document.getElementById(floatPanelID);
}

ContentPanel.prototype.onload = function()
{
    if(this.floatPanel && this.contentPanel)
    {
        var cpHeight = this.contentPanel.offsetHeight;
        var fpHeight = this.floatPanel.offsetHeight;
        
        if(fpHeight > cpHeight) this.contentPanel.style.height = fpHeight + 'px';
    }
}

function ContentPanel_EditorClosed()
{
    document.location = document.location;
}
