var xmlhttp;
try {
    xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
}catch(e) {
    try {
        xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
    }catch(e) {
        try {
            xmlhttp= new XMLHttpRequest();
        }catch(e) {}
    }
}
function getData(){
	
	send_request("getNews.asp?now=" + new Date().getTime());
    
}
function send_request(url) {

    xmlhttp.open("get",url,true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState == 4)
         {
            if(xmlhttp.status == 200)
             {
                if(xmlhttp.responseText!="") {
                    document.getElementById("newsMsg").innerHTML = unescape(xmlhttp.responseText);//把后台返回的数据填充到提示层
                }else {
                    //document.getElementById("newsMsg").innerHTML = "Sorry,do not find any News";
                }
            }
            else {
            alert("System Error");
            }
        }
		else {
			document.getElementById("newsMsg").innerHTML = "Loading News.....x";
		}	
    }
    xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
    xmlhttp.send(null);
}
function OpenWindow(url) 
{ window.open(url,null,"height=650,width=622,status=no,toolbar=no,menubar=no,location=no"); 
}