Wow this takes me back....
You can do something like this for your param:
<PARAM NAME="CreationEvent" VALUE="appletReady" />
Then define your function like this:
function appletReady(){
//start doing stuff
}
If you have multiple applets, say 3, I think you can do something like this:
var readyCnt = 0;
function appletReady(){
readyCnt++;
if(readyCnt===3){
//start doing stuff
}
}
Overall I would recommend avoiding all applet usage if possible tho. They just create too many headaches.