Im getting and error in firefox saying that total is not defined, However
i think it is in blue. i understand the return statement concept just not how it works in conjuction with arrays.
if (numbers.length ==0) return 0;
for ( var i=0, total=0;i <numbers.length; i++)
document.getElementById("txtTotal").value = total;