//隐藏下拉框，以解决下拉框优先度太高的问题，  
function _displaySelect(tag){
     var selects=document.getElementsByTagName("select");//整个页面的所有下拉框
     var objWindow =document.getElementById("WindowDIV"+tag);
     var DIVselects = objWindow.getElementsByTagName("select");//整个弹出层的所有下拉框
     for(var i=0;i<selects.length;i++){
         if(selects[i].style.visibility){
             selects[i].style.visibility="";
         }else{
             selects[i].style.visibility="hidden";
             for(var j=0; i<DIVselects.length; j++){
                 DIVselects[j].style.visibility="";
             }
         }
     }
}
function openWindows(width,height,tag){ 
     var objWindow = document.getElementById("WindowDIV"+tag);
     var objLock =   document.getElementById("LockWindows"+tag);//这个是用于在IE下屏蔽内容用
     objLock.style.display="block";
     objLock.style.width=document.body.offsetWidth+"px";
     objLock.style.height=document.getElementById("wrapper-scroll").scrollHeight+"px";
     objLock.style.minWidth=document.body.offsetWidth+"px";
     objLock.style.minHeight=document.getElementById("wrapper-scroll").scrollHeight+"px";
	 
	 //alert(document.body.scrollHeight+"px");
	 //alert(document.getElementById("wrapper-scroll").scrollHeight);
	 document.body.scrollTop
 
// 判断输入的宽度和高度是否大于当前浏览器的宽度和高度
     if(width>document.body.clientWidth) width = document.body.clientWidth+"px";
     if(height>document.body.clientHeight) height = document.body.clientHeight+"px";
     objWindow.style.display='block';
     objWindow.style.width = width+"px";
     objWindow.style.height = height+"px";
// 将弹出层居中
     objWindow.style.left="40px";//parseInt((document.body.clientWidth-width)/2)+"px";
     objWindow.style.top=(parseInt((document.body.clientHeight-height)/8) + document.getElementById("wrapper-scroll").scrollTop)+"px"; 
     _displaySelect(tag);
}
function hiddenWindows(tag){
     document.getElementById("LockWindows"+tag).style.display='none';
     document.getElementById("WindowDIV"+tag).style.display='none';
     _displaySelect(tag);
}


//s=""
//s += "\r\n网页可见区域宽："+ document.body.clientWidth;
//s += "\r\n网页可见区域高："+ document.body.clientHeight;
//s += "\r\n网页可见区域宽："+ document.body.offsetWidth +" (包括边线的宽)";
//s += "\r\n网页可见区域高："+ document.body.offsetHeight +" (包括边线的宽)";
//s += "\r\n网页正文全文宽："+ document.body.scrollWidth;
//s += "\r\n网页正文全文高："+ document.body.scrollHeight;
//s += "\r\n网页被卷去的高："+ document.body.scrollTop;
//s += "\r\n网页被卷去的左："+ document.body.scrollLeft;
//s += "\r\n网页正文部分上："+ window.screenTop;
//s += "\r\n网页正文部分左："+ window.screenLeft;
//s += "\r\n屏幕分辨率的高："+ window.screen.height;
//s += "\r\n屏幕分辨率的宽："+ window.screen.width;
//s += "\r\n屏幕可用工作区高度："+ window.screen.availHeight;
//s += "\r\n屏幕可用工作区宽度："+ window.screen.availWidth;
//alert(s);