// JavaScript Document

function show(){
    var iWidth = document.documentElement.clientWidth;
	var iHeight = document.documentElement.clientHeight;
	var bgObj = document.createElement("div");
	bgObj.setAttribute("id","bgbox");
	bgObj.style.width = iWidth+"px";
	bgObj.style.height =Math.max(document.body.clientHeight, iHeight)+"px";
	document.body.appendChild(bgObj);
	var oShow = document.getElementById('show');
		  oShow.style.display = 'block';
          oShow.style.left = (iWidth-302)/2+"px";
		  oShow.style.top = (iHeight-202)/2+"px";
	function oClose(){
		oShow.style.display = 'none';
        document.body.removeChild(bgObj);
	}
	var oClosebtn = document.createElement("span");
		  oClosebtn.innerHTML = "×";
		  oShow.appendChild(oClosebtn);
	oClosebtn.onclick = oClose;
	bgObj.onclick = oClose;
}
