﻿var resource = {
	confirmrequest:'Are you sure you wish to delete this? It cannot be recovered once deleted.',
	contactmessage:'failed to remove comment, please try again or contact tech support to resolve this problem.'
};

function deletecomment(d){ 
	if(confirm(resource.confirmrequest))
	{ 
		TeeBeo.BlogService.RejectArticle(d,
			function(x){ 
				eval('var data = ' + x); 
				if(data.suceeded){
					$('#d'+d).fadeOut(300, function(e){$(this).remove()} );/*endfadeOut*/}
				else{
					failed();
				} 
			}/*end-ok*/,
			failed); 
	};/*endif*/ 
};/*endfunc*/

function failed(){
	alert(resource.contactmessage);	
};

$(document).ready(function(){
	$('.AbuseLink').each(
		function(){ 
			$(this).bind('mouseover',function(){ $(this).css({'cursor':'pointer'}); });
		}
	);
}/*end-ready*/);
