rem:  for( var index in settings ) { var setting = settings[ index ]; var checkbox = document.getElementById( setting ); if ( checkbox ) { prefs[ setting ] = checkbox.checked; 
add: try {  if ( "GetFields" in window ) { GetFields(); 
context: function onOK() {    // Transfer data from dialog to prefs object.    for( var index in settings ) {        var setting = settings[ index ];        var checkbox = document.getElementById( setting );        if ( checkbox ) {            prefs[ setting ] = checkbox.checked;        }    }    try {        // Update prefs.        winhooks.settings = prefs;    }    catch(e) {        alert( "Oh oh!" );    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/955c7551bcfc0d248d1709343e2ecc28a0612a89/pref-winhooks.js/buggy/xpfe/components/prefwindow/resources/content/pref-winhooks.js