function do_StationArea(str) {
    xmlHttp = createXMLHttpRequest();
	var cityID = document.getElementById('city').value;
	var provinceID = document.getElementById('province').value;

	var ProviceAll = (provinceID == 3 || provinceID == 25 || provinceID == 28 || provinceID == 34) ? 'all' : '';
	

	if(cityID > 0 || ProviceAll == 'all'){
	var url = "/AjaxStationArea.php?city="+cityID+"&province="+provinceID+"&task="+str;

	xmlHttp.onreadystatechange = handleReadyStateChangeCountArea;
    xmlHttp.open("GET", url, true);　//传递数据的方法同样有GET和POST两种,但是当方法为POST时下面的一句话就必须写
    xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
    xmlHttp.send(null);
	}else{
		alert('请先选择省份或城市');
	}
}
function handleReadyStateChangeCountArea() {

    if (xmlHttp.readyState == 4) {
        if (xmlHttp.status == 200) {
			//alert(xmlHttp.responseText);
			document.getElementById('dataArea').innerHTML = xmlHttp.responseText;
			document.getElementById('dataArea').style.display = "block";
        } else {
            alert(xmlHttp.status);
        }
    }
}
function hideDownloadPanel() {
	document.getElementById('dataArea').style.display = "none";
}
function do_AreaData(str,type) {
	document.getElementById('AreaData').value = str;
	document.getElementById('AreaType').value = type;
	document.getElementById('dataArea').style.display = "none";

}

function do_RoomBlock(str) {

	document.getElementById('oT210_'+str).style.display=(document.getElementById('oT210_'+str).style.display=='none')?'block':'none';
	document.getElementById('oT210Text_'+str).innerHTML = (document.getElementById('oT210_'+str).style.display=='none') ? '<font color="#a70000">查看全部会议厅 ▼ </font>' : '<font color="#a70000">收起全部会议厅 ▲</font>';

}

function do_StationBusiness(str) {
	if(str == 'Station'){
		document.getElementById('oT203').style.display = 'none';
		document.getElementById('oT202').style.display = 'block';
	}
    if(str == 'Business'){
		document.getElementById('oT203').style.display = 'block';
		document.getElementById('oT202').style.display = 'none';
	}
	 if(str == 'Close'){
		document.getElementById('oT203').style.display = 'none';
		document.getElementById('oT202').style.display = 'none';
	}
}



