rem: dialog.printButton.setAttribute("disabled","true" ); 
add: dialog.printButton.setAttribute("disabled","true"); 
context: function checkInteger(elementID){  var integerField = document.getElementById( elementID );  if ( !integerField )    return;  var value = integerField.value;  if (value && value.length > 0) {    value = value.replace(/[^0-9]/g,"");    if (!value) value = "";    integerField.value = value;  }  if (!value || value < 1 || value > 999)    dialog.printButton.setAttribute("disabled","true" );  else    dialog.printButton.removeAttribute("disabled");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7929b953f5208c8ecc3653c4cf5ae465cc968301/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js