function divcenter(a)
{   
var msgw,msgh,bordercolor; 
            msgw=509;//提示窗口的宽度 
            msgh=0;//提示窗口的高度 
            titleheight=31 //提示窗口标题高度 
            bordercolor="#acacac";//提示窗口的边框颜色 
            titlecolor="#000000";//提示窗口的标题颜色 
             
            var sWidth,sHeight; 
            sWidth=document.body.clientWidth; 
            sHeight=document.body.scrollHeight; 

            var bgObj=document.createElement("div"); 
            bgObj.setAttribute('id','bgDiv'); 
            bgObj.style.position="absolute"; 
            bgObj.style.top="0"; 
            bgObj.style.background="#cccccc"; 
            bgObj.style.filter="Alpha(Opacity=70)"; 
            bgObj.style.opacity="0.6"; 
            bgObj.style.left="0"; 
            bgObj.style.width=sWidth+ "px"; 
            bgObj.style.height=sHeight+ "px"; 
            bgObj.style.zIndex = "10000"; 
            document.body.appendChild(bgObj); 
             
            var msgObj=document.createElement("div") 
            msgObj.setAttribute("id","msgDiv"); 
            msgObj.setAttribute("align","left"); 
            msgObj.style.background="url(images/f-bottom.gif) repear-x left bottom";  
            msgObj.style.border="0px solid " + bordercolor; 
            msgObj.style.position = "absolute"; 
            msgObj.style.left = (document.body.clientWidth-400)/2+"px" ; 
            msgObj.style.top = "250px"; 
            msgObj.style.font="13px Verdana, Geneva, Arial, Helvetica, sans-serif"; 
            msgObj.style.marginLeft ="0px" ; 
            msgObj.style.marginTop = "0px"; 
            msgObj.style.width = msgw + "px"; 
            msgObj.style.height =msgh + "px"; 
            msgObj.style.textAlign = "left";
            msgObj.style.zIndex = "10001"; 
			
           var pspan=document.createElement("span"); 
           pspan.setAttribute("id","aspan"); 
		   pspan.style.cursor="pointer"; 
           pspan.setAttribute("float","right"); 
		   pspan.innerHTML="<img src='images/f-on.gif' style='margin-left:476px;' alt='关闭'>";
		   pspan.onclick=function(){ 
                document.body.removeChild(bgObj); 
                document.getElementById("msgTitle").removeChild(pspan); 
                document.getElementById("msgDiv").removeChild(title); 
                document.body.removeChild(msgObj); 
                } 
    
   
           var title=document.createElement("div"); 
           title.setAttribute("id","msgTitle"); 
           title.setAttribute("align","left"); 
           title.style.margin="0"; 
           title.style.padding="0px 0px 0px 0px"; 
           title.style.background="url(images/f-top.gif) no-repeat left bottom"; 
           title.style.border="0px solid " + bordercolor; 
           title.style.height=titleheight; 
           title.style.font="14px Verdana, Geneva, Arial, Helvetica, sans-serif"; 
           title.style.color=titlecolor; 
          title.innerHTML=""; 
           document.body.appendChild(msgObj); 
           document.getElementById("msgDiv").appendChild(title); 
           document.getElementById("msgTitle").appendChild(pspan); 
		   
           var txt=document.createElement("div"); 
		   txt.style.margin="0px 0px 0px 0px";
           txt.setAttribute("id","msgTxt"); 
	       txt.innerHTML="<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td background='images/f-bottom.gif' style='background-position:left bottom; background-repeat:no-repeat;padding-bottom:6px;' align='center'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='497' height='350'><param name='movie' value='images/Flvplayer.swf' /><param name='quality' value='high' /><param name='allowFullScreen' value='true' /><param name='allowFullScreen' value='true' /><param name='FlashVars' value='vcastr_file=http://www.eurobot.cn/"+a+"&IsAutoPlay=1' /><embed src='images/Flvplayer.swf' width='497' height='350' allowfullscreen='true' flashvars='vcastr_file=http://www.eurobot.cn/"+a+"&IsAutoPlay=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object></td></tr></table>"; 
           document.getElementById("msgDiv").appendChild(txt); 
		   }

