index = 0;
function GetResult1() { 
var oBao;   
if(window.ActiveXObject){
	oBao=new ActiveXObject("Microsoft.XMLHTTP");  
}     
else if(window.XMLHttpRequest){  
	oBao=new window.XMLHttpRequest();  
}
    /*----------------------------------*/ 
oBao.open("POST","newsAjax_do.asp",false);
oBao.send(null);  
var strResult = unescape(oBao.responseText); 
var arrResult = strResult.split("###"); 
var arrLength = arrResult.length;
if(index < arrLength-1)
{
	//每一个数据的分隔
	reb = arrResult[index].split("@@@");  
	var date = new Date(reb[1]);
	var month = date.getMonth()+1;
	var displayDate = date.getFullYear()+"-"+month+"-"+date.getDate();
	aa = "<span style='font-size:15'><a href='../news.asp?newID="+reb[2]+"'>"+reb[0]+"</a></span><span style='margin-left:20px'>("+displayDate+")</span>";
	//aa="<ul><li>"+reb[0]+"</li><li>"+reb[1]+"</li></ul>"; 
	document.getElementById('zdgx').innerHTML=aa;	
	setTimeout("RemoveRow1()",5000);
	index++;
}
else
{
	index = 0;
	GetResult1();
}
}
function RemoveRow1() {  
document.getElementById('zdgx').innerHTML="";
} 

function MyShow() {  
//10秒自动刷新一次,10秒取得一次数据. 
timer1=window.setInterval("GetResult1()",5000);}  
