request_callback = undefined;

function commentComplain(comm_url, comment_id, blogpost_id, server_name, complain_host) {
	if (comment_id) {
		blockTargetId = "complaint_"+comment_id;
		var _link = "http://" + window.location.host + escape(comm_url);
		var cookie_path= "/";
		var src = "http://" + complain_host + "/complain/?domain=" + server_name + "&comment_id=" + comment_id + "&blogpost_id=" + blogpost_id + "&link=" + _link + "&cookie_path="+cookie_path;
		request_send(src, callback);
	}
	return false;
}

callback = function(data) {
	$("#targDiv_" + blockTargetId).html(data);
	document.getElementsByTagName("head")[0].removeChild(request_script);
}
function request_send(src, callback) {
	request_callback = callback;
	request_script = document.createElement("script");
	request_script.src = src;
	document.getElementsByTagName("head")[0].appendChild(request_script);
}

