rem: alert("failed to login"); 
add: var alertStr = bundle.GetStringFromName("login_failed"); alert(alertStr); 
context: function doLogin(){  getSelectedItem();  // here's the workaround - login functions are with token  var selected_token = selected_slot.getToken();  try {    selected_token.login(false);    var tok_status = document.getElementById("tok_status");    if (selected_token.isLoggedIn()) {      tok_status.setAttribute("label",                           bundle.GetStringFromName("devinfo_stat_loggedin"));    } else {      tok_status.setAttribute("label",                       bundle.GetStringFromName("devinfo_stat_notloggedin"));    }  } catch (e) {    alert("failed to login");  }  enableButtons();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/05a970ea4f9acc8d4fd68401d40dfb46d0eb54f5/device_manager.js/clean/security/manager/pki/resources/content/device_manager.js