var xmlhttpShowNews

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function showNews(NewsID)
{
	xmlhttpShowNews=GetXmlHttpObject();
	
	if (xmlhttpShowNews==null)
	{
	  alert ("Your browser does not support XMLHTTP!");
	  return;
	}
	
	url= "shownews.asp?NewsID="+NewsID
	url=url+"&sid="+Math.random();
	xmlhttpShowNews.onreadystatechange=function(){if (xmlhttpShowNews.readyState==4){var aspResponse = xmlhttpShowNews.responseText; document.getElementById('Layer2').innerHTML = aspResponse;}}
	xmlhttpShowNews.open("GET",url,true);
	xmlhttpShowNews.send(null);	
}
