//--------------------------------------------------------------------
//--------------------------------------------------------------------
var xmlhttp
//--------------------------------------------------------------------
function GetData()
{
var x = document.getElementById("stateAbb");
var state = x.options[x.selectedIndex].value; 
var url = "/getComms.cfm?state=" + state;
// code for IE
if (window.ActiveXObject)
	{
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange=UseData;
	xmlhttp.open("GET",url,true);
	xmlhttp.send();
	}
// code for Mozilla, etc.
else
	{
	xmlhttp=new XMLHttpRequest();
	xmlhttp.onreadystatechange=UseData;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
	};
};
//--------------------------------------------------------------------
function UseData()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
	{
	// if "OK"
	if (xmlhttp.status==200)
		{
		// ...some code here...
		document.getElementById('commtypelist').innerHTML=xmlhttp.responseText
		}
	else
		{
		alert("Problem retrieving data.")
		};
	};
};
