you could name them interval1, interval2,..., intervaln

and then:
trigger this:
for (i=1; i<=n; i++) {
clearInterval(_root["interval"+i]);
}