/**
 * AjaxDebugger - einfacher Debugger für AJAX-Anwendungen.
 * @author Andreas Bethge
 * @copyright 2009, Andreas Bethge | it consulting
 */
 
function AjaxDebugger(outputFieldId){
	
	var ofid = outputFieldId;
	
	this.debug = function(debugString, debugObject){
		debugString = "<strong>" + debugString + "</strong>";
		if(debugObject){		
			debugString += "<p>" + JSON.stringify(debugObject) + "</p>";
		}
		jQuery(ofid).append(debugString);
	}
	
}
