if (document.getElementById("applications").checked) shortcuts += "applications,"; 
  accept : function() {    var bundle = Cc["@mozilla.org/intl/stringbundle;1"].getService(Ci.nsIStringBundleService);    bundle = bundle.createBundle("chrome://webrunner/locale/install-shortcut.properties");    var name = document.getElementById("name").value;    // Trim leading / trailing spaces    name = name.replace(/^\s+/, "").replace(/\s+$/, "");    if (name.length == 0) {      document.getElementById("name").focus();      alert(bundle.GetStringFromName("name.missing"));      return false;    }    // Check for invalid characters (mainly Windows)    if (/([\\*:?<>|\/\"])/.test(name)) {      document.getElementById("name").focus();      alert(bundle.GetStringFromName("name.invalid"));      return false;    }    var shortcuts = "";    if (document.getElementById("desktop").checked)      shortcuts += "desktop,";    if (document.getElementById("programs").checked)      shortcuts += "programs,";    if (document.getElementById("quicklaunch").checked)      shortcuts += "quicklaunch,";    if (shortcuts.length == 0) {      alert(bundle.GetStringFromName("shortcuts.missing"));      return false;    }    var programs = document.getElementById("programs");    if (window.arguments) {      var wai = new WebAppInstall();      if (window.arguments.length == 2) {        var uri = document.getElementById("uri");        var doLocation = document.getElementById("location").checked ? true : false;        var doStatus = document.getElementById("status").checked ? true : false;        var doNavigation = document.getElementById("navigation").checked ? true : false;        var idPrefix = name.toLowerCase();        idPrefix = idPrefix.replace(" ", ".", "g");        var params = {id: idPrefix + "@prism.app", uri: uri.value, icon: "app", status: doStatus, location: doLocation, sidebar: "false", navigation: doNavigation};        // Make the web application in the profile folder        var wai = new WebAppInstall();        wai.createApplication(params);        // Update the caller's config        window.arguments[0].id = params.id;        window.arguments[0].uri = params.uri;        window.arguments[0].icon = params.icon;        window.arguments[0].status = params.status;        window.arguments[0].location = params.location;        window.arguments[0].navigation = params.navigation;        // Let the caller know we actually installed a web application        window.arguments[1].value = false;      }      // Make any desired shortcuts      wai.createShortcut(name, window.arguments[0].id, window.arguments[0].icon, shortcuts);    }    return true;  }
705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/705/9acd92adb081f645afc8da9edae2a3f507dde390/install-shortcut.js/clean/app/chrome/content/install-shortcut.js