Xpages Java Script Limits

Hi Experts

i have used the some JS code on the textbox click on the form, in Form i can use $$HTMLHead.in which i declare a js file which is store in the HTML Folder of the domino Directory.

i can use the JS function on the text box onclick event.

Now same functionality i want in XPages, but i dont know how Xpgages support that.

Can anybody can give there valuable response.

pls help…

Thanks

Yuvi.