Problems making global variable
===

I'm still fairly new to JavaScript and Jquery, but if anyone can help I'd really appreciate it as I've been struggling with this one for hours.

I have a function that's part of a larger plugin function (QueryLoader2 by Gaya if anyone's familiar). In the function I'm looking at, there's a part where it gets a percentage value of items that are being loaded in the page:

    var completeImageLoading = function () {
        qLdone++;
        var percentage = (qLdone / qLimageCounter) * 100;
		
        if (qLoptions.percentage == true) {
            $(qLpercentage).text(Math.ceil(percentage) + "%");
        }

        if (qLdone == qLimageCounter) {
            destroyQueryLoader();
        }
    }

The part "var percentage" is the part that I need to be gloabal, so the numeric percentage value can be used by another function completely outside of this one (in another Javascript file actually). I've tried removing the 'var' but that doesn't work.

If anyone can help, I'd really appreciate it! Thanks