rem: var pat = new RegExp("/\D+/g"); if (pat.test(stringIn)) { dump("TEST SUCCEEDED\n") editField.value = stringIn.replace(pat,""); 
add: if (stringIn && stringIn.length > 0) {  editField.value = stringIn.replace(/\D+/g,""); 
context: function forceInteger(elementID){  var editField = document.getElementById( elementID );  if ( !editField )    return;  var stringIn = editField.value;  var pat = new RegExp("/\D+/g");  if (pat.test(stringIn)) {dump("TEST SUCCEEDED\n")    editField.value = stringIn.replace(pat,"");    // we hope to remove the following line for blur() once xp widgets land    // cmanske (9/15) testing this now that GFX ender widget is active    //editField.blur();    sysBeep.Beep();  }  else {dump("TEST didn't SUCCEEDED\n")  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/732e3a013f8911c98db0b49a1e4ce05d9f36a4f8/EdDialogCommon.js/clean/editor/ui/dialogs/content/EdDialogCommon.js