// JavaScript Document
var xmlHttp

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function ShowNews(url)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 

	/*var url="getcustomer.php"
	url=url+"?q="+str
	url=url+"&sid="+Math.random()*/
	xmlHttp.onreadystatechange=ShowNewsResult
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function ShowNewsResult() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//document.getElementById("load_image").style.display = "none"; 
		document.getElementById("tmp_news").innerHTML=xmlHttp.responseText ;
//		Set_Scroller_Text(xmlHttp.responseText);
	} 
} 

function ShowNews_all(url)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 

	/*var url="getcustomer.php"
	url=url+"?q="+str
	url=url+"&sid="+Math.random()*/
	xmlHttp.onreadystatechange=ShowNewsResult_all
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function ShowNewsResult_all() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//document.getElementById("load_image").style.display = "none"; 
		document.getElementById("tmp_news_all").innerHTML=xmlHttp.responseText ;
//		Set_Scroller_Text(xmlHttp.responseText);
	} 
} 