//滑动门
var fodTime;
function setTab(area,id) {
	clearTimeout(fodTime);
	fodTime=setTimeout(function(){setTab2(area,id)},150);

}
function setTab2(area,id) {
	var tabArea=document.getElementById(area);
	var contents=tabArea.childNodes;
	for(i=0; i<contents.length; i++) {
		if(contents[i].className=='tabcontent'){contents[i].style.display='none'}
	}
	document.getElementById(id).style.display='';

	var tabs=document.getElementById(area+'tabs').getElementsByTagName('a');
	for(i=0; i<tabs.length; i++) { tabs[i].className='tab'; }
	document.getElementById(id+'tab').className='tab curtab';
	document.getElementById(id+'tab').blur();
}
function   sAlert(strC,StrTitle,BoxW,BoxH,Ctype){   
	var   sWidth,sHeight;
	sWidth=document.body.offsetWidth;
	sHeight=document.body.offsetHeight;	  
	var   bgObj=document.createElement("div");//背景
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.width=sWidth+"px";
	bgObj.style.height=sHeight+"px";
	document.body.appendChild(bgObj);
	var   msgObj=document.createElement("div");//主体 
	msgObj.setAttribute("id","msgDiv"); 
	msgObj.style.width=BoxW+"px";
	msgObj.style.height=BoxH+"px";
	msgObj.style.left=(sWidth-BoxW)/2+"px";
	msgObj.style.top=(window.screen.height-BoxH-200)/2+"px";
	var   title=document.createElement("h3");//标题
	title.setAttribute("id","msgTitle");
	title.innerHTML="<span id=msgTitleH3>"+StrTitle+"</span> <span id='CloseX'>×</span>";
	title.onclick=function(){
		document.body.removeChild(bgObj);
		document.getElementById("msgDiv").removeChild(title);
		document.body.removeChild(msgObj);
	}
	document.body.appendChild(msgObj);
	document.getElementById("msgDiv").appendChild(title);
	var   txt=document.createElement("span");
	if (Ctype=="Url"){
		BoxH=BoxH-25;
		strC="<iframe src='"+strC+"' height='"+BoxH+"' width='"+BoxW+"'></iframe>";
	}
	txt.innerHTML=strC;
	document.getElementById("msgDiv").appendChild(txt);
}