var docEle = function(){return document.getElementById(arguments[0]) || false;}
function openNewDiv(_id)
{
	var m = "mask";
	if (docEle(_id)) document.removeChild(docEle(_id));
	if (docEle(m)) document.removeChild(docEle(m));
// ??
	var newDiv = document.createElement("div");
	newDiv.id = _id;
	newDiv.style.position = "absolute";
	newDiv.style.zIndex = "9999";
	newDiv.style.width = "320px";
	newDiv.style.height = "180px";
	newDiv.style.top = "130px";//
	newDiv.style.left = (parseInt(document.body.scrollWidth) - 300) / 2 + "px"; // ?
	newDiv.style.background = "#EFEFEF";
	newDiv.style.border = "1px solid #cccccc";
	newDiv.style.padding = "5px";
	newDiv.innerHTML ="<div style=line-height:22px;text-align:left;>尊敬的客户：<br>&nbsp;&nbsp;&nbsp;&nbsp;您们好，在此新春佳节来临之际，我们公司将年假定于2010年2月6日（星期六）至2月21日（星期日），2月22日（大年初九）开始上班。<br/>&nbsp;&nbsp;&nbsp;&nbsp;芯谷对广大客户对我公司一直以来的支持和帮助，期待新的一年新的气象，我们的合作更加愉快，谨祝各位客户在新的一年里万事如意，财源广进！<br><div align=right>芯谷集成电路有限公司</div></div>";
	document.body.appendChild(newDiv);
// mask?

var newMask = document.createElement("div");
	newMask.id = m;
	newMask.style.position = "absolute";
	newMask.style.zIndex = "1";
	newMask.style.width = document.body.scrollWidth + "px";
	newMask.style.height = document.body.scrollHeight + "px";
	newMask.style.top = "0px";
	newMask.style.left = "0px";
	newMask.style.background = "#ffffff";
	newMask.style.filter = "alpha(opacity=40)";
	newMask.style.opacity = "0.40";
	document.body.appendChild(newMask);
// ?mask?
	function divclose()
	{  
		document.body.removeChild(docEle(_id)); 
		document.body.removeChild(docEle(m));
		return false;
	}
	var t=setTimeout(divclose,10000);
}
openNewDiv("newDiv");

// JavaScript Document
