       function hiddendiv(){
        document.body.removeChild(document.getElementById("bgDiv"));//删除背景层Div
        var msgObj=document.getElementById("msgreg_id");
        msgObj.style.display="none";
       }
       function sAlert(){
       
       var msgw,msgh,bordercolor;
	   msgw=338;//提示窗口的宽度
	   msgh=401;//提示窗口的高度
	   var sWidth,sHeight;
 
 
   sWidth=window.screen.width;//浏览器工作区域内页面宽度
 //  sHeight=screen.height;//屏幕高度（垂直分辨率）
  sHeight=document.body.scrollHeight;//浏览器工作区域内页面高度

	   var bgObj=document.createElement("div");//创建一个div对象（背景层）
   //定义div属性，即相当于
   //<div id="bgDiv" style="position:absolute; top:0; background-color:#777; filter:progid:DXImagesTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75); opacity:0.6; left:0; width:918px; height:768px; z-index:10000;"></div>
   bgObj.setAttribute('id','bgDiv');
   bgObj.style.position="absolute";
   bgObj.style.top="0";
   bgObj.style.background="#777";
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
   bgObj.style.opacity="0.6";
   bgObj.style.left="0";
   bgObj.style.width=sWidth + "px";
   bgObj.style.height=sHeight + "px";
   bgObj.style.zIndex = "2997";
      document.body.appendChild(bgObj);//在body内添加该div对象
	  var msgObj=document.getElementById("msgreg_id");
	  msgObj.style.display="block";
      msgObj.style.position = "absolute";
	  msgObj.style.left = "50%";
	  msgObj.style.top = "50%";
	  msgObj.style.marginLeft = "-168px" ;
	  msgObj.style.marginTop =-167+document.documentElement.scrollTop+"px";
	  msgObj.style.width = msgw + "px";
	  msgObj.style.height= msgh + "px";
	  msgObj.style.zIndex = "2998";
       }
      function removeObj(id){//点击标题栏触发的事件
     document.body.removeChild(document.getElementById(id));//删除背景层Div
     var msgObj=document.getElementById("msgreg_id");
     msgObj.style.display="none";
   }
