// JavaScript Document

function orderopen(DIV_NAME) { 

var kuan=document.documentElement.scrollWidth;  
//var gao=document.documentElement.scrollHeight; 
//var kksk=window.screen.height;
//var tt=document.documentElement.offsetHeight ;
var tt=document.documentElement.clientHeight;
var gao=tt+"px"; 
window.scrollTo(0,0);
//获取窗口高度 
//if (window.innerHeight) 
//var winHeight = window.innerHeight; 
//else if ((document.body) && (document.body.clientHeight)) 
//var winHeight = document.body.clientHeight; 
//通过深入Document内部对body进行检测，获取窗口大小 
//if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth) 
//{ 
//var winHeight = document.documentElement.clientHeight; }
//var alldiv_top1=(winHeight-317)/2;
//var alldiv_top2=(tt-winHeight)+alldiv_top1+"px"; 


document.getElementById("mask").style.display="block";
document.getElementById("mask").className="maskdivbig1";
document.getElementById("mask").style.width="100%";
document.getElementById("mask").style.height=gao;

//屏蔽滚动条
var temp_h1 = document.body.clientHeight;
var temp_h2 = document.documentElement.clientHeight;
var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false; 
var htmlbody = isXhtml?document.documentElement:document.body;
var newdivs = false;

	if (newdivs){
		newdivs = false;
		htmlbody.style.overflow = "auto";
	}else{
		newdivs = true;
		htmlbody.style.overflow = "hidden";
	}
//屏蔽滚动条END

document.getElementById(DIV_NAME).style.display="block";
document.getElementById("video_div").style.display="none";
//document.getElementById(DIV_NAME).style.top=alldiv_top2;
//document.getElementById(DIV_NAME).style.top="130px";

}



function orderclose()
{ 
//屏蔽滚动条
var temp_h1 = document.body.clientHeight;
var temp_h2 = document.documentElement.clientHeight;
var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false; 
var htmlbody = isXhtml?document.documentElement:document.body;
var newdivs = false;

	if (newdivs){
		newdivs = false;
		htmlbody.style.overflow = "auto";
	}else{
		newdivs = true;
		htmlbody.style.overflow = "auto";
	}
//屏蔽滚动条END

document.getElementById("mask").style.display="none";
document.getElementById("mask_ad").style.display="none";
document.getElementById("video_div").style.display="block";
//释放滚动条

}
