// Move an element directly on top of another element (and optionally
// make it the same size)
function Cover(bottom, top, ignoreSize) 
{
    var location = Sys.UI.DomElement.getLocation(bottom);
    top.style.position = 'absolute';
    top.style.top = location.y + 'px';
    top.style.left = location.x + 'px';
    
    if (!ignoreSize) 
    {
        top.style.height = bottom.offsetHeight + 'px';
        top.style.width = bottom.offsetWidth + 'px';
    }
}

// Displays a page in a popup.
function ShowPopUp(pageName)
{
    window.open(pageName, 'name', 'menubar=no, status=no, titlebar=no, toolbar=no, location=no, height=700, width=900');
}

// Starts the timer at the Choossekvik.asxc page.
function StartTimer()
{
    var timer = $find('StatusTimer');
    timer._startTimer();
}

// Stops the timer at the Choossekvik.asxc page.
function StopTimer()
{
    var timer = $find('StatusTimer');
    timer._stopTimer();
}


