//coder by forver
	var docEle = function() {
		return document.getElementById(arguments[0]) || false;
	}
	function openNewDiv(_innermessage,redirecturl) {
	    var icon=1;
		var m = "mask";
		var sWidth,sHeight;
		sWidth=document.body.scrollWidth;
		sHeight=document.body.offsetHeight>100?document.body.offsetHeight:window.screen.availHeight;
		sHeightIE6=document.body.scrollHeight;
		if (docEle("CCWAMaskDiv")) document.removeChild(docEle("CCWAMaskDiv"));
		if (docEle(m)) document.removeChild(docEle(m));
		// 新激活图层
		var newDiv = document.createElement("div");
		newDiv.id = "CCWAMaskDiv";
		newDiv.style.position = "absolute";
		newDiv.style.zIndex = "9999";
		newDiv.style.width = "400px";
		newDiv.style.height = "100px";
		newDiv.style.top = "50%";
		newDiv.style.left = "50%"; 
		newDiv.style.background = "#E7F3FF"
		if(arguments.length==3){
		icon=arguments[2];
		}
		newDiv.style.backgroundImage="url(/images/messageicon/"+icon+".gif)";
		newDiv.style.backgroundRepeat="no-repeat";
		newDiv.style.backgroundPosition="10%";
		newDiv.style.border = "1px solid #2C59AA";
		newDiv.style.borderRight = "3px solid #2C59AA";
		newDiv.style.borderBottom = "3px solid #2C59AA";
		newDiv.style.marginLeft = "-225px" ;
		newDiv.style.fontSize="14px";
		newDiv.style.fontWeight = "bold";
		newDiv.style.marginTop = -75+document.documentElement.scrollTop+"px";
		newDiv.style.lineHeight ="100px";
		newDiv.style.textAlign="center";
		newDiv.innerHTML = _innermessage;
		document.body.appendChild(newDiv);
		// mask图层
		var newMask = document.createElement("div");
		newMask.id = m;

		newMask.style.position = "absolute";
		newMask.style.zIndex = "1";
		newMask.style.width = sWidth + "px";
		newMask.style.height = sHeight + "px";
		newMask.style._height = sHeightIE6 + "px";
		newMask.style.top = "0";
		newMask.style.left = "0";
		newMask.style.background = "#000";
		newMask.style.filter = "alpha(opacity=40)";
		newMask.style.opacity = "0.40";

		

		// 关闭mask和新图层
		var newA = document.createElement("h4");
		   newA.setAttribute("align","center");
		   newA.style.margin="0";
		   newA.style.position="relative";
		   newA.style.top="-30px";
		   newA.style.textAlign="center";
		   newA.style.border="1px solid #2C59AA";
		   newA.style.height="18px";
		   newA.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";
		   newA.style.color="#333";
		   newA.style.width="80px";
		   newA.style.float="right";
		   newA.style.filter="progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#C3DAF5)";
		   newA.style.cursor="pointer";
		   newA.innerHTML="我知道啦!";
		document.onkeydown = function() {
		  if(event.keyCode==13)   
			{   
			document.body.removeChild(docEle("CCWAMaskDiv"));
			document.body.removeChild(docEle(m));
			if(redirecturl=="0") {
			return false;
			}
			else if(redirecturl=="-1") {
			window.history.back(-1);
			}
			else{
			self.navigate(redirecturl);
			} 
			}
		
		}
		newA.onclick = function() {
			document.body.removeChild(docEle("CCWAMaskDiv"));
			document.body.removeChild(docEle(m));
			if(redirecturl=="0") {
			return false;
			}
			else if(redirecturl=="-1") {
			window.history.back(-1);
			}
			else{
			self.navigate(redirecturl);
			}
		}
		newDiv.appendChild(newA);
		document.body.appendChild(newMask);
	}


