// JavaScript Document
<!--
function startRequest(url,result) 
{
	var xmlHttp;
	if(window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
	} 
	else if(window.XMLHttpRequest) 
	{
		xmlHttp = new XMLHttpRequest();
	}
	
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
	
	function handleStateChange() 
	{
		if(xmlHttp.readyState == 1) 
		{
			document.getElementById(result).style.cssText = "";
			document.getElementById(result).innerText = "加载..";
		}
		if(xmlHttp.readyState == 4) 
		{
			if(xmlHttp.status == 200)
			{
				document.getElementById(result).style.cssText = "";
				var allcon =  xmlHttp.responseText;
				document.getElementById(result).innerHTML = allcon;
			}
		}
	}
} 
	
function startRequest1(url,result) 
{
	var xmlHttp;
	if(window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
	} 
	else if(window.XMLHttpRequest) 
	{
		xmlHttp = new XMLHttpRequest();
	}
	
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
	
	function handleStateChange() 
	{
		if(xmlHttp.readyState == 1) 
		{
			document.getElementById(result).style.cssText = "";
			document.getElementById(result).innerText = "加载..";
		}
		if(xmlHttp.readyState == 4) 
		{
			if(xmlHttp.status == 200)
			{
				document.getElementById(result).style.cssText = "";
				var allcon =  xmlHttp.responseText;
				document.getElementById(result).innerHTML = allcon;
			}
		}
	}
} 

function startRequestNews(url,result,result2,message) 
{
	var xmlHttp;
	if(window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
	} 
	else if(window.XMLHttpRequest) 
	{
		xmlHttp = new XMLHttpRequest();
	}
	
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
	
	function handleStateChange() 
	{
		if(xmlHttp.readyState == 1) 
		{
			document.getElementById(result).style.cssText = "";
			document.getElementById(result).innerText = "加载..";
		}
		if(xmlHttp.readyState == 4) 
		{
			if(xmlHttp.status == 200)
			{
				 document.getElementById(result).style.cssText = "";
				 var allcon =  xmlHttp.responseText;
				 document.getElementById(result).innerHTML = allcon;
				 document.getElementById(result2).innerHTML = allcon;
				 document.getElementById(message).innerHTML = allcon;
			}
		}
	}
} 

function startRequestMusic(url,result) 
{
	var xmlHttp;
	if(window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
	} 
	else if(window.XMLHttpRequest) 
	{
		xmlHttp = new XMLHttpRequest();
	}
	
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
	
	function handleStateChange() 
	{
		if(xmlHttp.readyState == 1) 
		{
			document.getElementById(result).style.cssText = "";
			document.getElementById(result).innerText = "加载..";
		}
		if(xmlHttp.readyState == 4) 
		{
			if(xmlHttp.status == 200)
			{
				document.getElementById(result).style.cssText = "";
				var allcon =  xmlHttp.responseText;
				document.getElementById(result).innerHTML = allcon;
			}
		}
	}
} 

//用于弹出层注册登录
function startRequestRegLogin(url,result) 
{
	var xmlHttp;
	if(window.ActiveXObject) 
	{
		xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
	} 
	else if(window.XMLHttpRequest) 
	{
		xmlHttp = new XMLHttpRequest();
	}
	
	xmlHttp.open("GET",url,"true");
	xmlHttp.onreadystatechange = handleStateChange;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlHttp.send(null);
	
	function handleStateChange() 
	{
		if(xmlHttp.readyState == 1) 
		{
			document.getElementById(result).style.cssText = "";
			document.getElementById(result).innerText = "加载..";
		}
		if(xmlHttp.readyState == 4) 
		{
			if(xmlHttp.status == 200)
			{
				document.getElementById(result).style.cssText = "";
				var allcon =  xmlHttp.responseText;
				document.getElementById(result).innerHTML = allcon;
				
				if ((allcon.indexOf("正在登录...") != -1) || (allcon.indexOf("正在注册...") != -1)){
					setTimeout("self.location.reload();", 2000);
				}
			}
		}
	}
}