Código PHP:
<input type="checkbox" onClick="var mesFin = document.getElementById('mesFin');var añoFin = document.getElementById('añoFin');if(this.checked){mesFin.disabled = 'true';añoFin.disabled = true;}else{mesFin.disabled = false;añoFin.disabled = false;}" />