$(document).ready(function(){

    
	var ajax_script		= '';
	
	$.fn.setEntryAjaxScript = function(new_ajax_script)
	{
		ajax_script = new_ajax_script;
	}
	
	
	$.fn.deleteEntry = function(entry_id)
	{
		if (confirm('Are you sure you wish to delete this entry?'))
		{
			var postdata = 'action=delete_entry';
			postdata 	+= '&entry_id=' + entry_id;
			
			$.ajax(
			{
				type: 'POST',
				url: ajax_script,
				data: postdata,
				dataType: 'html',
				
				success: function(js)
				{
					eval(js);
				}
			});
		}
	}
	
    
});
