anchor.diff:  dojo.addOnLoad(function() {
     var fetchOwners = dojo.byId("fetchOwners");
     var fetchFolders = dojo.byId("fetchFolders");
  +  var fetchAgs2AgpOwners = dojo.byId("ags2agp-fetchOwners");
  +  var fetchAgs2AgpFolders = dojo.byId("ags2agp-fetchFolders");
  +  
     var closeFoldersDialog = dojo.byId("closeFoldersDialog");
     var foldersDiv = dojo.byId("foldersDiv");
     var ownersDiv = dojo.byId("ownersDiv");
     var ownersSearchText = dojo.byId("ownersSearchText");
     
  -  
  -  dojo.connect(fetchOwners,"onclick",function(evt){
  +  var fetchOwnersFun = function(protocolType) {
       var ownersDialog = dijit.byId("ownersDialog");
       dojo.empty(ownersDiv);
  -    var h = dojo.trim(dojo.attr("harvestCreate:dest-h","value"));
  -    var u = dojo.trim(dojo.attr("harvestCreate:dest-u","value"));
  -    var p = dojo.trim(dojo.attr("harvestCreate:dest-p","value"));
  -    if (h.length>0 && u.length>0 && p.length>0) {
  +    var content = getDestination(protocolType);
  +    if (content.h.length>0 && content.u.length>0 && content.p.length>0) {
         dojo.query("[data-type=search]").style("display","none");
         ownersDialog.show();
  -      getSelf();
  +      getSelf(protocolType);
       } else {
         alert("<fmt:message key='catalog.harvest.manage.test.msg.agp2agp.ownersDialog.alert'/>");
       }
  -  });
  -  
  -  dojo.connect(fetchFolders,"onclick",function(evt){
  +  }
  +  
  +  dojo.connect(fetchOwners,"onclick",function(evt){
  +    fetchOwnersFun("agp2agp");
  +  });
  +  
  +  dojo.connect(fetchAgs2AgpOwners,"onclick",function(evt){
  +    fetchOwnersFun("ags2agp");
  +  });
  +  
  +  var fetchFoldersFun = function(protocolType) {
       var foldersDialog = dijit.byId("foldersDialog");
       dojo.empty(foldersDiv);
  -    var h = dojo.trim(dojo.attr("harvestCreate:dest-h","value"));
  -    var u = dojo.trim(dojo.attr("harvestCreate:dest-u","value"));
  -    var p = dojo.trim(dojo.attr("harvestCreate:dest-p","value"));
  -    var o = dojo.trim(dojo.attr("harvestCreate:dest-o","value"));
  -    if (h.length>0 && u.length>0 && p.length>0 && o.length>0) {
  +    var content = getDestination(protocolType);
  +    if (content.h.length>0 && content.u.length>0 && content.p.length>0 && content.o.length>0) {
         foldersDialog.show();
  -      searchFolders();
  +      searchFolders(protocolType);
       } else {
         alert("<fmt:message key='catalog.harvest.manage.test.msg.agp2agp.foldersDialog.alert'/>");
       }
  +  }
  +  
  +  dojo.connect(fetchFolders,"onclick",function(evt){
  +    fetchFoldersFun("agp2agp");
  +  });
  +  
  +  dojo.connect(fetchAgs2AgpFolders,"onclick",function(evt){
  +    fetchFoldersFun("ags2agp");
     });
   
     dojo.connect(closeFoldersDialog,"onclick",function(evt){
  
positive.code:   dojo.addClass(dijit.byId("timeDialog").domNode,"tundra");
  });
  
  function getSelf() {
    var ownersDiv = dojo.byId("ownersDiv");
    esri.request({
      url: "<%=basePath%>/catalog/harvest/getSelf.jsp",
      content: {
        h: dojo.trim(dojo.attr("harvestCreate:dest-h","value")),
        u: dojo.trim(dojo.attr("harvestCreate:dest-u","value")),
        p: dojo.trim(dojo.attr("harvestCreate:dest-p","value"))
      },
      handleAs: "json",
      callbackParamName: "callback"
    }).then(function(response){
  
negative.code:         var caption = folder.title + " (" + folder.id + ")";
          var folderDiv = dojo.create("div",null,foldersDiv);
          var folderLink = dojo.create("a",{href:"#", innerHTML: caption},folderDiv);
          dojo.connect(folderLink,"onclick",dojo.hitch({protocolType: protocolType, folderId: folder.id},function(evt){
            setDestinationFolder(this.protocolType,this.folderId);
            var foldersDialog = dijit.byId("foldersDialog");
            foldersDialog.hide();
          }));
  