﻿function resizeIframe(height) {
    // "+60" is a general rule of thumb to allow for differences in
    // IE & and FF height reporting, can be adjusted as required
    // If height is already set a postback probably occured in the iframe
    // in that case we should not increase the height.
    if (document.getElementById('resizableiframe') != null) 
    {
        if (document.getElementById('resizableiframe').height != height) {
            document.getElementById('resizableiframe').height = parseInt(height) + 60;
        }
    }
    
    // document.getElementById('resizableiframe').width = '100%'; no need for this
}

