i am new to web development, please suggest me a solution for my problem,

I have to integrate a Yahoo modal dialog box in my webpage, in that web page there are 4 frames, i used a yahoo modal dialog box in one frame, it works well in the particular frame, it blocks control of a single frame while the dialog box is active.

I need to block all the frames while i am using the modal dialog box in the single frame in my html page, i increased the z-index in the container.css file but it doesnt work.

tell me any solution for my problem