Load 2 Random Movies with Timed Cycles

I need some major help trying to fix this actionscript. I have a main movie with 2 empty movie clips on the stage. They have the instance names clip1 and clip2. I also have 10 swf files named movie1.swf, movie2.swf, movie3.swf, etc. I want to randomly load any 2 of these swf files into the 2 empty movie clips in the main movie. After the 2 swf files have been loaded, I want one of them to last 20 seconds, and then randomly load a new swf file to replace it. And the other one, after 30 seconds, will randomly load a new swf file to replace itself. And this cycle will go on & on…

I have the following actionscript:

[LEFT]

myRandomMovies = ['movie1.swf','movie2.swf','movie3.swf','movie4.swf','movie5.swf','movie6.swf','movie7.swf','movie8.swf','movie9.swf','movie10.swf'];
myInterval = setInterval("loadRandomMovie",20000,clip1);
myOtherInterval = setInterval("loadRandomMovie",30000,clip2);
function findRandom(min, max) {
var r = Math.random();
return min+Math.floor(r*(max+1-min));
};
function loadRandomMovie(targetClip){
targetClip.loadMovie(myRandomMovies[findRandom(0,myRandomMovies.length-1)]);
}

Unfortunately, it isn’t working. Is there an error with how I typed this? Or do I need to change something so it will work?

I basically want to load 2 swf files into 2 different targets, have one of them last 20 seconds & then randomly load a new swf, and have the other last 30 seconds & then randomly load a new swf. What is the correct actionscript to achieve this? Please help![/LEFT]