I am trying to use the dhtml modal script to open a form in the modal pop-up and do some validation in the form. It looks like the javascripts for the form validation is expected to be in the page where I hvae the modal script to pop-up the form. I think it is not ideal to have any javascript that is irrelevant to the main page. Please advise on how I can have the javascript working right from the modal form.

Thanks in advance,