n) {
      //Browser has allowed it to be opened
      win.focus();
    } else {
      //Browser has blocked it
      alert('Please allow popups for this website'); 
    }
  };
  
   
  // Create button to select subjects
  $(".select-subject").select2({
    data: listSubject
  });  
  $(".select-subject").on("select2:select", function (e) { 
    filesIn = buildFilesIn(e); 
    printFiles(filesIn);
  });
    
  // Create the json description of input files  
  var evt = {params:{data:{id