Rails + overlib +forms

Hi there,

I want to put a form into a overlib div.
For Example:

never shown

Now overlib deletes the html inside my div when it shows the popup and
all i see is ‘Not Needed’.

What i need to do now is to construct the form in my action and pass it
as a parameter to the overlib call:
<input type=“button” value=“Show Form” onclick="return overlib(<%=
@my_form %>…

Although i’m new to rails i realize that this is kind of ugly.
So thought i might ask you guru’s if you know of a nicer way to solve
this problem.

best,
Marc

solved, found an alternaive to overlib which works exactly like i want.
http://jquery.com/demo/thickbox/