/*
function reportContent(target,targetid, title) {
	
	if ( ! title ) {
		title = "";		
	}
	
	$.get("/reportedcontent/ajaxreport",
			{
				'target':target,
				'targetid':targetid,
				'title':title
				
			},
			function(data) {	
				$("#boxlayer").html(data);
				openLayer('reportcontent');
			}
		)
}
*/

function reportContent() {
		
	target = window.location.href;
	targetid = -1;
	title = "";
	//title = $(".header").find("span").html();
	
	$.get("/reportedcontent/ajaxreport",
			{
				'target':target,
				'targetid':targetid,
				'title':title
				
			},
			function(data) {	
				$("#boxlayer").html(data);
				openLayer('reportcontent');
			}
		);
}

function reportContentComment(target,targetid) {
	
	target = window.location.href+"#comment"+targetid;
	title = "";
	//title = $(".header").find("span").html();
	
	$.get("/reportedcontent/ajaxreport",
			{
				'target':target,
				'targetid':targetid,
				'title':title
				
			},
			function(data) {	
				$("#boxlayer").html(data);
				openLayer('reportcontent');
			}
		);
}

function ajaxreportid(target,targetid) {
	$.get("/reportedcontent/report",
			{
				'target':target,
				'targetid':targetid,
				'isajax':'1'
				
			}
	);
}
