
<!--
function PreLoadImages()
{
    if (document.images)
    {
        preload_image = new Image();

        var i = 0;

        for(i = 0; i <= images.length; i++) 
        {
            if (images[i] != undefined)
            {
                preload_image.src = images[i];
            }
        }
    }
}

function ShowPrompt(prompt)
{
    var promptDIV = document.getElementById(prompt);
    
    if (promptDIV != undefined)
    {   
        var Xwidth, Yheight;
        Xwidth = promptDIV.offsetWidth;
        Yheight = promptDIV.offsetHeight;
        
        // First, determine how much the visitor has scrolled 
        var scrolledX, scrolledY; 
        if( self.pageYOffset ) { 
            scrolledX = self.pageXOffset; 
            scrolledY = self.pageYOffset; 
        } else if( document.documentElement && document.documentElement.scrollTop ) { 
            scrolledX = document.documentElement.scrollLeft; 
            scrolledY = document.documentElement.scrollTop; 
        } else if( document.body ) { 
            scrolledX = document.body.scrollLeft; 
            scrolledY = document.body.scrollTop; 
        } 

        // Next, determine the coordinates of the center of browser's window 
        var centerX, centerY; 
        if( self.innerHeight ) { 
            centerX = self.innerWidth; 
            centerY = self.innerHeight; 
        } else if( document.documentElement && document.documentElement.clientHeight ) { 
            centerX = document.documentElement.clientWidth; 
            centerY = document.documentElement.clientHeight; 
        } else if( document.body ) { 
            centerX = document.body.clientWidth; 
            centerY = document.body.clientHeight; 
        } 

        if (Yheight > centerY)
        {
            Yheight = centerY - 100;
            promptDIV.style.height = Yheight + 'px';
        }
        else
        {
            promptDIV.style.height = 'auto';
        }
        
        var leftOffset = scrolledX + (centerX - Xwidth) / 2; 
        var topOffset = scrolledY + (centerY - Yheight) / 2; 

        promptDIV.style.top = topOffset + 'px'; 
        promptDIV.style.left = leftOffset + 'px'; 
        promptDIV.style.visibility = 'visible';
    }
}

function HidePrompt(prompt)
{
    var promptDIV = document.getElementById(prompt);
    
    if (promptDIV != undefined)
    {
        promptDIV.style.visibility = 'hidden';
    }
}

function HideAllRequestedShipDatePrompts()
{
    if (requestedShipDatePopups != undefined)
    {
        for (var i = 0; i < requestedShipDatePopups.length; i++)
        {
            HidePrompt(requestedShipDatePopups[i]);
        }
    }
}
//-->
