rem: percentIndex           = size.search(/%/); 
add: percentIndex = size.search(/%/); 
context: function InitPixelOrPercentPopupButton(element, attribute, buttonID){  size             = element.getAttribute(attribute);  btn             = document.getElementById(buttonID);  // Search for a "%" character  percentIndex           = size.search(/%/);  if (percentIndex > 0) {    percentChar         = "%";    // Strip out the %    size           = size.substr(0, percentIndex);    // TODO: USE ENTITIES FOR TEXT VALUES    if (btn)      btn.setAttribute("value","percent");  } else {    if (btn)      btn.setAttribute("value","pixels");  }  return size;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/711c0f72c9655c2558d43bb716847f1a294b8372/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js