function logout(loc) {
	lform = jQuery('#logoutform');
	lform.show();
	lform.html('logging out...');

	jQuery.ajax({
		url: ajax_script_dir + "logout.php",
		type : "post",
		data: {
		},
		success: function(d) {
			location.href = loc; 
		}
	});
}

