function onProjectChange() {
var s = document.getElementById('project');
if (!s) return;
var dis = s.value === 'all_projects', f = function(id) {
var e = document.getElementById(id);
if (e && (e.disabled = dis)) e.checked = false;
};
f('time');
f('otchet');
}