replaced OpenLayers.js script with one used by measure example and now works. do not know what is changed in it, but with last stable OpenLayers.js version 2.10 didn't work