// JavaScript Document
var xmlHttpWelcome;

function showWelcomeAreas(str) { 

	xmlHttpWelcome=GetWelcomeXmlHttpObject();
	if (xmlHttpWelcome==null) {
	 alert ("Browser does not support HTTP Request");
	 return;
	}
	var url="get_welcome_areas.php";
	url=url+"?state="+str;
	xmlHttpWelcome.onreadystatechange=stateChangedWelcome;
	xmlHttpWelcome.open("GET",url,true);
	xmlHttpWelcome.send(null);
}

function stateChangedWelcome() { 
	if (xmlHttpWelcome.readyState==4 || xmlHttpWelcome.readyState=="complete") { 
		document.getElementById("welcome_area_select").innerHTML=xmlHttpWelcome.responseText;
	} 
}

function GetWelcomeXmlHttpObject() {

	var xmlHttpWelcome=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttpWelcome=new XMLHttpRequest();
	} catch (e) {
		//Internet Explorer
		try {
			xmlHttpWelcome=new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttpWelcome=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpWelcome;
}