function delete_inv(inv_no,regcode) {
	if (confirm('Are you sure want to delete this?')) { 
		$.post("backroom/post.html", {act: "deleteinv", inv_no: inv_no}, function(data){
			location.href='http://www.asmiha.com/backroom/profile-'+regcode+'.html';
		});
	}
}
function change_inv(inv,regcode) {
	if($('#check_'+inv).is(':checked')) {
		$.post("/backroom/post.html", {act: "changeinv", inv_no: inv, paid: "1"}, function(data){
			location.href='http://www.asmiha.com/backroom/profile-'+regcode+'.html?inv='+inv;
		});
	} else {
		$.post("/backroom/post.html", {act: "changeinv", inv_no: inv, paid: "0"}, function(data){
			location.href='http://www.asmiha.com/backroom/profile-'+regcode+'.html?inv='+inv;
		});
	}
}
function sendmail_complete(regcode) {
	$.post("/backroom/post.html", {act: "completeregistration", regcode: regcode}, function(data){
			alert('Email has been sent');	
	});
}
function change_status_trans(trans_id,status) {
	$.post("/backroom/post.html", {act: "changestatustrans", trans_id: trans_id, status: status}, function(data){
			alert('Status of this workshop category has been change');
			window.location.reload();
			//alert(data);	
	});
}