<!--
//Ajax读取
function showcomment(obj1,url) {
	var showdiv=document.getElementById(obj1);
		var xmlHttp = false;
		try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {
		try {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}catch (e2){xmlHttp = false;}}
		if (!xmlHttp && typeof XMLHttpRequest != 'undefined'){xmlHttp = new XMLHttpRequest();}
	
		xmlHttp.open("GET",url,true); //用POST方式打开连接，异步执行。
		xmlHttp.onreadystatechange=function updatePage(){
			if (xmlHttp.readyState < 4) {
				showdiv.innerHTML="<strong style='color:red'>Loading...</strong>";
			}
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {			
				var response = xmlHttp.responseText;
				showdiv.innerHTML=response;
			}		
		}
	   xmlHttp.send(null);
}

function showuser(obj,obj1,url) {
	var showdiv=document.getElementById(obj1);
		input=document.getElementById(obj);
		var xmlHttp = false;
		try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {
		try {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}catch (e2){xmlHttp = false;}}
		if (!xmlHttp && typeof XMLHttpRequest != 'undefined'){xmlHttp = new XMLHttpRequest();}
	
		xmlHttp.open("GET",url,true); //用POST方式打开连接，异步执行。
		xmlHttp.onreadystatechange=function updatePage(){
			if (xmlHttp.readyState < 4) {
				input.style.background="url(images/indicator.gif) top right no-repeat";
				document.getElementById("submit").disabled=true;
			}
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {			
				var response = xmlHttp.responseText;
				showdiv.innerHTML=response;
				input.style.background="";
				if (response==''){
					document.getElementById("submit").disabled=false;
					input.style.background="url(images/check-small.gif) top right no-repeat";
				}
			}		
		}
	   xmlHttp.send(null);
}
