        var objDiv;
        var hsize;
        var iwidth;
       
       
        function OpenLogin()
        { 

          hsize= document.getElementById('divMasterHolder').scrollHeight;  //screen.height;
        
            var wsize= screen.width;	      
            var mydiv = document.getElementById("viewlargdiv");        
            var h1=parseInt(screen.height); 
            
            var divhighte=document.getElementById('popupdiv').scrollHeight; //div.height;      
            var divwidth = document.getElementById('popupdiv').scrollWidth;  //screen.width;
                      
            var w1 = parseInt(divwidth);
            var h2=parseInt(divhighte);
            
            document.getElementById('divdisablewind').style.height = hsize + 60 + "px";        
            document.getElementById('divdisablewind').style.display="block";
            document.getElementById('divdisablewind').style.left = "0px";           
         document.getElementById('viewlargdiv').style.left =  "0px";   
          
           // document.getElementById('viewlargdiv').style.left = ((wsize/2)-(w1/2)) + "px";         
            document.getElementById('viewlargdiv').style.top =  ((h1/2)-(h2))  + "px"; 
                
            mydiv.style.display="block";   
                            
            objDiv = "viewlargdiv";       
            return false;   
              }
       
      var y1 = 150; 
      (document.getElementById) ? dom = true : dom = false;

  //========================================================================================     
       
         function placeWarningLayout()
        {
	        if (dom && !document.all) 
	        {document.getElementById("viewlargdiv").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";}
            if (document.all) {document.all["viewlargdiv"].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
            window.setTimeout("placeWarningLayout()", 100);
        }  
       
        function placeMessageLayout()
        {
	        if (dom && !document.all) 
	        {document.getElementById("viewlargdiv2").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";}
            if (document.all) {document.all["viewlargdiv2"].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
            window.setTimeout("placeMessageLayout()", 100);
        }  

        function closelargwindow()
        {   
        document.getElementById('divdisablewind').style.display="none";
        document.getElementById('viewlargdiv').style.display="none";  
         document.getElementById('viewlargdiv2').style.display="none";         
        return false;     
        } 
         function closeSummaryWindow()
        {   
        document.getElementById('divdisablewind').style.display="none";
         document.getElementById('viewlargdiv2').style.display="none";         
        return false;     
        } 
         
         function showWarningLayout(wMgs)
        { 
            var err = document.getElementById('warningMsg')
                 err.innerHTML = wMgs;
            
             var maskDiv = document.getElementById('divdisablewind');
             var holderDiv = document.getElementById('divMasterHolder');
             var floatDiv =  document.getElementById('viewlargdiv');
             var contentDiv = document.getElementById('popupdiv');
             
             var holderHeight = holderDiv.scrollHeight;
             var holderWidth = holderDiv.scrollWidth;
             var windowWidth = screen.width;
             var windowHeight = screen.height;
             
                 maskDiv.style.height = holderHeight + "px";        
                 maskDiv.style.display = "block";
                 maskDiv.style.left = "0px";     
                
                floatDiv.style.display = "block";
                
            var floatHeight = floatDiv.offsetHeight;
            var floatWidth = floatDiv.offsetWidth;
                
                floatDiv.style.left = parseInt((windowWidth/2)-(floatWidth/2)) + "px";
                floatDiv.style.top = parseInt((windowHeight/2)-(floatHeight/2)) + "px";
          
            placeWarningLayout();
             
            return false;   
              }
               function showWarningLayout3(wMgs)
        { 
            var err = document.getElementById('warningMsg3')
                 err.innerHTML = wMgs;
            
             var maskDiv = document.getElementById('divdisablewind');
             var holderDiv = document.getElementById('divMasterHolder');
             var floatDiv =  document.getElementById('viewlargdiv3');
             var contentDiv = document.getElementById('popupdiv3');
             
             var holderHeight = holderDiv.scrollHeight;
             var holderWidth = holderDiv.scrollWidth;
             var windowWidth = screen.width;
             var windowHeight = screen.height;
             
                 maskDiv.style.height = holderHeight + "px";        
                 maskDiv.style.display = "block";
                 maskDiv.style.left = "0px";     
                
                floatDiv.style.display = "block";
                
            var floatHeight = floatDiv.offsetHeight;
            var floatWidth = floatDiv.offsetWidth;
                
                floatDiv.style.left = parseInt((windowWidth/2)-(floatWidth/2)) + "px";
                floatDiv.style.top = parseInt((windowHeight/2)-(floatHeight/2)) + "px";
          
            placeWarningLayout3();             
            return false;   
              }
                function placeWarningLayout3()
        {
	        if (dom && !document.all) 
	        {document.getElementById("viewlargdiv3").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";}
            if (document.all) {document.all["viewlargdiv3"].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
            window.setTimeout("placeWarningLayout3()", 100);
        }  
//========================================================================================             
         function showMessageLayoutLogin(wMgs)
        { 
             var err = document.getElementById('lnkMsgLogin')
                 err.innerHTML = wMgs;
            
             var maskDiv = document.getElementById('divMaskLogin');
             var holderDiv = document.getElementById('divMasterHolder');
             var floatDiv =  document.getElementById('divFloatLogin');
             var contentDiv = document.getElementById('divContentLogin');
             
             var holderHeight = holderDiv.scrollHeight;
             var holderWidth = holderDiv.scrollWidth;
             var windowWidth = screen.width;
             var windowHeight = screen.height;
             
                 maskDiv.style.height = holderHeight + "px";        
                 maskDiv.style.display = "block";
                 maskDiv.style.left = "0px";     
                
                floatDiv.style.display = "block";
                
            var floatHeight = floatDiv.offsetHeight;
            var floatWidth = floatDiv.offsetWidth;
                
                floatDiv.style.left = parseInt((windowWidth/2)-(floatWidth/2)) + "px";
                floatDiv.style.top = parseInt((windowHeight/2)-(floatHeight/2)) + "px";
          
            placeMessageLayoutLogin();
             
            return false;       
              
         }
              function placeMessageLayoutLogin()
        {
	        if (dom && !document.all) 
	        {document.getElementById("divFloatLogin").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1)) + "px";}
            if (document.all) {document.all["divFloatLogin"].style.top = document.documentElement.scrollTop + (document.documentElement.clientHeight - (document.documentElement.clientHeight-y1)) + "px";}
            window.setTimeout("placeMessageLayoutLogin()", 10);
        }  

        function closelargwindowLogin()
        {   
        document.getElementById('divMaskLogin').style.display="none"; 
        document.getElementById('divFloatLogin').style.display="none";          
        return false;     
        } 
//========================================================================================
             
                function showMessageLayout(wMgs)
        { 

          var err = document.getElementById('lnkMsg')
                 err.innerHTML = wMgs;
            
             var maskDiv = document.getElementById('divdisablewind');
             var holderDiv = document.getElementById('divMasterHolder');
             var floatDiv =  document.getElementById('viewlargdiv2');
             var contentDiv = document.getElementById('popupdivMsg');
             
             var holderHeight = holderDiv.scrollHeight;
             var holderWidth = holderDiv.scrollWidth;
             var windowWidth = screen.width;
             var windowHeight = screen.height;
             
                 maskDiv.style.height = holderHeight + "px";        
                 maskDiv.style.display = "block";
                 maskDiv.style.left = "0px";     
                
                floatDiv.style.display = "block";
                
            var floatHeight = floatDiv.offsetHeight;
            var floatWidth = floatDiv.offsetWidth;
                
                floatDiv.style.left = parseInt((windowWidth/2)-(floatWidth/2)) + "px";
                floatDiv.style.top = parseInt((windowHeight/2)-(floatHeight/2)) + "px";
          
            placeMessageLayout();
             
            return false;   
            
//          
//          hsize= document.getElementById('divMasterHolder').scrollHeight;  //screen.height;
//        
//            var wsize= screen.width;	      
//            var mydiv = document.getElementById("viewlargdiv2");        
//            var h1=parseInt(screen.height); 
//            
//            var divhighte=document.getElementById('popupdivMsg').scrollHeight; //div.height;      
//            var divwidth = document.getElementById('popupdivMsg').scrollWidth;  //screen.width;
//                      
//            var w1 = parseInt(divwidth);
//            var h2=parseInt(divhighte);
//            
//            document.getElementById('divdisablewind').style.height = hsize + 60 + "px";        
//            document.getElementById('divdisablewind').style.display="block";
//            document.getElementById('divdisablewind').style.left = "0px";           
//         //document.getElementById('viewlargdiv2').style.left =  "0px";   
//          
//         //   document.getElementById('viewlargdiv2').style.left = ((wsize/2)-(w1/2)) + "px";         
//            document.getElementById('viewlargdiv2').style.top =  ((h1/2)-(h2))  + "px"; 
//                
//            mydiv.style.display="block";   
//                            
//            objDiv = "viewlargdiv2";   
//            var err = document.getElementById('lnkMsg')
//            err.innerHTML = wMgs;
//             //if(document.all) err.innerText = wMgs; else err.textContent = wMgs;
//             placeMessageLayout();
//            return false;   
              }
   //                if(document.getElementById){
//oHeight = floatDiv.offsetWidth;
//}
//else if (document.layers){
//oHeight = document.layers["divContentLogin"].clip.height;
//}
//             alert(floatWidth);    
