// JavaScript Document
function loadHTMLFile1(fName){
	new Ajax.Request(fName,{ method: "get", onComplete: displayData1 });
}
function displayData1( httpObj){
	if(httpObj.responseText != ''){
		$("topnews").innerHTML = httpObj.responseText;
	}
}

window.onload = function(){
	var t = new Date();
	loadHTMLFile1('./ajax/news.php?num=3&'+t);
	loadHTMLFile12('./ajax/news2.php?num=3&'+t);
}

function loadHTMLFile12(fName){
	new Ajax.Request(fName,{ method: "get", onComplete: displayData12 });
}
function displayData12( httpObj){
	if(httpObj.responseText != ''){
		$("topnews2").innerHTML = httpObj.responseText;
	}
}

