rem: cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3); 
add: cn = dialogParams.GetString(0); org = dialogParams.GetString(1); issuer = dialogParams.GetString(2); 
context: function onLoad(){    var cn;    var org;    var issuer;    dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock);    cn = dialogParams.GetString(1);    org = dialogParams.GetString(2);    issuer = dialogParams.GetString(3);    var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");    var message1 = bundle.formatStringFromName("clientAuthMessage1",                                              [org],                                             1);    var message2 = bundle.formatStringFromName("clientAuthMessage2",                                             [issuer],                                             1);    setText("hostname", cn);    setText("organization", message1);    setText("issuer", message2);    var selectElement = document.getElementById("nicknames");    itemCount = dialogParams.GetInt(1);    for (var i=0; i < itemCount; i++) {        var menuItemNode = document.createElement("menuitem");        var nick = dialogParams.GetString(i+4);        menuItemNode.setAttribute("value", i);        menuItemNode.setAttribute("label", nick); // this is displayed        selectElement.firstChild.appendChild(menuItemNode);        if (i == 0) {            selectElement.selectedItem = menuItemNode;        }    }    setDetails();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/246ccfeb71e4b5607716184f93d5120ac865438f/clientauthask.js/clean/security/manager/pki/resources/content/clientauthask.js