rem:  document.getElementById('pw1').focus(); 
add: var bundle = srGetStrBundle("chrome:    var secmoddb = Components. classes[nsPKCS11ModuleDB]. getService(nsIPKCS11ModuleDB); var slot = secmoddb.findSlotByName(tokenName); if (slot) { var oldpwbox = document.getElementById("oldpw"); if (slot.status == nsIPKCS11Slot.SLOT_UNINITIALIZED ) { oldpwbox.setAttribute("disabled", "true"); oldpwbox.setAttribute("type", "text"); oldpwbox.setAttribute("value", bundle.GetStringFromName("password_not_set")); oldpwbox.setAttribute("inited", "true");  document.getElementById('pw1').focus(); } else {  oldpwbox.setAttribute("inited", "false"); oldpwbox.focus(); } } 
context: function onLoad(){  pw1 = document.getElementById("pw1");  params = window.arguments[0].QueryInterface(nsIDialogParamBlock);  tokenName = params.GetString(1);  // Set token name in display  var t = document.getElementById("tokenName");  t.setAttribute("value", tokenName);  // Select first password field  document.getElementById('pw1').focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/65c061212d2e3f9108776361db9b5d7f1f82b6b4/password.js/clean/security/manager/pki/resources/content/password.js