$(document).ready(function()
	{
		$('table#delComments td a.delete').click(function()
		{
			if (confirm("Are you sure you want to delete this comment?"))
			{
				var id = $(this).parent().parent().attr('id');
				var data = 'id=' + id ;				
				var parent = $(this).parent().parent();				
				$.ajax(
				{
					   type: "POST",
					   url: "deleteComments.php",
					   data: data,
					   cache: false,
					
					   success: function()
					   {
							parent.fadeOut('slow', function() {$(this).remove();});
					   }
				 });				
			}
		});
		
		// style the table with alternate colors
		// sets specified color for every odd row
		$('table#delSMTP tr:odd').css('background',' #FFFFFF');
	});
