Convert to for-loop. Based on Patch part 2 from Graham Russell. It contains one renaming of a local variable from laf to a menuItem and a bit of white space policeing. Bugzilla Id: 57981