// JavaScript Document

function newstopics()
{
	var cgidir = "./cgi-bin/newstopics";		// <--- It changes as occasion demands
	var date = new Date();
	var timestamp = date.getTime();
	
	var xhrObj = getXhrObj();
	xhrObj.open("get", cgidir+"/exec/topics.cgi?out=1&uri="+cgidir+"&time="+timestamp, false);
	xhrObj.send(null);
	
	if (xhrObj.responseText != "")
	{
		document.getElementById('cgi_newsblock1').innerHTML = xhrObj.responseText;
	}
	
	var xhrObj2 = getXhrObj();
	xhrObj2.open("get", cgidir+"/exec/topics.cgi?out=1&uri="+cgidir+"&env=2&time="+timestamp, false);
	xhrObj2.send(null);
	
	if (xhrObj2.responseText != "")
	{
		document.getElementById('cgi_newsblock2').innerHTML = xhrObj2.responseText;
	}
}

setListener(window, "load", newstopics);

