// JavaScript Document
//创建XMLHttpRequest对象
function createXMLHttpRequest() {

	if (window.XMLHttpRequest) { // Not IE

		return new XMLHttpRequest();

	} else if (window.ActiveXObject) { // IE

		isIE = true;

		return new ActiveXObject("Microsoft.XMLHttp");

	}

}

//异步提交网址及参数

function posturl(theurl) {
	var xmlHttp = createXMLHttpRequest();
	xmlHttp.open("GET", theurl, true);
	xmlHttp.send(null);
}

//提交网页请求并返回文本结果,并写入到相应的块

function postget(theurl,thediv) {
	var xmlHttp = createXMLHttpRequest();
	xmlHttp.open("GET", theurl, false);
	xmlHttp.send(null);
	var comm = document.getElementById(thediv);
	//xmlHttp.onreadystatechange = function() {
		//if (xmlHttp.readyState == 4) { // loaded
			//if (xmlHttp.status == 200) { // no http error
				comm.innerHTML=xmlHttp.responseText;
			//}
		//}
	//}
}

function cityajax(theurl,thediv) {	
	postget(theurl,thediv);
	//changecity();	
}
function cityajax1(theurl,thediv) {	
	postget(theurl,thediv);
	citysel1(1);
}
