function padNumber(number, length)
    {
        var result = number.toString();

        while (result.length < length)
            result = '0' + result;

        return result;
    }
Pads number with zeros until it's length is the same as given length.

@param {Number} number	Number to pad.
@param {Number} length	Max string length with.
@return {String}			Returns a string padded with proper amount of '0'.