add: document.getElementById(theView ? "printCurrentViewRadio" : "custom-range") .setAttribute("selected", true); 
context: function loadCalendarPrintDialog(){    // set the datepickers to the currently selected dates    var theView = window.opener.currentView();    document.getElementById("start-date-picker").value = theView.startDay.jsDate;    document.getElementById("end-date-picker").value = theView.endDay.jsDate;    if (!theView.getSelectedItems({}).length) {        document.getElementById("selected").setAttribute("disabled", true);    }    // Get a list of formatters    var contractids = new Array();    var catman = Components.classes["@mozilla.org/categorymanager;1"]                           .getService(Components.interfaces.nsICategoryManager);    var catenum = catman.enumerateCategory('cal-print-formatters');    // Walk the list, adding items to the layout menupopup    var layoutList = document.getElementById("layout-field");    while (catenum.hasMoreElements()) {        var entry = catenum.getNext();        entry = entry.QueryInterface(Components.interfaces.nsISupportsCString);        var contractid = catman.getCategoryEntry('cal-print-formatters', entry);        var formatter = Components.classes[contractid]                                  .getService(Components.interfaces.calIPrintFormatter);        // Use the contractid as value        layoutList.appendItem(formatter.name, contractid);    }    layoutList.selectedIndex = 0;    opener.setCursor("auto");    refreshHtml();    self.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/91c1fdcdc109e8bd99fd0a8301547333e1c2020b/printDialog.js/clean/calendar/resources/content/printDialog.js