var commentId = 0;

function HideTimer()
{
	document.getElementById('done').style.display="none";
}
function blogHandler()
{
	document.getElementById('done').style.display="none";
}
function commentHideTimer() {}
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 ReprtUpused(id,type,crumb){
	if(type === 'comment'){
		commentId = id;
		AJAXGet(base_url+"commentTraking.php?id="+id+"&typeis="+type+"&crumb="+crumb,reviewCommentHandler,false,false);
		
	}else{
		AJAXGet(base_url+"commentTraking.php?id="+id+"&typeis="+type+"&crumb="+crumb,reviewHandler,false,false);
	}
	

}
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 commentHideTimer()
{
	document.getElementById('done'+commentId).style.display="none";
}
