rem: gReplaceDialog.enabled = gReplaceDialog.findKey.value; gReplaceDialog.findNext.disabled = !gReplaceDialog.findKey.value; gReplaceDialog.replace.disabled = (!gReplaceDialog.findKey.value || !gReplaceDialog.replaceKey.value); gReplaceDialog.replaceAll.disabled = (!gReplaceDialog.findKey.value || !gReplaceDialog.replaceKey.value); 
add: var findStr = gReplaceDialog.findInput.value; var repStr = gReplaceDialog.replaceInput.value; gReplaceDialog.enabled = findStr; gReplaceDialog.findNext.disabled = !findStr; gReplaceDialog.replace.disabled = (!findStr || !repStr); gReplaceDialog.replaceAndFind.disabled = (!findStr || !repStr); gReplaceDialog.replaceAll.disabled = (!findStr || !repStr); 
context: function doEnabling(){  gReplaceDialog.enabled = gReplaceDialog.findKey.value;  gReplaceDialog.findNext.disabled = !gReplaceDialog.findKey.value;  gReplaceDialog.replace.disabled = (!gReplaceDialog.findKey.value                                     || !gReplaceDialog.replaceKey.value);  gReplaceDialog.replaceAll.disabled = (!gReplaceDialog.findKey.value                                        || !gReplaceDialog.replaceKey.value);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fcf44b284bb5d997c891069c621a48d6402fcac7/EdReplace.js/clean/editor/ui/dialogs/content/EdReplace.js