
	//Ajax message is the standard message box available on every page
	var div = document.getElementById('ajax_message');

	//This class handles the report object
	var ReportCommentObject = {
		
		//On success, we update the ajax message div
		handleSuccess:function(o){
			YAHOO.log("The success handler was called.  tId: " + o.tId + ".", "info", "example");
			showDiv('ajax_message');

			if(o.responseText !== undefined){
				div.innerHTML  = o.responseText;
			}
		},
		
		
		//On failure, we update ajax message with a connection failure error
		handleFailure:function(o){
			showDiv('ajax_message');
			if(o.responseText !== undefined){
				div.innerHTML  = o.responseText;
			} else {
				div.innerHTML = '<p>Connection Failure';
			}
		},
		
		//We pass any appropriate values to the report_comment.php page
		makeRequest:function(arg_vars){
			var request = YAHOO.util.Connect.asyncRequest('GET', '/report_comment.php?comment_id='+arg_vars, ReportCommentCallback);

			YAHOO.log("Initiating request; tId: " + request.tId + ".", "info", "example");
			
			return false;
		}
				
	};

	//This variable simply provides the relationship between the class and the yahoo library
	var ReportCommentCallback =
	{
	  success:ReportCommentObject.handleSuccess,
	  failure:ReportCommentObject.handleFailure,
      scope:ReportCommentObject
	};

