// JavaScript Document
var xmlHttp

function showCommunity(str, str1)
{ 

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
if (str!="")
{
//showKnownSchool(this.value, str, str1);
var url="getcommunity.php"
url=url+"?region="+str
url=url+"&state="+str1

url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedcommunity
xmlHttp.open("GET",url,true)
xmlHttp.send(null)

if (str!="")
{
document.getElementById("shownext").style.display='block';
}
else
{
	document.getElementById("shownext").style.display='none';
}
//document.getElementById("county2").value=str
}
}

function stateChangedcommunity() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   { 
   document.getElementById("f3").innerHTML=xmlHttp.responseText 
   } 
} 

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}