﻿var theImageTargetId;
function GetImage(RelativeFilePath, ModuleKey, ShowThumbnail, width, height, toolTip, targetId) {
    theImageTargetId = targetId;

    WebAtrin.WebService.LoadUcImage.GetImage(RelativeFilePath, ModuleKey, ShowThumbnail, width, height, toolTip, GetImageSucceededCallback);
}

function GetImageSucceededCallback(result) {
    var theBodyID = document.getElementById(theImageTargetId);
    if (theBodyID) {
        if (theBodyID.innerHTML == "")
            theBodyID.innerHTML = result;
    }
}    
