<!--//首页公告 AJAX 弹窗
var xmlhttp;
var keywords;
var url;
var bigclassname;
url="Winpop_Fuction.asp";
try{
    xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
}catch(e){
    try{
        xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
    }catch(e){
        try{
            xmlhttp= new XMLHttpRequest();
        }catch(e){}
    }
}
function getPart(url){
    xmlhttp.open("get",url,true);
    xmlhttp.onreadystatechange = function(){
        if(xmlhttp.readyState == 4)
        {
            if(xmlhttp.status == 200)
            {
                if(xmlhttp.responseText!=""){
                  showcontent = unescape(xmlhttp.responseText);
                }
            }
            else{
				showcontent = "数据载入出错！";
            }
        }else{
			showcontent = "<center>正在加载……<br><img src=../images/gif-0527.gif></center>";
		}
    }
    xmlhttp.setRequestHeader("If-Modified-Since","0");
    xmlhttp.send(null);
}
getPart(url)


var isIe=(document.all)?true:false; 
//设置select的可见状态 
function setSelectState(state) 
{ 
var objl=document.getElementsByTagName('select'); 
for(var i=0;i<objl.length;i++) 
{ 
objl[i].style.visibility=state; 
} 
} 

//弹出方法 
function showMessageBox(wTitle,content,wWidth) 
{ 
closeWindow(); 
var bWidth=parseInt(document.documentElement.scrollWidth); 
var bHeight=parseInt(document.documentElement.scrollHeight); 
if(isIe){ 
setSelectState('hidden');} 
var back=document.createElement("div"); 
back.id="back"; 
back.innerHTML="<div onclick='closeWindow();' style='width:100%;height:100%'></div>"
var styleStr="top:0px;left:0px;position:absolute;background:#000;width:"+bWidth+"px;height:"+bHeight+"px;"; 
styleStr+=(isIe)?"filter:alpha(opacity=60);":"opacity:0.60;"; 
back.style.cssText=styleStr; 
document.body.appendChild(back); 
var mesW=document.createElement("div"); 
mesW.id="mesWindow"; 
mesW.className="mesWindow"; 
mesW.innerHTML="<div class='mesWindowTop'><img src='../images/winpop_logo.png'></div><div class='mesWindowContent' id='mesWindowContent'>"+content+"<div class='mesWindowBottom'><img src='../images/closelabel.gif' onclick='closeWindow();' title='关闭窗口' ></div></div>"; 
styleStr="left:"+Math.round(document.documentElement.scrollWidth/2-wWidth/2)+"px;top:"+Math.round(document.documentElement.scrollHeight/2-200)+"px;position:absolute;width:"+wWidth+"px;"; 
mesW.style.cssText=styleStr; 
document.body.appendChild(mesW); 
} 
function showBackground(obj,endInt) 
{ 
obj.filters.alpha.opacity+=1; 
if(obj.filters.alpha.opacity<endInt) 
{ 
setTimeout(function(){showBackground(obj,endInt)},8); 
} 
} 
//关闭窗口 
function closeWindow() 
{ 
if(document.getElementById('back')!=null) 
{ 
document.getElementById('back').parentNode.removeChild(document.getElementById('back')); 
} 
if(document.getElementById('mesWindow')!=null) 
{ 
document.getElementById('mesWindow').parentNode.removeChild(document.getElementById('mesWindow')); 
} 
if(isIe){ 
setSelectState('');} 
} 
//测试弹出 
function testMessageBox(ev) 
{ 
messContent=showcontent; 
showMessageBox('最新公告',messContent,450); 
} 
//-->