 try { var printerName = gPrintSettings.printerName; var i = dialog.topInput.value * 100; gPrefs.setIntPref("print.printer_"+printerName+".print_edge_top", i);  i = dialog.bottomInput.value * 100; gPrefs.setIntPref("print.printer_"+printerName+".print_edge_bottom", i);  i = dialog.leftInput.value * 100; gPrefs.setIntPref("print.printer_"+printerName+".print_edge_left", i);  i = dialog.rightInput.value * 100; gPrefs.setIntPref("print.printer_"+printerName+".print_edge_right", i); } catch (e) { } 
gPrintSettings.edgeTop          = dialog.topInput.value; gPrintSettings.edgeBottom       = dialog.bottomInput.value; gPrintSettings.edgeLeft         = dialog.leftInput.value; gPrintSettings.edgeRight        = dialog.rightInput.value; 
function onAccept(){  var print_paper_type        = gPrintSettingsInterface.kPaperSizeDefined;  var print_paper_unit        = gPrintSettingsInterface.kPaperSizeInches;  var print_paper_width       = 0.0;  var print_paper_height      = 0.0;  var print_paper_name        = "";  var print_plex_name         = "";  var print_resolution_name   = "";  var print_colorspace        = "";  if (gPrintSettings != null) {    var paperSelectedInx = dialog.paperList.selectedIndex;    var plexSelectedInx  = dialog.plexList.selectedIndex;    var resolutionSelectedInx = dialog.resolutionList.selectedIndex;    var colorspaceSelectedInx = dialog.colorspaceList.selectedIndex;    if (gPaperArray[paperSelectedInx].inches) {      print_paper_unit = gPrintSettingsInterface.kPaperSizeInches;    } else {      print_paper_unit = gPrintSettingsInterface.kPaperSizeMillimeters;    }    print_paper_width      = gPaperArray[paperSelectedInx].width;    print_paper_height     = gPaperArray[paperSelectedInx].height;    print_paper_name       = gPaperArray[paperSelectedInx].name;    print_plex_name        = gPlexArray[plexSelectedInx].name;    print_resolution_name  = gResolutionArray[resolutionSelectedInx].name;    print_colorspace       = gColorspaceArray[colorspaceSelectedInx].name;    gPrintSettings.paperSizeType   = print_paper_type;    gPrintSettings.paperSizeUnit   = print_paper_unit;    gPrintSettings.paperWidth      = print_paper_width;    gPrintSettings.paperHeight     = print_paper_height;    gPrintSettings.paperName       = print_paper_name;    gPrintSettings.plexName        = print_plex_name;    gPrintSettings.resolutionName  = print_resolution_name;    gPrintSettings.colorspace      = print_colorspace;    // save these out so they can be picked up by the device spec    gPrintSettings.printInColor     = dialog.colorRadio.selected;    gPrintSettings.downloadFonts    = dialog.downloadFonts.checked;    gPrintSettings.printCommand     = dialog.cmdInput.value;    gPrintSettings.title            = dialog.jobTitleInput.value;    //     try {      var printerName = gPrintSettings.printerName;      var i = dialog.topInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_top", i);      i = dialog.bottomInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_bottom", i);      i = dialog.leftInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_left", i);      i = dialog.rightInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_right", i);    } catch (e) {    }    if (doDebug) {      dump("onAccept******************************\n");      dump("paperSizeType    "+print_paper_type+" (should be 1)\n");      dump("paperSizeUnit    "+print_paper_unit+"\n");      dump("paperWidth       "+print_paper_width+"\n");      dump("paperHeight      "+print_paper_height+"\n");      dump("paperName       '"+print_paper_name+"'\n");      dump("plexName        '"+print_plex_name+"'\n");      dump("resolutionName  '"+print_resolution_name+"'\n");      dump("colorspace      '"+print_colorspace+"'\n");      dump("printInColor     "+gPrintSettings.printInColor+"\n");      dump("downloadFonts    "+gPrintSettings.downloadFonts+"\n");      dump("printCommand    '"+gPrintSettings.printCommand+"'\n");    }  } else {    dump("************ onAccept gPrintSettings: "+gPrintSettings+"\n");  }  if (paramBlock) {    // set return value to "ok"    paramBlock.SetInt(0, 1);  } else {    dump("*** FATAL ERROR: paramBlock missing\n");  }  return true;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/661226c56a655ed6310ac8dcb3113e7bcd0ee71e/printjoboptions.js/buggy/toolkit/components/printing/content/printjoboptions.js