rem: var integerField = document.getElementById( elementID ); if ( !integerField ) return; var value = integerField.value; 
add: var value = element.value; 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printdialog.js/buggy/xpfe/global/resources/content/printdialog.js