﻿function disableControlDisable(sender, args)
{
    // make it visible
    _disableDiv.style.display = '';
    
    // get the bounds of both the thing we're overlaying
    var bounds = Sys.UI.DomElement.getBounds(_disableTarget.parentNode);
               
    //  set the dimensions of the disable div to the same as the parent
    // removed: our container may be positioned relative and we want to position 0,0
    //Sys.UI.DomElement.setLocation(_disableDiv, bounds.x, bounds.y);
    _disableDiv.style.left = 0 + 'px';
    _disableDiv.style.top = 0 + 'px';
    _disableDiv.style.width = bounds.width + 'px';
    _disableDiv.style.height = bounds.height + 'px';   
}

function disableControlEnable(sender, args)
{
    // make it invisible
    _disableDiv.style.display = 'none';
 }
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();