var xmlhttp;
function check(url,divname)
{
	if (window.ActiveXObject){xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
	else if(window.XMLHttpRequest){xmlhttp = new XMLHttpRequest();}
	xmlhttp.onreadystatechange = function(){
		if(xmlhttp.readyState == 0)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /></td></tr></table>";}
		if(xmlhttp.readyState == 1)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /></td></tr></table>";}
		if(xmlhttp.readyState == 2)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /></td></tr></table>";}
		if(xmlhttp.readyState == 3)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /></td></tr></table>";}
		if(xmlhttp.readyState == 4)
		{
			if(xmlhttp.status == 200)
			{	//alert(xmlhttp.responseText);
				document.getElementById(divname).innerHTML = xmlhttp.responseText;
			}
			else
			{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><font color=red>处理程序出现异常，验证失败!</font></td></tr></table>";}
		}
	}
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}
var xmlhttp1;
function check1(url,divname)
{
	if (window.ActiveXObject){xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");}
	else if(window.XMLHttpRequest){xmlhttp1 = new XMLHttpRequest();}
	xmlhttp1.onreadystatechange = function(){
		if(xmlhttp1.readyState == 0)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /> 正在载入...</td></tr></table>";}
		if(xmlhttp1.readyState == 1)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /> 正在载入...</td></tr></table>";}
		if(xmlhttp1.readyState == 2)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /> 正在载入...</td></tr></table>";}
		if(xmlhttp1.readyState == 3)
		{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><img border=0 src='/images/loading.gif' /> 正在载入...</td></tr></table>";}
		if(xmlhttp1.readyState == 4)
		{
			if(xmlhttp1.status == 200)
			{	//alert(xmlhttp.responseText);
				document.getElementById(divname).innerHTML = xmlhttp1.responseText;
			}
			else
			{document.getElementById(divname).innerHTML = "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td><font color=red>处理程序出现异常，验证失败!</font></td></tr></table>";}
		}
	}
	xmlhttp1.open("GET",url,true);
	xmlhttp1.send(null);
}