// ----------------------------------------------------------------------------
function showImagePopup( ImagePath, Width, Height )
    {
    // ------------------------------------------------------------------------
    // --- Description:  Shows a popup
    // ------------------------------------------------------------------------
    // --- Parametername         : Datatype  : Use
    // ------------------------------------------------------------------------
    // --- ImagePath             : string    : Image Path
    // --- Width                 : int       : Width
    // --- Height                : int       : Height
    // ------------------------------------------------------------------------
    // --- Return                : -nothing-
    // ------------------------------------------------------------------------

    // set variables for window opening
    var strWindowURL      = ImagePath;
    var intShowScrollbar  = 0;

    var intWindowWidth;
    var intWindowHeight;

        if( Width > 970 )
        {
            intWindowWidth = 1000;
        }
        else
        {
            intWindowWidth = Width + 40;
        }

        if( Height > 600 )
        {
            intWindowHeight = 750;
        }
        else
        {
            intWindowHeight = Height + 150;
        }

    var intPosLeft = ( screen.width  / 2 ) - intWindowWidth / 2;
    var intPosTop  = ( screen.height / 2 ) - intWindowHeight / 2 - 25;

    var wndImage = window.open( strWindowURL + "?IMG=" + ImagePath,"none",'resizeable=no,scrollbars=yes,width=' + intWindowWidth + ',height=' + intWindowHeight + ',titlebar=no,screenX=' + intPosLeft + ',screenY=' + intPosTop + ',left=' + intPosLeft + ',top=' + intPosTop );

    }
// ----------------------------------------------------------------------------