


//-----------------------AJAX的处理-----------------------


//-----------------------AJAX的处理-----------------------

function shade() 
{
    var currentObj = document.getElementById("pagePanel");   
    //覆盖select 
    currentObj.innerHTML = '<iframe style="z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>';
    
    currentObj.style.left = "0px";
    currentObj.style.top = "0px";        
    currentObj.style.zIndex = "10";      
    currentObj.style.width = document.body.scrollWidth + "px";
    currentObj.style.height = document.body.scrollHeight + "px";   
    currentObj.style.position = "absolute";    
    currentObj.style.backgroundColor = "#ffffff"; 
    if (currentObj.style.display == 'none')
    {            
        currentObj.style.opacity = '0';
        currentObj.style.filter = 'alpha(opacity=60)';
        currentObj.style.display = 'block';
        MsgDiv.style.display = 'block';
    }        
    else
    {
        var opacity = parseInt(currentObj.style.opacity);
        var currentOpacity = opacity;        
       currentObj.style.display = 'none';  
       MsgDiv.style.display = 'none';  
    } 
    
    
    this.MsgDiv.style.top = this.MsgDiv.style.left = "50%";
    if(this.Fixed)
    {
        this.MsgDiv.style.marginTop = - this.MsgDiv.offsetHeight / 2 + "px";
        this.MsgDiv.style.marginLeft = - this.MsgDiv.offsetWidth / 2 + "px";
    }
    else
    {
        MsgDiv.style.marginTop = document.documentElement.scrollTop - MsgDiv.offsetHeight / 2 + "px";
        MsgDiv.style.marginLeft = document.documentElement.scrollLeft - MsgDiv.offsetWidth / 2 + "px";
    }
}


function shadeMust() 
{
    var currentObj = document.getElementById("pagePanel2"); 
    
    //覆盖select
    currentObj.innerHTML = '<iframe style="z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>';   
    
    currentObj.style.left = "0px";
    currentObj.style.top = "0px";        
    currentObj.style.zIndex = "10";      
    currentObj.style.width = document.body.scrollWidth + "px";
    currentObj.style.height = document.body.scrollHeight + "px";   
    currentObj.style.position = "absolute";    
    currentObj.style.backgroundColor = "#ffffff"; 
    if (currentObj.style.display == 'none')
    {            
        currentObj.style.opacity = '0';
        currentObj.style.filter = 'alpha(opacity=60)';
        currentObj.style.display = 'block';
        MsgDiv2.style.display = 'block';
    }        
    else
    {
        var opacity = parseInt(currentObj.style.opacity);
        var currentOpacity = opacity;        
       currentObj.style.display = 'none';  
       MsgDiv2.style.display = 'none';  
    } 
    
    //层居中
    this.MsgDiv2.style.top = this.MsgDiv2.style.left = "50%";
    if(this.Fixed)
    {
        this.MsgDiv2.style.marginTop = - this.MsgDiv2.offsetHeight / 2 + "px";
        this.MsgDiv2.style.marginLeft = - this.MsgDiv2.offsetWidth / 2 + "px";
    }
    else
    {
        MsgDiv2.style.marginTop = document.documentElement.scrollTop - MsgDiv2.offsetHeight / 2 + "px";
        MsgDiv2.style.marginLeft = document.documentElement.scrollLeft - MsgDiv2.offsetWidth / 2 + "px";
    }          
}
