﻿
    onload=function() 
    { 
        var divheightRelation = document.getElementById('rightbox').offsetHeight;
        var divheightContent = document.getElementById('contentBackground').offsetHeight;
        var targetContent = document.getElementById('contentBackground');
        var targetRelation = document.getElementById('rightbox');
        var MinimumContentHeight = 434;
        
        if (divheightContent < divheightRelation)
        {
            targetContent.style.height = ( divheightRelation - 46 ) + "px";
        }
        else
        {
            targetRelation.style.height = ( divheightContent + 34 ) + "px";
        }
        
        if (divheightRelation < MinimumContentHeight && divheightContent < MinimumContentHeight)
        {
        targetContent.style.height = (MinimumContentHeight) + "px";
        targetRelation.style.height = (MinimumContentHeight + 34) + "px";
        }
    }
