var commentId = 0;
function addCommentTraking(id,type){
	//var type = '1';//document.getElementById('typeArit').value;
	AJAXGet(base_url+"commentTraking.php?id="+id+"&type="+type,reviewHandler,false,false);
	
}
function ReprtBlogThis(id){
	document.blogThis.submit();
	AJAXGet(base_url+"commentTraking.php?id="+id+"&type=blog",blogHandler,false,false);
	
}

function ReprtThis(id,type){
	AJAXGet(base_url+"commentTraking.php?id="+id+"&type="+type,blogHandler,false,false);
	
}

function ReprtUpused(id,type){
	if(type == 'comment'){
		commentId = id;
		AJAXGet(base_url+"commentTraking.php?id="+id+"&typeis="+type,reviewCommentHandler,false,false);
		
	}else{
		AJAXGet(base_url+"commentTraking.php?id="+id+"&typeis="+type,reviewHandler,false,false);
	}
	

}
function reviewHandler(sText){
	if(sText){
		document.getElementById('msg').innerHTML = sText;
		document.getElementById('done').style.display="block";
		timerID = setTimeout('HideTimer()', 5000);
	}else{
		alert(sText);
	}
}
function reviewCommentHandler(sText){
	if(sText){
		document.getElementById('msg'+commentId).innerHTML = sText;
		document.getElementById('done'+commentId).style.display="block";
		timerID = setTimeout('commentHideTimer()', 5000);
	}else{
		alert(sText);
	}
}
function commentHideTimer()
{
	document.getElementById('done'+commentId).style.display="none";
}

function HideTimer()
{
	document.getElementById('done').style.display="none";
}
function blogHandler()
{
	
	document.getElementById('done').style.display="none";
}