<script type="text/javascript" language="javascript">
function a(time){
i=1;
id=setInterval(b,time);
function b(){
if(i<=10){
document.write(i+"<br>");
i++;
}
else{
clearInterval(id);
}
}
}
a(1000);
</script>
<script type="text/javascript" language="javascript">
function a(time){
i=1;
id=setInterval(b,time);
function b(){
if(i<=10){
document.write(i+"<br>");
i++;
}
else{
clearInterval(id);
}
}
}
a(1000);
</script>