// popupDialog.js:
//
// Description:
//
//  Create a popup dialog box that is a div that overlays the screen.  
//  We'll AJAX content into the dialog.
//
//  *Note: You'll need a bit of CSS to work with this called "popUpDialog".
//         It will position the dialog and style it.
//
// 1.00.00  jwl 06/20/07	Created
//


// createPopUpDialog:
//
// This creates a div that it overlays on the screen.
//
function createPopUpDialog(szDivName, szURL)
{	    
    var popupDialogEl       = document.createElement("div");
    popupDialogEl.className = "popUpDialog";
    popupDialogEl.id        = "popUpDialog";
    document.getElementById(szDivName).appendChild(popupDialogEl);	                
            
    ajax('GET',szURL,true,'','popUpDialog');	                
        
} // createPopUpDialog		


// closePopUpDialog:
//
// This just closes the div that we've popped up on top of the screen.
//
function closePopUpDialog()
{	
    if(document.getElementById("popUpDialog"))
        document.getElementById("popUpDialog").parentNode.removeChild(document.getElementById("popUpDialog"));
        
} // closePopUpDialog	        
			


