/*
 * Your custom javascript stuff goes here	
 */ 
 
 $(document).ready(function(){
 
 
 $('.ajaxdelete').click(
	function(){
		if(confirm("Are you sure?")){
			var url = $(this).attr('location');
			var row = $(this).parents('tr');
			$.post(
				url,
				{ 't' : 't'	},
				function( data ) {
				
					if( data.success == true)
					{
						$(row).slideUp( "slower",function() {
							//alert( data.msg );
						}).remove(); 
					}
					else if( data.success == false )
					{
						alert( data.msg );
						
					}
					else
						alert('Communication to Server Failed !');
					
				},
				"json"
			);
		}
	});


})