timer[i]=setTimeout(arguments.callee, 100,i); for(i in timer){clearTimeout(timer[i]);}
var timer=[]; function set() { i++; timer[i]=setTimeout(arguments.callee, 100,i); if(i>10){for(i in timer){clearTimeout(timer[i]);}} }