function button_click(control, msg) {
	control.value = msg;
	//control.disabled = true;
	/*
	count = control.form.elements.length;
	for (i=0;i < count; i++) {
		control.form.elements[i].disabled = true;
	}
	alert(count);
	*/
	return true;
}

function popup(target_field, base_url, width, height) {
	var url = base_url + '?action=new&popup=1';
	var popup = window.open(url, target_field, 'scrollbars=yes,width='+width+',height='+height+',resizable=yes');
	popup.focus();
}