function update_field(element,id) {
	
	var choice = new Array();
	for (i=0;i<element.options.length;i++) {
		if (element.options[i].selected) {
			choice[choice.length] = element.options[i].value;
		}
	}
	$('#' + id).attr('value',choice.join(','));
	
}
