(function() {
var ranges = '0123456789abcdefghijklmnopqrstuvwxyz';
window.from10to36 = function(n) {
var len = ranges.length,
result = '';
while(n >= len) {
result = ranges.charAt(n % len) + result;
n = Math.floor(n / len);
}
result = ranges[n] + result;
return result;
};
})();
alert( from10to36(55703) );