/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function go(id, url) {
	$.ajax({
		url: url,
		dataType: 'json',
		success: function(data) {
			$(id).html(data.body);
		}
	});
}

function unlink(type, id, field) {
	$.ajax({
		url: root+'json/admin/'+type+'/unlink/'+id+'/'+field,
		dataType:'json',
		success: function(data, textStatus, XMLHttpRequest) {
			if (data.success) $('#'+id+'_'+field).html('Geen');
		}
	});
}
