This can be done using JavaScript, and is, in fact, pretty easy.
The field property to look at is rect . It is an array of the coordinates of the upper left and the lower right corner of the field.
You either know the coordinates of the field where it should be when moved, then you simply set them, or, you know by how much it has to be moved. The example below is a code snippet to move the field up by the value "offset":
var orirect = this.getField("myField").rect ;
var newrect = [orirect[0], orirect[1]+offset, orirect[2], orirect[3]+offset] ;
this.getField("myField").rect = newrect ;
and that should do it.
Hope this can help.
Max Wyss.