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) { 
var theView = getCalendarView(); if (theView) { document.getElementById("start-date-picker").value = theView.startDay.jsDate; document.getElementById("end-date-picker").value = theView.endDay.jsDate; } else { document.getElementById("printCurrentViewRadio").setAttribute("disabled", true); } if (!theView || !theView.getSelectedItems({}).length) { 
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();}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/4620b10226698b022fb4b803166179b73c4aaa26/printDialog.js/clean/calendar/resources/content/printDialog.js