/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var maxAppletCheck = 10;

function getApplet(name){
  var obj = null;
  for (i=0; i<maxAppletCheck && obj==null;i++){
    obj = document.applets[name];
    if (obj==null)
      obj = document.getElementById(name);
    if (obj==null){
      obj = document.getElementsByName(name).item(0);
    }
    if (obj==null)
      obj = document.name;
    if (obj==null)
      setTimeout('nothing',1000);
  }
  return obj;
}

function nothing(){
  //
}

