﻿// JScript File

// 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';
   }
}
