function loadbody(){
  if(document.images == true){ 
     if(!document.p) 
         document.p = new Array();
    
     var i, j = document.p.length, argv = loadbody.arguments;
              
     for(i = 0; i < argv.length; i++)
         if(argv[i].indexOf("#") != 0){ 
            document.p[j] = new Image; 
            document.p[j++].src = argv[i];
         }
  }
}

function controllyrs(id, bState){
  if(id == 'gamingmachineslyr')
      parent.branding.gamingmachineslyr.style.visibility = bState;
  else if(id == 'pokermachineslyr')
      parent.branding.pokermachineslyr.style.visibility = bState;
  else if(id == 'pooltableslyr')
      parent.branding.pooltableslyr.style.visibility = bState;
  else if(id == 'snookertableslyr')
      parent.branding.snookertableslyr.style.visibility = bState;
  else if(id == 'jukeboxeslyr')
      parent.branding.jukeboxeslyr.style.visibility = bState;
  else if(id == 'plasmaslyr')
      parent.branding.plasmaslyr.style.visibility = bState;
}

function onSubmitForm(){
    if (document.frmUpdate.smlimageinput.value == "" && document.frmUpdate.lrgimageinput.value == "")
        alert("Please press the browse button and pick a file.")
    else
        return true;
    return false;
}


