$(document).ready(function() {

	//On click for transactions
	$(".transaction").click(function() {
	 	var id = $(this).attr('id');
		var type = $(this).attr('rel');
		if(type=="Payment") {
			$.get('ajax/getPayment.php', {
					'id': id
				}, function(account) {
					jAlert(account,"Payment Info");
				});
		}
		else {
			$.get('ajax/getInvoice.php', {
					'id': id
				}, function(account) {
					jAlert(account,"Invoice Info");
				});
		}
		
		
		
		
		
		
	});


});