rem:  if (formElement.type == "checkbox") { 
add: var type = formElement.type.toLowerCase(); if (type == "checkbox") { 
context: function setFormElementValue(formElement, value) {    //formElement.value = formElement.defaultValue;  //  formElement.checked = formElement.defaultChecked;    if (formElement.type == "checkbox") {    if (value == undefined) {      formElement.checked = formElement.defaultChecked;    } else {      if (formElement.getAttribute("reversed"))        formElement.checked = !value;      else        formElement.checked = value;    }      }  // handle nsIFileSpec  else if (formElement.type == "text" &&           formElement.getAttribute("datatype") == "nsIFileSpec") {    if (value) {      var filespec = value.QueryInterface(Components.interfaces.nsIFileSpec);      try {        formElement.value = filespec.nativePath;      } catch (ex) {        dump("Still need to fix uninitialized filespec problem!\n");      }    } else      formElement.value = formElement.defaultValue;  }  // let the form figure out what to do with it  else {    if (value == undefined)      formElement.value = formElement.defaultValue;    else      formElement.value = value;  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b67dd8b1d2d96e5c1181ab3d7a7196310449bc78/AccountManager.js/clean/mailnews/base/prefs/resources/content/AccountManager.js