però così
var pos = getPageCoords($('#'+myId))
alert (pos.x + " " + pos.y);

ottengo NaN NaN

dove sbaglio?