function commafy(n){
n = n + "";
var re = /(-?\d+)(\d{3})/;
while (re.test(n)) {
n = n.replace(re, "$1,$2");
}
return n;
}
function jishi(ele,numOri,n1,n2){
var i=0;
var plusNum=parseInt(Math.random()*(n1-n2+1)+n2);
setInterval(function(){
i=i+plusNum;
if(i<=numOri){
ele.text(commafy(i));
}else if(i>numOri){
ele.text(commafy(numOri));
}
},10)
tag=false;
}
</script>
</html>