<style type=text/css>
#popupMask {
	position: absolute;
	z-index: 200;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	filter: alpha(opacity=50);
	background-color:transparent !important;
	background-color: #333333;
	background-image:none;
	background-repeat: repeat;
	display:none;
}
#popupContainer {
	position: absolute;
	z-index: 201;
	top: 0px;
	left: 0px;
	padding: 0px;
}
</style>

<script>
function addEvent(obj, evType, fn)
{
if (obj.addEventListener)
	obj.addEventListener(evType, fn, false);
else
    obj.attachEvent("on"+evType, fn);
}

var theBody = document.getElementsByTagName("BODY")[0];
var gPopupMask = null;

addEvent(window, "load", initPopUp);

function initPopUp() 
{
	//һԪdiv
	popmask = document.createElement("<div id='popupMask'></div>");

	//ظղŴdivԪ
	theBody.appendChild(popmask);
	
	//ȡղŴԪdivĵĶ
	gPopupMask = document.getElementById("popupMask");
}

function showPopWin() 
{
gPopupMask.style.display = "block";

gPopupMask.style.height = 778 + "px";
gPopupMask.style.width = 1004 + "px";

popcont = document.createElement('div');
popcont.id = 'popupContainer';
popcont.innerHTML = "<div align=center width=1004px><iframe src='../Web/index.aspx' width=600px height=350px></iframe><a href='#' onclick='javascript:window.location.reload();'></a></div>";
theBody.appendChild(popcont);
}

</script>

//
<a onclick='showPopWin()' href="#">һ</a>

