function distit(dist,disl,not,nol){
	document.getElementById(dist).style.backgroundImage = 'url(images/top_a.gif)';
	document.getElementById(disl).style.display = 'block';
	document.getElementById(not).style.backgroundImage = 'url(images/top_b.gif)';
	document.getElementById(nol).style.display = 'none';
}
function meswin(){
	var text = '<div id="info">';
	text += '<div style="text-align:center;padding-top:85px"><img src="/images/loading.gif"></div>'
	text += '</div>';
	
	var o = document.createElement('div');
	o.id  = 'mes_big';
	o.innerHTML = text;
	document.body.appendChild(o);
	
	ajax_fun('/images/qq.php',fun_qq);
}
function closemes(){
	document.body.removeChild(document.getElementById('mes_big'));
}

var xmlHttp;
function createXMLHttpRequest(){
	if(window.ActiveXObject){
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
	}
}
function fun_qq(){
	if(xmlHttp.readyState==4&&xmlHttp.status==200){
		var text=xmlHttp.responseText;
		if(text.indexOf('<') != -1){
			document.getElementById("mes_big").innerHTML=text;
		}else{
			alert("ÔÚÏßQQ¼ÓÔØÊ§°Ü£¡");
		}
	}
}
function ajax_fun(url,obj){
	createXMLHttpRequest();
	var nowtime	= new Date().getTime();
	url	+= (url.indexOf("?") >= 0) ? "&nowtime=" + nowtime : "?nowtime=" + nowtime;
	xmlHttp.onreadystatechange = obj;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}