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;
};

function explode(delimiter, delimited_string)
{
    tempArray = new Array(1);
    var count=0;
    var tempString = new String(delimited_string);

    while(tempString.indexOf(delimiter) > 0)
    {
        tempArray[count] = tempString.substr(0,tempString.indexOf(delimiter));
        tempString = tempString.substr(tempString.indexOf(delimiter) + 1, tempString.length - tempString.indexOf(delimiter) + 1);
        count=count+1;
    }
    tempArray[count]=tempString;
    return tempArray;
};

function select_a_state()
{
	var state_selected = document.getElementById('select_state');
	if(state_selected.value != "Select a State")
	{
		var locatio = location.href.split("?",1);
		location.href = locatio + "?s=" + state_selected.value;
		return true;
	}
	else
	{
		return false;
	}
};

function show(id)
{
	if(document.getElementById('faq'+id).style.display == "block")
	{
		document.getElementById('faq'+id).style.display="none";
	}
	else if(document.getElementById('faq'+id).style.display == "none")
	{
		document.getElementById('faq'+id).style.display="block";
	}
	return true;
};
