anchor.diff:          		if (headCell != null) dndPlugin.selectColumn(headCell.index); 
           	}
               
  -            function submitSelectedColumnNames() {
  -                
  +            function submitSelectedColumnNames(action) {
  +                
  +            	var cust = dojo.byId("customDownloadContainer"); 
  +                
  +                divstyle = cust.style.display;
  +                if(divstyle.toLowerCase()=="block" || divstyle == "")
  +                    syncFromGrid();
  +                else
  +                   selectInGrid();
  +                      	
                   var cols = {};
                   var returnCols = "";
                   var i=0;
  
positive.code:       <form name="columnSubmission" method="post" action="../../cdecurate/NCICurationServlet?reqType=cdlColumns">
              <input type="hidden" name="cdlColumns" value=""/>
         
  	      <button type="button" onClick="submitSelectedColumnNames();">Submit Selected Columns</button>
  	      <button type="button" onClick="toggleView();">Toggle View</button>
  	      <input type="checkbox" name="fillIn" value="true"/> Check to fill in all values.
        </form>
        <br></br>
        <br></br>
  
negative.code: 	                  	returnCols = returnCols+",";    
               	     }
                  }
                  
                  if (action = "XML")
                  	document.columnSubmission.action.value = "../../cdecurate/NCICurationServlet?reqType=xmlColumns";
                  
                  document.columnSubmission.cdlColumns.value = cols;
                  document.columnSubmission.submit();
  