Focus to an item

I am new in using DHTMLX and even in Javascript, so probably my question is silly.

Is it possible to set the focus to an item of a dhtmlxForm?

I am trying to do the following. I have a button, with what I can display a layer with a dhtmlxGrid on it. Of course if I click the button, the field in which I was looses the focus. I’d like to go back where I was after hiding the layer.
It would be fine too to know where I was inside the form before clicking the button. I can do this by setting a hidden value in the onfocus event of the items, but probably there is a better solution.

Thanks in advance for any help.

I forgot to mention that I am using version 3.0 Beta.

Unfortunately current version of dhtmlxForm doesn’t have public API to get/set focus on certain element.

Thanks. In this case I will have to forget to use dhtmlxForm.

Anyway, I think it is a must to be able to control the behaviour of a form.