add: for (i in dateComps) { var elt = document.getElementById(prefix+'_datetimevalue['+dateComps[i]+']'); if (elt !== null) { elt.disabled = false; } } }  elt = document.getElementById(prefix+'_repkeys'); if (elt !== null) { elt.disabled = defaultCheckbox.checked; } } 
context: function handleMetadataDatetimeDefaultClick(defaultCheckbox, prefix, defaultDateTime, defaultKeyword){	var dateComps = ['d', 'm', 'y', 'h', 'i', 's'];	if (defaultCheckbox.checked) {		if (defaultKeyword !== null) {			for (i in dateComps) {				var elt = document.getElementById(prefix+'_datetimevalue['+dateComps[i]+']');				if (elt !== null) {					elt.value = 1;					elt.disabled = true;				}			}			document.getElementById(prefix+'_repkeys').value = defaultKeyword;		} else {			for (i in dateComps) {				var elt = document.getElementById(prefix+'_datetimevalue['+dateComps[i]+']');				if (elt !== null) {					elt.value = defaultDateTime[dateComps[i]];;					elt.disabled = true;				}			}			if (var repKeys = document.getElementById(prefix+'_repkeys')) {				repKeys.value = '';			}		}	} else {
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5635/26ab24949fd5c4b3f9cae00c839fff6c191b8878/metadata_field_date.js/clean/core/assets/metadata/metadata_fields/metadata_field_date/js/metadata_field_date.js