text.setAttribute("value",certs[x].commonName); 
text.setAttribute("value", gParams.GetString(x+1)); 
function setWindowName(){  gParams = window.arguments[0].QueryInterface(nsIDialogParamBlock);    //  Get the cert from the cert database  certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB);    var typeFlag = gParams.GetString(0);  var numberOfCerts = gParams.GetInt(0);  var dbkey;  for(var x=0; x<numberOfCerts;x++)  {     dbkey = gParams.GetString(x+1);     certs[x] = certdb.findCertByDBKey(dbkey , null);  }    var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var title;  var confirm;  var impact;    if(typeFlag == "mine_tab")  {     title = bundle.GetStringFromName("deleteUserCertTitle");     confirm = bundle.GetStringFromName("deleteUserCertConfirm");     impact = bundle.GetStringFromName("deleteUserCertImpact");  }  else if(typeFlag == "websites_tab")  {     title = bundle.GetStringFromName("deleteSslCertTitle");     confirm = bundle.GetStringFromName("deleteSslCertConfirm");     impact = bundle.GetStringFromName("deleteSslCertImpact");  }  else if(typeFlag == "ca_tab")  {     title = bundle.GetStringFromName("deleteCaCertTitle");     confirm = bundle.GetStringFromName("deleteCaCertConfirm");     impact = bundle.GetStringFromName("deleteCaCertImpactX");  }  else if(typeFlag == "others_tab")  {     title = bundle.GetStringFromName("deleteEmailCertTitle");     confirm = bundle.GetStringFromName("deleteEmailCertConfirm");     impact = bundle.GetStringFromName("deleteEmailCertImpactDesc");  }  else if(typeFlag == "orphan_tab")  {     title = bundle.GetStringFromName("deleteOrphanCertTitle");     confirm = bundle.GetStringFromName("deleteOrphanCertConfirm");     impact = "";  }  else  {     return;  }  var confirReference = document.getElementById('confirm');  var impactReference = document.getElementById('impact');  document.title = title;    setText("confirm",confirm);  var box=document.getElementById("certlist");  var text;  for(x=0;x<certs.length;x++)  {    if (!certs[x])      continue;    text = document.createElement("text");    text.setAttribute("value",certs[x].commonName);    box.appendChild(text);  }  setText("impact",impact);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/ad2bb22af2e45e9b6ce8b5279be50608c4603455/deletecert.js/buggy/security/manager/pki/resources/content/deletecert.js