function getHTTPObject()
{
	var xmlhttp;
	/*@cc_on
	@if(@_jscript_version >=5)
	try
	{
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E)
		{
			xmlhttp=false;
		}
	}
	@else
		xmlhttp=false;
	@end @*/
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined')
	{
		try
		{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)
		{
			xmlhttp=false;
		}
	}
	return xmlhttp;
}
function handleAreaResponse()
{
	if(http.readyState == 4)
	{
		//alert(http.responseText);
		if(http.responseText == '---')
			return;
		document.getElementById('arealist').innerHTML = http.responseText;	
	}
}
function getAreas(selelm)  // called on initial load and when class is changed
{
	var country = selelm.options[selelm.selectedIndex].value;
	var url = 'getarea.php?country=' + country;
//alert(url);
	http.open("GET",url, true);
	http.onreadystatechange = handleAreaResponse;
	http.send(null);
}
