var	sectionID	= ''; // added for ajax calls

function sendLocation(info)
{
   document.sendform.location.value = info;
   return true;
}

function sendCategory(info)
{
   document.sendform.category.value = info;
   return true;
}

////////////// Below ajax object and fucntion added to eliminate page refresh 

function locationSelection(selection, selID)
{
	areaRequest		= new xmlRequest();
	sectionID		= selection.value;
	var selArea		= $(selID);

	serverScript	= 'http://'+location.host+'/_libs/selectArea.php?sectionID='+sectionID;
	areaRequest.open("GET", serverScript, true);
	areaRequest.onreadystatechange = function()
	{
		if (areaRequest.readyState == 4 && areaRequest.status == 200)
		{
			selArea.innerHTML	= areaRequest.responseText;
		}
	}
	areaRequest.send(null);
}

function xmlRequest()
{
	try
	{
		xmlHttp=new XMLHttpRequest();
	}catch(e){
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch (e){
				alert("Your browser does not support AJAX!");
			}
		}
	}
	return xmlHttp;
}

function $(id)
{
	return document.getElementById(id);
}

