function setControlEnabled (id, enable) {
	var controlRef = document.getElementById(id);
	controlRef.disabled = !enable;
}  
