rem: if (dialog.nameField.value) { if (dialog.OKButton.disabled) dialog.OKButton.disabled = false; } else { if (!dialog.OKButton.disabled) dialog.OKButton.disabled = true; } 
add: dialog.OKButton.disabled = !dialog.nameField.value; 
context: function doEnabling(){  if (dialog.nameField.value) {    if (dialog.OKButton.disabled)      dialog.OKButton.disabled = false;  } else {    if (!dialog.OKButton.disabled)      dialog.OKButton.disabled = true;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/238c6c1e8f3043e91a79b1027a4766abf2d8ccd0/newTagDialog.js/clean/mailnews/base/resources/content/newTagDialog.js