﻿// JScript File

function openChildWindow(Url)
	{	
		//var childWindow;
	    //if (childWindow) {
	    //childWindow.close();
	   // childWindow=null;
	    //}
	    //childWindow=window.open('','LDCAS_child');
	   // childWindow.close();
		my_window = window.open(Url,'_blank','width=800,height=600,toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,alwaysRaised=1')
	}
	

function Cover(bottom, top, ignoreSize) {

                
                
                var location = Sys.UI.DomElement.getLocation(bottom);
                top.style.position = 'absolute';
                top.style.top = (location.y-125)  + 'px';
                top.style.left = location.x + 'px';
               // top.style.top =  '346px';
                //top.style.left =  '197px';
             //   alert ("This is the button position for the flyout call " +location.y+"px");
                           
                if (!ignoreSize) {
                                  
                    top.style.height = bottom.offsetHeight + 'px';
                    top.style.width = bottom.offsetWidth + 'px';
                }
                 
            }
            
function Cover2(bottom, top, ignoreSize) {

                
                
                var location = Sys.UI.DomElement.getLocation(bottom);
              //  alert ("This is the flyout position for the info call " +location.y+"px");
                top.style.position = 'absolute';
                top.style.top = (location.y-125) + 'px';
                top.style.left = location.x + 'px';
               // top.style.top =  '346px';
                //top.style.left =  '197px';
               // alert ("This is after setting  position for the info call " +top.style.top+"px");
                           
                if (!ignoreSize) {
                                  
                    top.style.height = bottom.offsetHeight + 'px';
                    top.style.width = bottom.offsetWidth + 'px';
                    
                //    alert ("This is after setting the offset position for the info call " +top.style.top+"px");
                    
                }
                 
            }            
            
            
function GetElementPosition(myItem)
{
    
   
    var location = Sys.UI.DomElement.getLocation(myItem);
    alert ("thes position is x = " + location.x + " y = "+ location.y);
    
}
