anchor.diff:      };
       */
       
  -    // from http://hmkcode.com/spring-mvc-upload-file-ajax-jquery-formdata/ 
  -  	//using plugin jquery.form.js 
  -    function uploadJqueryForm(formObjectId){
  -    	var frm = $("#" + formObjectId);
  -      // $("#form22123").ajaxForm({ 
  -    	frm.ajaxForm({ 
  -        success:function(data) { 
  -              $('#viewerFrame').html(data);
  -         },
  -         dataType:"text" 
  -       }).submit();       
  -       return false;//I added this last line. Not sure if it's required 
  -    }
  +
         
      
   </script>
positive.code: 	    	});
  	    	return o;
  	    };
   
  });
  
  
  
negative.code:     			serializedObject[this.name] = this.value || '';
      		}
      	});
      	var jsonData = JSON.stringify(serializedObject);// such as {"sampleSubtypeId":"5","sampleTypeId":"2"} 
      	
      	$.ajax({
              type: frm.attr('method'),
              url: theUrl,
              //dataType : 'json', //coming back from server
              data: jsonData,
              contentType: 'application/json',
              success: function (response) {
                  $('#viewerFrame').html(response);
              },
      		error: function (response) {
              	$('#viewerFrame').html("Unexpected Failure");
          	}
          });
      	return false;
      }	
    
      //used here to upload files via ajax 
      //from http://hmkcode.com/spring-mvc-upload-file-ajax-jquery-formdata/ 
    	//using plugin jquery.form.js  see http://malsup.com/jquery/form/
      function uploadJqueryForm(formObjectId){
      	var frm = $("#" + formObjectId);
        // $("#form22123").ajaxForm({ 
      	frm.ajaxForm({ 
          success:function(data) { 
                $('#viewerFrame').html(data);
           },
           dataType:"text" 
         }).submit();       
         return false;//I added this last line. Not sure if it's required 
      }
       
        //used on viewerManager to remove a viewer via an ajax GET, using only parth variable parameters in the rest part of URL 
      function doGetWithAjax(theUrl) {
      	$.ajax({
              type: "GET",
              url: theUrl,
              success: function (response) {
                  $('#viewerFrame').html(response);
              },
              error: function (response) {
              	$('#viewerFrame').html("Unexpected Failure");
              }
          });
      	return false; // avoid 
      }
        
  /*     
      $.fn.serializeObject = function() { //http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery   
      	var o = {};
      	var a = this.serializeArray(); //http://api.jquery.com/serializeArray/ 
  