I'm using 3 frames in a PHP page, header, main menu, side navigation.
I need to alert user when his/her session is about to end, i did that and now i'm showing the dialog box with yes/no/ buttons,
My problem is i'm displaying tht javascript dialog box in main menu frame only,
i need to display that in the entire frame blocked.
Like BlockUI.

Here is my script for tht.
Code HTML4Strict:
include "authn.php";
<html dir='ltr'>
<link rel="shortcut icon" href="images/tlogo.ico"/>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Navigation Page</title>
<script language="JavaScript">
var frame = '<FRAMESET ROWS="121,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="leftmenu.php"><FRAMESET COLS="223, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="MainMenuframe.php"' ;
var pos = document.location.href.indexOf("?http://");
if (pos>0) {
  frame += document.location.href.substr(pos+1);
} else {
  frame += 'dc_toc.html';
frame += '"></FRAMESET></FRAMESET>';
Here is my javascript dialog box script which i'm using it in Main Menu Frame.
can anyone please help me out, how to use this Block UI feature without changing my javascript program.

Code JavaScript:
<script type="text/javascript">
Code HTML4Strict:
<div id="warningDiv"></div>
<img src="images/load.gif" onLoad="initTimer();" >