anchor.diff:      			serializedObject[this.name] = this.value || '';
       		}
       	});
  +    	var jsonData = JSON.stringify(serializedObject);// such as {"sampleSubtypeId":"5","sampleTypeId":"2"} 
       	
  -    	
  -    	//////alert("defgzyx");
  -    	//////alert("serialziedObject is: " + serializedObject);
  -    	var jsonData = JSON.stringify(serializedObject);// such as {"sampleSubtypeId":"5","sampleTypeId":"2"} 
  -    	//alert("serialziedObject as JSON: " + jsonData);
  -    	//return false;
       	$.ajax({
               type: frm.attr('method'),
               url: theUrl,
               //dataType : 'json', //coming back from server
               data: jsonData,
               contentType: 'application/json',
  -            //data: $.toJSON(frm),
               success: function (response) {
  -                //document.getElementById("viewerFrame").innerHTML = htmlResponse;//works just as well 
                   $('#viewerFrame').html(response);
               },
       		error: function (response) {
  -            	//document.getElementById("viewerFrame").innerHTML = htmlResponse;//works just as well 
               	$('#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/ 
  
positive.code: 	
  	  $(function() {
  		    $( "#tabs" ).tabs();
  		    //$( "#tabs" ).tabs( "destroy");
  		  }); 
  
  	
  	   
  	  $("#hiddenIFrame").load(function() { ////http://blog.manki.in/2011/08/ajax-fie-upload.html 
  		  
  		  var responseText = $('#hiddenIFrame').contents().find('body').html();
  
negative.code: 		  this.src = "about:blank";  //http://stackoverflow.com/questions/1785040/how-to-clear-the-content-of-an-iframe 
  		  this.contentDocument.location.href = "about:blank"; ///'/img/logo.png';
  		});
  	  */
  	  
  	  
  	  
  