
/**
* requestType --return request type
* requestId -- return  request id
* menupic,menutxt,foottxt --div id
**/

/*******************************
* CopyRight by Anjilur 
* Email: Anjilur@xubong.com
* Qicq: 404416343
* MSN: Anjilur@hotmail.com
*******************************/

<!--

function menuTxt() {
	//var menuid = requestId;
	var url = "site/top.asp?timeStamp=" + new Date().getTime();
	createXMLHttpRequest();
	xmlHttpp.onreadystatechange = handleStateChangeMenuTxt;
	xmlHttpp.open("GET",url,false);
	xmlHttpp.send(null);
}


//-->
//write menutxt
function handleStateChangeMenuTxt(){
		if(xmlHttpp.readyState == 4) {
		if(xmlHttpp.status == 200) {
			var header = document.getElementById("menutxt");
			if(header.hasChildNodes()){ header.removeChild(header.childNodes[0]);}
				header.innerHTML = xmlHttpp.responseText;
		}
	}
}

//****************µÇÂ½ÉèÖÃ***************
function loadText()
{
var url = "site/top_login.asp?timeStamp=" + new Date().getTime();
	createXMLHttpRequest();
	xmlHttpp.onreadystatechange = handleStateChangeloadText;
	xmlHttpp.open("GET",url,false);
	xmlHttpp.send(null);

}

function handleStateChangeloadText(){
		if(xmlHttpp.readyState == 4) {
		if(xmlHttpp.status == 200) {
			var header = document.getElementById("loadText");
			if(header.hasChildNodes()){ header.removeChild(header.childNodes[0]);}
				header.innerHTML = xmlHttpp.responseText;
		}
	}
}



