	var tmpx,tmpy

	function openNewDiv2(newdiv,userid) {
		closeAll();		
		
		// 新激活图层
		var newDiv = document.createElement("div");
		newDiv.id = "newdiv";
		newDiv.style.position = "absolute";
		newDiv.style.zIndex = "9999";
		newDiv.style.width = "500px";
		newDiv.style.height = "250px";
		tmpx=document.documentElement.scrollLeft+window.event.clientX;
		if (tmpx>document.documentElement.scrollWidth-500)	{ tmpx=tmpx-500;}
		if (tmpx<15) { tmpx=15;}
		
		tmpy=document.documentElement.scrollTop+window.event.clientY;
		//alert(document.body.scrollTop);
		//alert(window.event.clientY);
		//alert(window.screen.height);
		if (window.event.clientY>window.screen.height-350) { tmpy=tmpy-250;}
		if (tmpy<15) { tmpy=15;}

		newDiv.style.top = tmpy + "px";
		newDiv.style.left = tmpx + "px";
		
		newDiv.style.background = "#ffffff";
		newDiv.style.border = "1px solid #CECECE";
		newDiv.style.padding = "2px";
		newDiv.style.filter = "alpha(opacity=100)";
		newDiv.style.opacity = "0.30";
		document.body.appendChild(newDiv);
		
		
		// mask图层
		var newMask = document.createElement("div");
		newMask.id = "mask";
		newMask.style.position = "absolute";
		newMask.style.zIndex = "1";
		newMask.style.width = document.documentElement.scrollWidth + "px";
		newMask.style.height = document.documentElement.scrollHeight + "px";
		newMask.style.top = "0px";
		newMask.style.left = "0px";
		//弹出层锁定背景窗口
		//newMask.style.background = "#FCFCFC";
		newMask.style.filter = "alpha(opacity=30)";
		//newMask.style.opacity = "0.30";
		document.body.appendChild(newMask);
		
		
		
	  // 关闭mask和新图层
		var newA = document.createElement("a");
		newA.innerHTML = "<div style='text-align:right'><input type=button value='关 闭' style='border:1px #FFFFFF solid;background-color:#FFFFFF;cursor:hand' onclick='closeAll();'></div>";
		newDiv.appendChild(newA);

	  // 内容图层
		var newinfo = document.createElement("info");
		newinfo.innerHTML = "<iframe src='http://www3.hongxiu.com/author/info.asp?UserId="+userid+"' border=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 framespacing=0 frameborder=0 scrolling=yes width=98% height=220></iframe>";
		newDiv.appendChild(newinfo);

	}


	function closeAll(){
		var obj1 = document.getElementById("newdiv");
		var obj2 = document.getElementById("mask");
		if (obj1!=null){document.body.removeChild(document.getElementById("newdiv"));}
		if (obj2!=null){document.body.removeChild(document.getElementById("mask"));}
	}