а у меня другая функция:

Код:
function getMax() {
function sortUp(el1, el2) {
return el1-el2;
}
arguments.sort(sortUp);
last = arguments.length-1;
return arguments[last];
}
пример использования:
trace(getMax(220, 54, 8, 71, 2));
trace(getMax(4,6,5));
--------------------------