function openContentInModal(query,showActivity){      
		url = "/ajax-request.php";
		_url = url + "?" + query;
		if(showActivity)
		$.fancybox.showActivity();
        $.ajax({
			type: "GET",
  			url: _url,
   			dataType: "html",
   			cache:false,
   			success: responseHandler,
             error:function (xhr, ajaxOptions, thrownError){
                        	displayErrorModal("<div>"+xhr.responseText+"</div><div style='font-size:12px;color:#888'>Server Error #: " + xhr.status+"</div>");
                  	}	
		 });
		 return false;
}

var responseHandler = function handleModalResponse(response){
	 displayModal(response);
}

function displayModal(content) {
$.fancybox({
			'content':content,
			'scrolling':'no'
			});
}
