﻿function doResize(parent, element, height)
{   
    
    try {
       parent.resizeIFrame(element, (document.body.scrollHeight + 20));
    }
    catch(err)
    {
    
    }

}

function resizeIFrame(element, height)
{   
    var iFrame = document.getElementById(element);
    
    if(iFrame != null)
    {
        iFrame.style.height = height;
        iFrame.height = height;
    }
}

function showLoadingImage(id)
{
    var e = document.getElementById(id);
 
    if(e != null)
    {
        e.src = 'images/loading.gif';
    }
}
